high

Saturday, November 21, 2009

 

Praat read all textgrid in

################################################################ ###  Read in all .wav files and .TextGrid files in a directory ### ### Pauline Welby ### welby@ling.ohio-state.edu ### July 2002 ###  ### works with Praat 4.3.29 ################################################################  # This is a form that queries the user to specify the  name of  # the directory that contains the files to be worked on  form Input directory name with final slash     comment Enter directory where soundfiles are kept:     sentence soundDir E:\PRAAT\TUTORIALS\SOUNDFILES\SET2     comment Enter directory where TextGrids are kept:     sentence textDir E:\PRAAT\TUTORIALS\SOUNDFILES\SET2     comment Enter directory where list files are kept:     sentence listDir E:\PRAAT\TUTORIALS\LISTS endform  # lists all .wav files Create Strings as file list... list 'soundDir$'\*.wav  ## Uncomment following line to read in files from a list # Read Strings from raw text file... 'listDir$'\list.txt  # loop that goes through all files  numberOfFiles = Get number of strings for ifile to numberOfFiles    select Strings list    fileName$ = Get string... ifile    baseFile$ = fileName$ - ".wav"     # Read in the Sound files and TextGrid files with that base name     Read from file... 'soundDir$'\'baseFile$'.wav    #Read from file... 'textDir$'\'baseFile$'.TextGrid  endfor ################################################################ #END OF SCRIPT ################################################################

Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

Archives

October 2004   July 2006   August 2006   May 2007   June 2007   September 2007   October 2007   November 2007   January 2008   March 2008   January 2009   February 2009   March 2009   May 2009   November 2009   April 2010   May 2010   October 2010   December 2010   September 2012   June 2013   August 2013  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]