Skip to content

Commit

Permalink
整理: TTS テスト入力をリアルにし警告を解消 (VOICEVOX#1297)
Browse files Browse the repository at this point in the history
* refactor: TTS mock 出力を現実的な値へ変更

* tmp: remove summary for debug

* tmp: lint

* tmp: round_1

* fix: round 桁数を緩和して数値誤差を解消

* fix: テスト用の音高を linear スケールから log スケールへ修正

* revert: round 桁数の緩和をリバート

* fix: snapshot を更新
  • Loading branch information
tarepan authored Jun 26, 2024
1 parent d0d4dac commit 90123ba
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 37 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions test/unit/tts_pipeline/test_tts_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,21 +126,21 @@ def _gen_hello_hiho_accent_phrases() -> list[AccentPhrase]:
return [
AccentPhrase(
moras=[
gen_mora("コ", "k", 0.0, "o", 0.0, 0.0),
gen_mora("ン", None, None, "N", 0.0, 0.0),
gen_mora("ニ", "n", 0.0, "i", 0.0, 0.0),
gen_mora("チ", "ch", 0.0, "i", 0.0, 0.0),
gen_mora("ワ", "w", 0.0, "a", 0.0, 0.0),
gen_mora("コ", "k", 0.1, "o", 0.1, 5.0),
gen_mora("ン", None, None, "N", 0.1, 5.0),
gen_mora("ニ", "n", 0.1, "i", 0.1, 5.0),
gen_mora("チ", "ch", 0.1, "i", 0.1, 5.0),
gen_mora("ワ", "w", 0.1, "a", 0.1, 5.0),
],
accent=5,
pause_mora=gen_mora("、", None, None, "pau", 0.0, 0.0),
pause_mora=gen_mora("、", None, None, "pau", 0.1, 0.0),
),
AccentPhrase(
moras=[
gen_mora("ヒ", "h", 0.0, "i", 0.0, 0.0),
gen_mora("ホ", "h", 0.0, "o", 0.0, 0.0),
gen_mora("デ", "d", 0.0, "e", 0.0, 0.0),
gen_mora("ス", "s", 0.0, "U", 0.0, 0.0),
gen_mora("ヒ", "h", 0.1, "i", 0.1, 0.0),
gen_mora("ホ", "h", 0.1, "o", 0.1, 5.0),
gen_mora("デ", "d", 0.1, "e", 0.1, 5.0),
gen_mora("ス", "s", 0.1, "U", 0.1, 0.0),
],
accent=1,
pause_mora=None,
Expand Down

0 comments on commit 90123ba

Please sign in to comment.