From 7e3e6c55fab65b27a5b077c124bd77378f0483f8 Mon Sep 17 00:00:00 2001 From: litagin02 Date: Wed, 13 Mar 2024 15:46:02 +0900 Subject: [PATCH] docs --- style_bert_vits2/tts_model.py | 2 +- style_bert_vits2/voice.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/style_bert_vits2/tts_model.py b/style_bert_vits2/tts_model.py index da30f48..01c6fb4 100644 --- a/style_bert_vits2/tts_model.py +++ b/style_bert_vits2/tts_model.py @@ -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) diff --git a/style_bert_vits2/voice.py b/style_bert_vits2/voice.py index 75f7d51..b058419 100644 --- a/style_bert_vits2/voice.py +++ b/style_bert_vits2/voice.py @@ -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]]: 調整後の音声データのサンプリング周波数と音声データ