set_audio_sample_rate
Modify the sample rate of an audio file to a specified value, saving the adjusted file to a designated path. Use this tool to ensure compatibility or optimize audio quality for specific applications.
Instructions
Sets the sample rate for an audio file. Args: input_audio_path: Path to the source audio file. output_audio_path: Path to save the audio file with the new sample rate. sample_rate: Target audio sample rate in Hz (e.g., 44100, 48000). Returns: A status message indicating success or failure.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
input_audio_path | Yes | ||
output_audio_path | Yes | ||
sample_rate | Yes |
Input Schema (JSON Schema)
{
"properties": {
"input_audio_path": {
"title": "Input Audio Path",
"type": "string"
},
"output_audio_path": {
"title": "Output Audio Path",
"type": "string"
},
"sample_rate": {
"title": "Sample Rate",
"type": "integer"
}
},
"required": [
"input_audio_path",
"output_audio_path",
"sample_rate"
],
"title": "set_audio_sample_rateArguments",
"type": "object"
}