translate_speech
Translates speech audio between English and Mandarin Chinese. Automatically detects input language and outputs original text, translation, and synthesized audio.
Instructions
Translate speech audio between English and Mandarin Chinese. Automatically detects the input language and translates to the other. Returns original text, translation, and synthesised audio as base64-encoded WAV.
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": {
"audio_base64": "<audio_base64>"
},
"name": "translate_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio_base64 | Yes | Base64-encoded WAV audio (16 kHz, mono, 16-bit recommended) | |
| sample_rate | No | Sample rate of the input audio in Hz (default: 16000) |