I have the .wav and corresponding .TextGrid files in one directory. What's a quick way to extract/slice sound file intervals labeled with the Chinese character in question? I'd then want to store every utterance of that one character into a separate directory.

I've tried using this script from UCLA, but it doesn't output anything into the directory I specify. http://phonetics.linguistics.ucla.edu/facilities/acoustic/Segmenter.txt

  • Do you mean "in one shot, only using Praat scripting", or can you run a separate external program to do some of the work?
    – user6726
    May 3, 2020 at 19:55
  • In one shot, using a Praat script.
    – Jonathan
    May 4, 2020 at 0:05
  • As this is really a programming question I think it should be asked at stackoverflow.com
    – curiousdannii
    May 4, 2020 at 0:15
  • Already done! However, response time seems slow despite the number of people viewing it...
    – Jonathan
    May 4, 2020 at 1:31
  • did you get an answer? basic steps in the Praat script would be to 1. read in wav and corresponding textured, 2. write a for loop to loop through all the intervals on the tier containing the Chinese character, matching that certain character, 3. extract the sound and textgrid (if applicable) and write to file.
    – Lisa
    Jun 27, 2020 at 20:32


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.