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

Path Parameters

AgentId
string
required

Body

application/json
voiceFormat
string
required

Audio format for recognition, such as wav/mp3

Example:

"mp3"

url
string
required

Audio URL address

engSerViceType
string

Input language type, 16k_zh: Chinese general, 16k_zh-PY: Chinese-English-Cantonese, 16k_zh_medical: Chinese medical, 16k_en: English, 16k_yue: Cantonese

Example:

"16k_zh"

Response

201 - application/json

Speech to text conversion successful

The response is of type object.