Module voicevox.audio_query
Classes
class AccentPhrase (payload: AccentPhraseType)
-
Accent phrase class
Attributes
Methods
def to_dict(self) ‑> AccentPhraseType
class AudioQuery (http: HttpClient, payload: AudioQueryType)
-
Audio query
Audio query to do synthesis.
Attributes
accent_phrases
:dict
- アクセント句のリスト
speed_scale
:float
- Speech speed
pitch_scale
:float
- Speech pitch
intonation_scale
:float
- Speech intonation
volume_scale
:float
- Speech volume
pre_phoneme_length
:float
- 音声の前の無音時間
post_phoneme_length
:float
- 音声の後の無音時間
output_sampling_rate
:int
- 音声データの出力サンプリングレート
output_stereo
:bool
- 音声データをステレオ出力するか否か
kana
:str
- [読み取り専用]AquesTalkライクな読み仮名。音声合成クエリとしては無視される
Instance variables
var kana : str
Methods
async def synthesis(self, *, enable_interrogative_upspeak: bool = True, speaker: int, core_version: Optional[str] = None) ‑> bytes
def to_dict(self) ‑> AudioQueryType
class Mora (payload: MoraType)
-
Mora class
Attributes
text
:str
- Text to synthesize
consonant
:str
- Start of consonants
consonant_length
:int
- Pronounciation length of consonants
vowel
:str
- Start of vowels
vowel_length
:int
- Length of vowels
pitch
:int
- ピッチ //Pitch of the voice
Methods
def to_dict(self) ‑> dict