audio_convert
Convert audio files to MP3, M4A, WAV, FLAC, OPUS, or OGG, adjusting bitrate, sample rate, and mono downmix for speech-to-text optimization.
Instructions
Convert an audio file to another format, optionally changing bitrate, sample rate, or downmixing to mono.
Args: source: Local file path or direct URL to an audio file. output_format: mp3, m4a, wav, flac, opus, or ogg (default mp3). output_path: Target path. Defaults to ~/Downloads/openmedia/. bitrate: e.g. '128k', '192k' (lossy formats only). sample_rate: e.g. 16000, 44100 (0 = keep). 16000 mono is ideal for speech-to-text pipelines. mono: Downmix to a single channel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mono | No | ||
| source | Yes | ||
| bitrate | No | ||
| output_path | No | ||
| sample_rate | No | ||
| output_format | No | mp3 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |