convert_audio_properties
Convert audio files to a new format while adjusting bitrate, sample rate, and channels. Specify input and output paths, target format, and optional properties for full control.
Instructions
Converts audio file format and ALL specified properties like bitrate, sample rate, and channels.
Args: input_audio_path: Path to the source audio file. output_audio_path: Path to save the converted audio file. target_format: Desired output audio format (e.g., 'mp3', 'wav', 'aac'). bitrate: Target audio bitrate (e.g., '128k', '192k'). Optional. sample_rate: Target audio sample rate in Hz (e.g., 44100, 48000). Optional. channels: Number of audio channels (1 for mono, 2 for stereo). Optional. Returns: A status message indicating success or failure.
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_audio_path": "<input_audio_path>",
"output_audio_path": "<output_audio_path>",
"target_format": "<target_format>"
},
"name": "convert_audio_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bitrate | No | ||
| channels | No | ||
| sample_rate | No | ||
| target_format | Yes | ||
| input_audio_path | Yes | ||
| output_audio_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |