テキスト入力が与えられると、変換された音声の予想長さを返します。
| Item | Required | Description |
|---|---|---|
text | Yes | 解析するテキストです。最大 300 文字です。 |
language | Yes | テキストの言語です。ko、en、ja のいずれかです。 |
style | No | 感情スタイルです。未指定の場合はデフォルトスタイルが使用されます。 |
model | No | デフォルトは sona_speech_1 です。現在はこのモデルのみ利用可能です。 |
voice_settings | No | 発話速度やピッチの調整値です。結果の長さに影響する場合があります。 |
The text to convert to speech. Max length is 300 characters.
300Language code of the voice
en, ko, ja The style of character to use for the text-to-speech conversion
The model type to use for the text-to-speech conversion
The desired output format of the audio file (wav, mp3). Default is wav.
wav, mp3 Returns predicted duration of the audio in seconds