convert_audio
Converts an audio file from one format to another using FFmpeg, with optional settings for codec, bitrate, sample rate, and channels.
Instructions
Convert audio file to a different format
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": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "convert_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bitrate | No | Audio bitrate (e.g., 128k, 192k, 320k) | |
| channels | No | Number of audio channels (1 for mono, 2 for stereo) | |
| input_path | Yes | Path to the input audio file | |
| audio_codec | No | Audio codec (e.g., mp3, aac, flac, pcm_s16le) | |
| output_path | Yes | Path for the output audio file | |
| sample_rate | No | Sample rate in Hz (e.g., 44100, 48000) |