Skip to content

Commit

Permalink
Refactor: round 挙動メモの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
tarepan committed Dec 11, 2023
1 parent cc10270 commit 2a8f147
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions voicevox_engine/synthesis_engine/synthesis_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def calc_frame_per_phoneme(query: AudioQuery, moras: List[Mora]):

def _to_frame(sec: float) -> ndarray:
FRAMERATE = 93.75 # 24000 / 256 [frame/sec]
# NOTE: `round` は偶数丸め。移植時に取扱い注意。詳細は voicevox_engine#552
return numpy.round(sec * FRAMERATE).astype(numpy.int32)


Expand Down

0 comments on commit 2a8f147

Please sign in to comment.