Fix mid_result assignment

This commit is contained in:
litagin02
2024-06-22 15:18:57 +09:00
parent 189998145d
commit 402346e493
2 changed files with 2 additions and 2 deletions

View File

@@ -223,7 +223,7 @@ def change_null_model_row(
mid_result = {}
mid_result["name"] = null_model_name
mid_result["path"] = null_model_path
mid_result["weight"] = null_tempo_weights
mid_result["weight"] = null_voice_weights
mid_result["pitch"] = null_voice_pitch_weights
mid_result["style"] = null_speech_style_weights
mid_result["tempo"] = null_tempo_weights

View File

@@ -297,7 +297,7 @@ class TTSModel:
given_tone (Optional[list[int]], optional): アクセントのトーンのリスト. Defaults to None.
pitch_scale (float, optional): ピッチの高さ (1.0 から変更すると若干音質が低下する). Defaults to 1.0.
intonation_scale (float, optional): 抑揚の平均からの変化幅 (1.0 から変更すると若干音質が低下する). Defaults to 1.0.
null_model_params(dict[int,dict[str,Union[str,float]],optional):推論時に使用するヌルモデルの名前、適用割合のdictが入ったdict。
null_model_params (dict[int, dict[str, Union[str, float]]], optional): 推論時に使用するヌルモデルの名前、適用割合のdictが入ったdict。
Returns:
tuple[int, NDArray[Any]]: サンプリングレートと音声データ (16bit PCM)
"""