recognize_audio_file
Transcribe local audio files into accurate text using offline speech recognition. Improve results by providing optional context or specifying the language.
Instructions
识别本地音频文件中的文本
参数:
file_path: 本地音频文件路径
context: 上下文文本,用于提高识别准确率(可选)
language: 指定语言代码(如 'zh', 'en'),可选,默认自动检测
model: 语音识别模型(可选,默认使用qwen3-asr-flash)
返回:
识别的文本内容
注意: 使用本机 faster-whisper,默认 medium / CPU int8,不消耗 API
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": {
"file_path": "<file_path>"
},
"name": "recognize_audio_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| context | No | ||
| language | No | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |