An API that returns only the expected length without generating speech, useful for billing prediction or text length adjustment.
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
.