Convert Audio Tool
convert_audioConvert a sound file to another audio format, e.g. WAV → MP3, M4A → MP3, FLAC → WAV, MP3 → OGG, OPUS → MP3, WMA → MP3, MP3 → M4R (ringtone). Optional bitrate, sample rate, mono/stereo and a cut (start/end in seconds). Audio only – no video. See list_formats for every pair. Send the file as file (attached in the chat), url or base64. Returns download_page when done.
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": {
"output_format": "<output_format>"
},
"name": "convert_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Cut: end at this second. | |
| url | No | A public http(s) link to the file. Use this, file or base64. | |
| file | No | A file attached in the chat (filled in by the app; use this instead of base64 when the user attached the file). | |
| start | No | Cut: start at this second. | |
| base64 | No | The file as base64 (or a data: URL), for small files only. Prefer file or url. | |
| bitrate | No | kbit/s for lossy targets; auto = like the source. | |
| channels | No | ||
| filename | No | Original file name, e.g. voice.m4a. | |
| keep_tags | No | Keep title/artist tags and cover (default: yes). | |
| sample_rate | No | Hz; original keeps it. | |
| input_format | No | Input format, e.g. wav; not needed when filename has the extension. | |
| output_format | Yes | Target format, e.g. mp3, wav, m4a, aac, flac, ogg, opus, wma, m4r. |