docs
This commit is contained in:
@@ -180,7 +180,7 @@ class TTSModel:
|
||||
style_weight (float, optional): 音声スタイルを適用する強さ. Defaults to DEFAULT_STYLE_WEIGHT.
|
||||
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.
|
||||
intonation_scale (float, optional): 抑揚の平均からの変化幅 (1.0 から変更すると若干音質が低下する). Defaults to 1.0.
|
||||
|
||||
Returns:
|
||||
tuple[int, NDArray[Any]]: サンプリングレートと音声データ (16bit PCM)
|
||||
|
||||
@@ -12,14 +12,14 @@ def adjust_voice(
|
||||
intonation_scale: float = 1.0,
|
||||
) -> tuple[int, NDArray[Any]]:
|
||||
"""
|
||||
音声のピッチとイントネーションを調整する。
|
||||
音声のピッチと抑揚を調整する。
|
||||
変更すると若干音質が劣化するので、どちらも初期値のままならそのまま返す。
|
||||
|
||||
Args:
|
||||
fs (int): 音声のサンプリング周波数
|
||||
wave (NDArray[Any]): 音声データ
|
||||
pitch_scale (float, optional): ピッチの高さ. Defaults to 1.0.
|
||||
intonation_scale (float, optional): イントネーションの平均からの変更比率. Defaults to 1.0.
|
||||
intonation_scale (float, optional): 抑揚の平均からの変更比率. Defaults to 1.0.
|
||||
|
||||
Returns:
|
||||
tuple[int, NDArray[Any]]: 調整後の音声データのサンプリング周波数と音声データ
|
||||
|
||||
Reference in New Issue
Block a user