
Praat (Boersma & Weenik, 2018) is one of the best computer programs for acoustic-phonetic analysis and manipulation of sound stimuli (and it’s free!). In addition to a GUI, you can write custom code.
Here are a few useful Praat scripts (and packages) I’ve written / adapted from others. For a full list, see my Github: https://github.com/michellecohn/praat-scripts/
Loading files
Load in all .wav files
Load in all .wav files / associated TextGrids
Save all .wav and/or .TextGrid files to a directory
Converting
Convert all files to mono
Convert to stereo
Convert from .mp3 to .wav
Override sampling frequency
Convert to short Text Grid
Resample all files & combine with other sound
Remove additional tiers (prepare for MFA)
Adjusting acoustic properties
Change mean intensity of all files
Match intensity contour of another sound
Match vowel duration of another sound
Match mean dB of another vowel
Match f0, intensity, & duration of another sound (combined script)
Create duration continuum
New monotone f0 for the whole sound
New monotone f0 for selected vowels
New mean f0 for sounds from a list (.txt file)
Pull in all .mp3 files (options to amplitude normalize, resample) and save as .wav files
Adding silence
Pad beginning of the sound with silence
Pad end of soundfile so that total duration is the same value (e.g., 900 ms)
Concatenate sounds with a pause
Add buffer to soundfile AND shift textgrid accordingly (currently adds 1/2 total duration to beginning)
Adding noise
Pad end of sound with 1 second of white noise (can adjust duration and intensity of noise)
Gating Package (MC 2/2024)
- Can ramp into noise based on a percentage of the overall vowel duration or a set durationLoading / saving into Praat
