1717 Note ,
1818 Score ,
1919)
20+ from voicevox_engine .tts_pipeline .song_engine import (
21+ SongEngine ,
22+ )
2023from voicevox_engine .tts_pipeline .tts_engine import (
2124 TTSEngine ,
2225 _apply_interrogative_upspeak ,
@@ -277,13 +280,13 @@ def test_mocked_create_sing_volume_from_phoneme_and_f0_output(
277280 NOTE: 入力生成の簡略化に別関数を呼び出すため、別関数が正しく動作しない場合テストが落ちる
278281 """
279282 # Inputs
280- tts_engine = TTSEngine (MockCoreWrapper ())
283+ tts_engine = SongEngine (MockCoreWrapper ())
281284 doremi_srore = _gen_doremi_score ()
282- phonemes , f0s , _ = tts_engine .create_sing_phoneme_and_f0_and_volume (
285+ phonemes , f0s , _ = tts_engine .create_phoneme_and_f0_and_volume (
283286 doremi_srore , StyleId (1 )
284287 )
285288 # Outputs
286- result = tts_engine .create_sing_volume_from_phoneme_and_f0 (
289+ result = tts_engine .create_volume_from_phoneme_and_f0 (
287290 doremi_srore , phonemes , f0s , StyleId (1 )
288291 )
289292 # Tests
@@ -298,10 +301,10 @@ def test_mocked_synthesize_wave_from_score_output(
298301 `TTSEngine.frame_synthesize_wave()` の出力スナップショットが一定である
299302 """
300303 # Inputs
301- tts_engine = TTSEngine (MockCoreWrapper ())
304+ tts_engine = SongEngine (MockCoreWrapper ())
302305 doremi_srore = _gen_doremi_score ()
303306 # Outputs
304- result = tts_engine .create_sing_phoneme_and_f0_and_volume (doremi_srore , StyleId (1 ))
307+ result = tts_engine .create_phoneme_and_f0_and_volume (doremi_srore , StyleId (1 ))
305308 # Tests
306309 assert snapshot_json (name = "query" ) == round_floats (
307310 pydantic_to_native_type (result ), round_value = 2
0 commit comments