curl --request POST \
--url https://api.example.com/api/v1/bots/{object_id}/speech \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"text_to_speech_settings": {},
"text_to_speech_settings.google.voice_language_code": "<string>",
"text_to_speech_settings.google.voice_name": "<string>"
}
'curl --request POST \
--url https://api.example.com/api/v1/bots/{object_id}/speech \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"text_to_speech_settings": {},
"text_to_speech_settings.google.voice_language_code": "<string>",
"text_to_speech_settings.google.voice_name": "<string>"
}
'Authorization header.
bot_xxxxxxxxxxx)curl -X POST https://app.attendee.dev/api/v1/bots/bot_weIAju4OXNZkDTpZ/speech \
-H "Authorization: Token YOUR_API_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello, this is a bot speaking text.",
"text_to_speech_settings": {
"google": {
"voice_language_code": "en-US",
"voice_name": "en-US-Casual-K"
}
}
}'
curl -X POST https://app.attendee.dev/api/v1/bots/bot_weIAju4OXNZkDTpZ/speech \
-H "Authorization: Token YOUR_API_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"text": "Welcome to the meeting. I am your virtual assistant.",
"text_to_speech_settings": {
"google": {
"voice_language_code": "en-US",
"voice_name": "en-US-Neural2-J"
}
}
}'