语音转文字(同步,短音频)
speech_to_textTranscribes short audio (up to 60 seconds and 8 MB) from a public URL and synchronously returns text plus segmented results. Use for speech-to-text conversion of remote wav, mp3, or m4a files.
Instructions
转写 ≤ 60 秒、≤ 8MB 的短音频,同步返回文本与分段。计费工具(占 1 次当日 ASR 额度,失败不扣)。audioUrl 必须是公网可访问 URL(wav/mp3/m4a);本地文件路径无法使用。更长的音频改用 submit_asr_job 提交异步任务。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"audioUrl": "<audioUrl>"
},
"name": "speech_to_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | 语种,auto 自动判定(默认) | |
| engine | No | 引擎:默认 standard(免费);premium 需付费档,商业模型按积分计费 | |
| audioUrl | Yes | 音频公网 URL,≤ 8MB 且 ≤ 60 秒 |