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"
}
'{}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"
}
'{}Audio format for recognition, such as wav/mp3
"mp3"
Audio URL address
Input language type, 16k_zh: Chinese general, 16k_zh-PY: Chinese-English-Cantonese, 16k_zh_medical: Chinese medical, 16k_en: English, 16k_yue: Cantonese
"16k_zh"
Speech to text conversion successful
The response is of type object.
Was this page helpful?