Skip to main content
POST
/
v1
/
aibot
/
bots
/
{AgentId}
/
text-to-speech
Text to Speech
curl --request POST \
  --url http://{your-domain}/v1/aibot/bots/{AgentId}/text-to-speech \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "<string>",
  "voiceType": 101008
}
'
{}

Path Parameters

AgentId
string
required

Body

application/json
text
string
required

Source text for speech synthesis

voiceType
number

Voice ID, 101004: General male voice, 101005: General female voice, 601004: Consulting male voice, 501001: Consulting female voice, 101010: General male voice (LLM), 101035: General female voice (LLM)

Example:

101008

Response

201 - application/json

Text to speech conversion initiated

The response is of type object.