Batch Channel & Format Exporter
Batch-exports selected Sound objects to WAV, AIFF, or MP3 with flexible channel handling: mono mixdown, stereo conversion, keep multichannel, or split into separate mono files. Intelligent error handling, optional sequential renaming, and no destructive changes to original objects.
What this does
This script batch-exports the Sound objects currently selected in the Praat Objects window. No files are read from disk: load your sounds into Praat (via import, recording, or processing), select them in the object list, then run the script. For each selected Sound the script applies the chosen channel mode (mono mixdown, stereo, keep multichannel, or split channels) and saves the result to the chosen output folder. Original objects are never modified or removed.
Key Features:
- 4 Channel Modes — Mono (mix down), Stereo (two channels), Keep multichannel, Split into separate mono files
- 3 Output Formats — WAV, AIFF, MP3 (native MP3 export in Praat 6.4+, fallback to WAV for older versions)
- Sequential Renaming — optional 01, 02, 03… naming with zero-padding
- Overwrite Protection — existing files are never overwritten unless explicitly enabled
- Robust Error Handling — missing folder detection, per-file failure recovery, summary statistics
- Non-destructive — original Sound objects in Praat remain unchanged
Quick start
- Load or generate sounds in Praat (e.g., record, read from file, or process with other AudioTools scripts).
- In the Praat Objects window, select the Sound objects you want to export (click + shift-click or ctrl-click for multiple).
- Run script… →
Batch_Channel_Format_Exporter.praat. - Choose output folder (either type a path or tick "Choose folder in dialog" to browse).
- Select Channel mode (Mono / Stereo / Keep / Split).
- Select Output format (WAV / AIFF / MP3).
- Optionally enable Rename sequentially (files become 01.wav, 02.wav, etc.) and/or Overwrite existing files.
- Click OK — script exports all selected sounds, showing progress in the Info window.
4 Channel Modes
Mono (mix down)
Converts any multichannel sound to mono by averaging channels. Stereo → mono, 4-channel → mono, etc.
Use when: You need single-channel files for analysis, podcasts, or mono-compatible playback.
Stereo
Forces output to two channels. Mono → stereo (duplicate channel). Multichannel (>2) → keeps channels 1 and 2, drops the rest.
Use when: You need stereo compatibility but your source may have more channels.
Keep multichannel
Saves the sound exactly as is, preserving the original channel count.
Use when: You have multichannel (surround, 5.1, ambisonics) and want to keep the full channel configuration.
Split into separate mono files
Extracts each channel as an individual mono WAV. Files are named basename_ch1.wav, basename_ch2.wav, etc.
Use when: You need to process each channel independently in a DAW or analysis tool.
- Mono mixdown: All channels averaged (sum / nCh).
- Mono → Stereo: Duplicate mono to both L and R channels.
- Multichannel → Stereo: Keep channels 1 and 2, discard channels 3+ (warning printed).
- Split: Each channel extracted as mono, preserving order.
3 Output Formats
Examples
Example 1: Export stereo recordings to mono for podcast
Scenario: You have 20 stereo interview recordings. You need mono files for a podcast editor.
Settings: Channel mode = Mono, Format = WAV, Rename sequentially = Yes.
Result: 01.wav, 02.wav, … 20.wav, each is mono mixdown of the original stereo.
Example 2: Split 4-channel surround into individual tracks
Scenario: You have a 4-channel ambisonics recording (WXYZ) and need each channel as a separate mono file for analysis.
Settings: Channel mode = Split multichannel, Format = WAV, Rename sequentially = No.
Result: original_ch1.wav, original_ch2.wav, original_ch3.wav, original_ch4.wav.
Example 3: Batch MP3 export for web distribution
Scenario: You have 50 processed sounds ready for a website. You need MP3s with original names, overwriting previous exports.
Settings: Channel mode = Keep multichannel, Format = MP3, Overwrite = Yes.
Result: Each sound exported as same-name.mp3, replacing any existing files.
Example 4: Mono → stereo forced export
Scenario: You have mono recordings but need stereo files for a video editor that expects two channels.
Settings: Channel mode = Stereo, Format = WAV.
Result: Each mono file becomes a stereo WAV with identical L and R channels (duplicated).
• "No Sound objects are selected": You must select sounds in the Praat Objects window before running. Click on sound names, use shift+click to select multiple.
• "Output folder does not exist or is not writable": Create the folder manually or choose a different folder. The script tests write permissions by creating a temporary probe file.
• Files are skipped (already exist): Enable "Overwrite existing files" to replace them. The script never overwrites by default (safety).
• MP3 files not created (fallback to WAV): Your Praat version is older than 6.4. The script prints ffmpeg conversion commands at the end — run them in terminal/PowerShell to convert WAVs to MP3.
• "Unknown command" errors in Info window: These are usually from `nocheck` commands that failed gracefully (e.g., MP3 save on old Praat). The script continues; check the summary for actual failures.
Options & Safety Features
Folder selection
- Choose output folder in dialog: Ticking this opens a folder browser after you press OK. Untick to type a path directly.
- If the field is left empty and the box is unticked, the folder dialog still opens.
- The script strips trailing slashes automatically (both / and \).
Sequential renaming
Overwrite protection
Error handling summary
| Scenario | Behaviour | Recovery |
|---|---|---|
| Folder doesn't exist / not writable | Script aborts before any exports | Create folder or choose different folder |
| Output file already exists (overwrite off) | Skip that file, continue with next | Enable overwrite or delete files manually |
| MP3 save fails on old Praat | Fallback to WAV for that file, continue | Update Praat or use ffmpeg to convert WAVs |
| Praat crashes while saving one file | Script stops (unhandled crash) | Check disk space, permissions, or resave manually |
| Unknown error during save | Increment failed counter, continue幾年 |