label_export_audio_segments
Split a labeled recording into separate audio files, one per label segment. Export each labeled section as its own WAV, MP3, or other format file for easy reuse.
Instructions
Export the audio under each label as its own file.
Splits a long recording into per-segment audio files, named "01_Segment_Title.wav" and so on from the label text. ALWAYS tell the user which directory the files will be written to BEFORE calling this. Point labels (zero length) have no audio to export and are skipped. Existing files are never overwritten — they are skipped and reported. This can take a while for many or long segments.
Not yet independently live-tested against a running Audacity — verified against the scripting reference and unit tests with mocked responses only.
Args: directory: Absolute path to the output directory format: Audio format — wav, mp3, ogg, flac, aiff, mp4. Default: wav num_channels: 1 for mono, 2 for stereo. Default: 2
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | wav | |
| directory | Yes | ||
| num_channels | No |