Skip to content

Commit

Permalink
Fix: 名詞関数名から動詞関数名への変更
Browse files Browse the repository at this point in the history
  • Loading branch information
tarepan committed Dec 5, 2023
1 parent fe60868 commit 1256a9d
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 @@ -110,7 +110,7 @@ def pre_process(
return flatten_moras, phoneme_data_list


def silence_mora(length: float) -> Mora:
def generate_silence_mora(length: float) -> Mora:
"""無音モーラの生成"""
return Mora(text=" ", vowel="sil", vowel_length=length, pitch=0.0)

Expand All @@ -128,8 +128,8 @@ def change_silence(moras: list[Mora], query: AudioQuery) -> list[Mora]:
moras : List[Mora]
前後無音が付加されたモーラ時系列
"""
silence_moras_head = [silence_mora(query.prePhonemeLength)]
silence_moras_tail = [silence_mora(query.postPhonemeLength)]
silence_moras_head = [generate_silence_mora(query.prePhonemeLength)]
silence_moras_tail = [generate_silence_mora(query.postPhonemeLength)]
moras = silence_moras_head + moras + silence_moras_tail
return moras

Expand Down

0 comments on commit 1256a9d

Please sign in to comment.