Skip to content

Commit

Permalink
Fix: head/tail to pre/post
Browse files Browse the repository at this point in the history
  • Loading branch information
tarepan committed Dec 5, 2023
1 parent 1256a9d commit 0410beb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions voicevox_engine/synthesis_engine/synthesis_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ def change_silence(moras: list[Mora], query: AudioQuery) -> list[Mora]:
moras : List[Mora]
前後無音が付加されたモーラ時系列
"""
silence_moras_head = [generate_silence_mora(query.prePhonemeLength)]
silence_moras_tail = [generate_silence_mora(query.postPhonemeLength)]
moras = silence_moras_head + moras + silence_moras_tail
pre_silence_moras = [generate_silence_mora(query.prePhonemeLength)]
post_silence_moras = [generate_silence_mora(query.postPhonemeLength)]
moras = pre_silence_moras + moras + post_silence_moras
return moras


Expand Down

0 comments on commit 0410beb

Please sign in to comment.