curl --request POST \
--url https://api.bland.ai/v1/voices/{id}/sample \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '
{
"text": "<string>",
"voice_settings": {},
"language": "<string>"
}
'(Generated audio file)
Generate an audio sample for a voice.
curl --request POST \
--url https://api.bland.ai/v1/voices/{id}/sample \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '
{
"text": "<string>",
"voice_settings": {},
"language": "<string>"
}
'(Generated audio file)
200 characters.voice_settings can be passed in to override the preset’s default settings.ENG.Supported Languages and their codes can be found here.(Generated audio file)
Was this page helpful?