FrontPage

Counter: 1483, today: 1, yesterday: 2

Praat Sample Scripts for Specific Purposes

  • Most of the scripts presented below are concerned with TextGrid manipulation, because ...
    • my primary interest lies in corpus annotation (rather than, say, acoustic analysis), and
    • there seem to be much fewer scripts for TextGrid manipulation than for Sound manipulation.
  • The scripts have been tested with Praat version 5.2.x. (for Windows).
  • The author expressly disclaims all liability, loss or risk incurred as a direct or indirect consequence of the use of the scripts below.
  • Comments are welcome. -> ContactMe

Table of Contents

TextGrid manipulation

divide.praat

  • Download: filedivide.praat
  • Description:
    • Divide labels by the delimiter specified in the form.
    • It is helpful in making an initial value for the manual labeling work.
  • Sample TextGrid: filesample_divide.TextGrid

divide.JPG

Online manipulation on the TextGridEditor

move2right.praat

  • Download: filemove2right.praat
  • Description:
    • Move the boundaries in the selected region to the right so as for the last boundary to be located at the end of the selection.
    • The default target tier is #2. Rewrite the script (line 24) if necessary.
      targetTierNum = 2
    • This script does nothing when
      • no region is selected.
      • only one boundary is selected.
      • the last boundary in the selected region coincides with the end of the selection.
    • This script gives a warning and aborts the job when
      • the target tier is NOT an interval tier.
      • two or more TextGrid Objects exist on the Object window.
      • no TextGrid Object exists on the Object window.
    • WARNING: DO NOT OPEN/VIEW/EDIT ONE AND THE SAME TEXTGRID WITH TWO OR MORE EDITORS*1.

move.JPG


*1 Does anyone know the way to judge whether or not a particular TextGrid has already been opened with a (TextGrid) Editor?

Attach file: filemove2right.praat 279 download [Information] filemove.JPG 215 download [Information] filedivide.praat 321 download [Information] filesample_divide.TextGrid 251 download [Information] filedivide.JPG 217 download [Information]

Front page   Edit Unfreeze Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes
Last-modified: 2011-05-27 (Fri) 21:07:53 (2276d)