Returns the expected length of the converted speech given text input.
text-to-speech
API.duration
value is returned as a result, not audio.Item | Required | Description |
---|---|---|
text | ✅ | Text to analyze. Maximum 300 characters |
language | ✅ | Text language. One of ko , en , ja |
style | ❌ | Emotional style. Default style is used if not specified |
model | ❌ | Default is sona_speech_1 . Currently only this model is available |
voice_settings | ❌ | Speech speed or pitch adjustment values. May affect result length |
voice_settings.speed
changes the length, it’s better to test with a fixed speech speed.API key for the service
Returns predicted duration of the audio in seconds
The response is of type object
.