-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
executable file
·1039 lines (977 loc) · 41.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="author" content="Mietta Lennes"><title>SpeCT - The Speech Corpus Toolkit for Praat (former title: Mietta's scripts for the Praat program)</title>
<meta name="description" content="Some of Mietta's scripts for the Praat speech analysis program"></head><body text="#000000" bgcolor="#ffffff" link="#0000ff" alink="#000088" vlink="#ff0000">
<a name="top"></a>
<a href="https://github.com/lennes/spect"><- The SpeCT repository on GitHub</a>
<br>
<hr width="100%" size="2"><br>
<div align="Center">
<h1><em>SpeCT</em> - The Speech Corpus Toolkit for Praat</h1>
<h3>(formerly known as <em>Mietta's Praat scripts</em>)</h3>
</div>
<p>The aim of the <b>Speech Corpus Toolkit for Praat (SpeCT)</b> is to provide an organized inventory of well-documented Praat scripts that can be easily downloaded, modified and used in order to perform small tasks during the various stages of building, organizing, annotating, analysing, searching and exporting data from a <A HREF="https://secure.wikimedia.org/wikipedia/en/wiki/Speech_corpus">speech corpus</A>.</p>
<p><a href="https://github.com/lennes/spect/releases">List of releases that you can cite</a></p>
<hr width="100%" size="2"><br>
<div align="Center"><b>Please note:</b><br>
These scripts may not have been fully tested! You may use them at your own risk.<br>
<em>I cannot provide support for using the scripts</em>, but I will gladly receive bug reports ;-)<br>
</div>
<br>
<br>
<br>
<table cellpadding="2" cellspacing="2" border="0" width="90%" align="Center">
<tbody>
<tr>
<td valign="Top" width="25%">
<b>Organize files and objects →</b>
<ul>
<li><a href="#files">Files and objects</a>
<br>
<li><a href="#pauses">Pause detection</a>
<br>
<li><a href="#cutting">Cutting up long sound files</a><br>
<li><a href="howto/slicing.html">How to extract short sound files
from a long sound file</a>
</ul>
</td>
<td valign="Top" width="25%">
<b>Annotate and
manage TextGrids →</b>
<ul>
<li><a href="#import">Import segmentation data</A>
<li><a href="#labeling">Labeling and TextGrid management</a>
<li><a href="#forced-alignment">Automatic forced alignment of words and phonemes <br/>within previously annotated utterances</a>
</ul>
</td>
<td valign="Top" width="25%">
<b>Analyze and visualize →</b>
<ul>
<li><a href="#views">Analysis views</a>
<li><a href="#pictures">Drawing pictures</a><br>
<li><a href="#calculate">Calculating data from labeled TextGrids and sounds</a>
<br>
</ul>
</td>
<td valign="Top" width="25%">
<b>Export data</b>
<ul>
<li><a href="#export">Export segmentation data</A><br>
<li><a href="howto/conversation_transcript.html">Export
a CA style conversation transcript from a TextGrid</a>
<br>
</ul>
</td>
</tr>
</tbody>
</table>
<ul>
<li>These Praat scripts were written by <a href="http://orcid.org/0000-0003-4735-3017">
Mietta Lennes</a>
. They should provide some functionalities and tools for the <a href="http://www.praat.org/">
Praat </a>
program for phonetic analysis (see the Praat home page at <a href="http://www.praat.org/">
http://www.praat.org/</a>
). Praat is being developed by Paul Boersma and David Weenink in
the University of Amsterdam.</li>
<li> These scripts are distributed under the <a href="LICENSE">
GNU General Public License</a>. The scripts are distributed without any warranty: I do not guarantee
that the scripts work in your system, and I will not be held responsible
for any harm or damage caused by their use. Please make sure that
you know what you are doing. </li>
<li> Please refer any interested parties to this web page (<a href="https://lennes.github.io/spect/">https://lennes.github.io/spect/</a>).</li>
</ul>
<b>How to run and modify the scripts:</b> see Scripting tutorial in the
built-in Help pages within the <a href="http://www.praat.org/">Praat</a>
program (see the Help menu in the Objects list). <br>
<b>Requirements: </b>In the Requirements column, you can find information
on what type of objects have to be selected in the Object list or what sort
of files are needed in order to run each script. This is important especially
when you want to create new buttons or menu commands to use the script.<br>
<b>Compatibility note: </b>Some of the scripts were originally written
in a Windows machine, some in Macintosh, and some in Linux. All of them
should work in any platform running Praat, but you may want to change,
e.g., the default path for files according to your system. The version number
tells you the Praat version on which the script has been tested. Sometimes
the commands change in Praat, and consequently all of the scripts may not
work in all Praat versions.<br>
<div align="Right"><a href="#top">Go up</a>
<br>
</div>
<br>
<hr width="100%" size="2">
<h3><a name="files"></a>
Files and objects</h3>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="Top"><i><b>File name</b></i><br>
</td>
<td valign="Top"><i><b>Requirements</b></i><br>
</td>
<td valign="Top"><i><b>Output</b></i><br>
</td>
<td valign="Top"><i><b>Praat version</b></i><br>
</td>
<td valign="Top"><i><b>Description</b></i><br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/open_all_files_in_folder.praat"> open_all_files_in_folder.praat</a>
</h4>
<br>
</td>
<td valign="Top">No selections needed<br>
</td>
<td valign="Top">New objects for all the files in a given folder<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">This script will open all the files in a user-specified
directory, given that they can be recognized by Praat. Unknown file formats
in the folder will result in an error. <br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/change_sample_rate_of_sound_files.praat">change_sample_rate_of_sound_files.praat</a>
</h4>
<br>
</td>
<td valign="Top">No selections needed<br>
</td>
<td valign="Top">Resampled copies of sound files<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">This script will open all the sound files in a user-specified
directory one by one, resample each file to a given sampling rate,
and save resampled files to another directory in AIFF or WAV
format.<br>
<I>Tip:</I> You can also use this script just to change the
file format of all the sounds in a directory.<br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/remove_all_objects.praat"> remove_all_objects.praat</a>
</h4>
</td>
<td valign="Top">No selections needed<br>
</td>
<td valign="Top">An empty object list<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">Beware! This script will remove all the objects
in the Object list. NO UNDO. All unsaved changes will be lost. To be on
the safe side, the user will be prompted before removing the objects. <br>
The script is useful as a menu command within the Object list, if
you need to handle large amounts of objects at once and you often need
to clean them out.</td>
</tr>
</tbody>
</table>
<div align="Right"><a href="#top">Go up</a>
<br>
</div>
<h3><a name="views"></a>
Analysis views</h3>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="Top"><i><b>File name</b></i><br>
</td>
<td valign="Top"><i><b>Requirements</b></i><br>
</td>
<td valign="Top"><i><b>Output</b></i><br>
</td>
<td valign="Top"><i><b>Praat version</b></i><br>
</td>
<td valign="Top"><i><b>Description</b></i><br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/draw_spectrum_from_selection.praat" download>draw_spectrum_from_selection.praat</a>
</h4>
</td>
<td valign="Top">A Sound editor window has to be open, and a single
point has to be selected. Open the script from the File menu of the editor
window.<br>
</td>
<td valign="Top">A Spectrum editor window containing the spectrum
around the cursor<br>
</td>
<td valign="Top">4.0.5<br>
</td>
<td valign="Top">This script will draw a spectrum from a window around
the cursor. <br>
(Note: The original version of this script is not Mietta's idea -
it can be found in the built-in Praat manual. Due to some changes in Praat
commands, the original script would not work in new Praat versions. This
one works.)<br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/draw_LPC_spectrum_from_selection.praat" download>draw_LPC_spectrum_from_selection.praat</a>
</h4>
</td>
<td valign="Top">A Sound editor window has to be open, and a single
point has to be selected. Open the script from the File menu of the editor
window.<br>
</td>
<td valign="Top">A Spectrum editor window containing an LPC spectrum
around the cursor<br>
</td>
<td valign="Top">4.0.5<br>
</td>
<td valign="Top">This script is a modification of the one above:
it will draw an LPC spectrum from a window around the cursor: first, a
window will be extracted from around the cursor, then an LPC object will
be calculated, and the center frame of the LPC analysis will be drawn
as a Spectrum object. The user will be prompted for the LPC analysis options.<br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/draw_formant_chart.praat" download> draw_formant_chart.praat</a>
</h4>
</td>
<td valign="Top">A folder containing sound files and the corresponding
TextGrid files<br>
</td>
<td valign="Top">An F1/F2 formant chart of all transcribed segments
in a folder<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">This script reads sound files and the corresponding
TextGrid files from a user-specified folder and draws F1-F2 values to the
Picture window from the centre points of all segments that have a given
label. All F1/F2 values are also written to a text file. Based on the Formant
object (which is LPC based) supplemented with the Track command. <br>
(Hint: The script can be easily modified to make some other measurements
from the segments!)</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/play_vowels_draw_formant_chart.praat" download> play_vowels_draw_formant_chart.praat</a>
</h4>
<br>
</td>
<td valign="Top">A Sound object and the corresponding TextGrid object
have to be selected<br>
</td>
<td valign="Top">An F1/F2 formant chart in the Picture window, with
vowel points<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">This script will draw F1-F2 values from the centre
points of segments according to the selected TextGrid object. The user
will be prompted for the tier and for the interval labels that will be analysed.
Based on the Formant object (which is LPC based) supplemented with the Track
command. <br>
The script will also play each segment and the environment a couple
of times - just for the fun of it!<br>
</td>
</tr>
</tbody>
</table>
<div align="Right"><a href="#top">Go up</a>
<br>
</div>
<h3></h3>
<h3><a name="pauses"></a>
Pause detection</h3>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="Top"><i><b>File name<br>
</b></i></td>
<td valign="Top"><i><b>Requirements<br>
</b></i></td>
<td valign="Top"><i><b>Output<br>
</b></i></td>
<td valign="Top"><i><b>Praat version<br>
</b></i></td>
<td valign="Top"><i><b>Description</b></i><br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/mark_pauses.praat" download> mark_pauses.praat</a>
</h4>
<br>
</td>
<td valign="Top">One or more LongSound objects have to be selected<br>
</td>
<td valign="Top">A new TextGrid object for each LongSound object.
TextGrid will be saved to a user-defined location.<br>
</td>
<td valign="Top">4.0.5<br>
</td>
<td valign="Top">This script will run a series of intensity analyses
on a LongSound object and mark boundaries at pauses into a new TextGrid
object: one boundary in the center of each pause, or two boundaries at the
edges. The user is allowed to define the intensity criteria for a pause:
the upper intensity limit, and how long the pause has to be.
It works, but don't expect miracles! The optimal pause criteria may vary
depending on the sound material.<br>
<EM>(Some bug fixes 23.1.2006)</EM> </td>
</tr>
</tbody>
</table>
<div align="Right"><a href="#top">Go up</a>
<br>
</div>
<h3></h3>
<h3><a name="cutting"></a>
Cutting up long sound files</h3>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="Top"><i><b>File name<br>
</b></i></td>
<td valign="Top"><i><b>Requirements<br>
</b></i></td>
<td valign="Top"><i><b>Output<br>
</b></i></td>
<td valign="Top"><i><b>Praat version<br>
</b></i></td>
<td valign="Top"><i><b>Description</b></i><br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/save_intervals_to_aiff_sound_files.praat" download> save_intervals_to_aiff_sound_files.praat</a></h4>
<h4><a href="scripts/save_intervals_to_wav_sound_files.praat" download> save_intervals_to_wav_sound_files.praat</a></h4>
<br>
</td>
<td valign="Top">One LongSound object and the corresponding TextGrid
object have to be selected<br>
</td>
<td valign="Top">Short, numbered AIFF or WAV sound files cut from the LongSound
plus a text file with the labels of the original intervals<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">This script will save all the segments of a LongSound
according to a selected tier in the TextGrid to small AIFF or WAV sound files.
The sound files will get a running index number, and you can also add a
special prefix and/or suffix to all filenames. The labels of the intervals
in the original TextGrid object will be saved to a text file in the same
directory. Convenient for cutting up long sound files. <br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/save_labeled_intervals_to_aiff_sound_files.praat" download> save_labeled_intervals_to_aiff_sound_files.praat</a></h4>
<h4><a href="scripts/save_labeled_intervals_to_wav_sound_files.praat" download> save_labeled_intervals_to_wav_sound_files.praat</a></h4>
<br>
</td>
<td valign="Top">One LongSound object and the corresponding TextGrid
object have to be selected<br>
</td>
<td valign="Top">Short AIFF or WAV sound files cut from the LongSound, named after the interval labels <br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">This version of the above script will save all the segments of a LongSound
according to a selected tier in the TextGrid to small AIFF or WAV sound files.
The sound files will be named after the corresponding TextGrid labels, and you can also add a
special prefix and/or suffix to all filenames. Convenient for cutting up long sound files. <br>
<i>Note:</i> you have to check yourself that the interval labels do
not contain illegal characters (or extra long strings) for the filenames!<br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/save_selection_to_sound_and_textgrid.praat" download> save_selection_to_sound_and_textgrid.praat</a>
</h4>
</td>
<td valign="Top">One LongSound object and the corresponding TextGrid
object have to be selected in the Object window<br>
</td>
<td valign="Top">A WAV sound file and a TextGrid file, that are
copies of the selected location (without preserving times)<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">This script will extract the selected part of a
LongSound and the corresponding TextGrid into separate files. You need
to make sure the correct objects are selected in the Object list and to
make a selection in the TextGrid editor. The script is handy as a menu
command in the editor window. Use it for extracting sound samples for presentation.
</td>
</tr>
</tbody>
</table>
<div align="Right"><a href="#top">Go up</a>
<br>
</div>
<h3><a name="labeling"></a>
Labeling and TextGrid management</h3>
<ul>
<li><a href="#import">Importing segmentation data</a>
</li>
<li><a href="#export">Exporting segmentation data</a>
<br>
</li>
</ul>
<br>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="Top"><i><b>File name<br>
</b></i></td>
<td valign="Top"><i><b>Requirements<br>
</b></i></td>
<td valign="Top"><i><b>Output<br>
</b></i></td>
<td valign="Top"><i><b>Praat version<br>
</b></i></td>
<td valign="Top"><i><b>Description</b></i><br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/label_from_text_file.praat" download> label_from_text_file.praat</a>
</h4>
</td>
<td valign="Top">One TextGrid object has to be selected, and a text
file containing the interval labels must exist<br>
</td>
<td valign="Top">Adds text lines from a text file as labels in a
tier of a TextGrid object<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">This script will take text lines from a text
file and add them as labels to the intervals of a selected tier of a TextGrid
object. The user will be prompted for the location of the text file.<br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/label_quickly_from_text_file.praat" download> label_quickly_from_text_file.praat</a>
</h4>
</td>
<td valign="Top">One TextGrid object has to be selected in the object
list, and a text file containing the interval labels must exist<br>
</td>
<td valign="Top">Overwrites interval labels in the first tier of
a TextGrid with text lines taken from a text file<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">A quick and ruthless version of the previous script:
this one will not open a dialog box before overwriting all the labels! So,
beware. (Hint: use this as a button in the Object list.)<br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/save_selection_to_sound_and_textgrid.praat" download> save_selection_to_sound_and_textgrid.praat</a>
</h4>
</td>
<td valign="Top">One LongSound object and the corresponding TextGrid
object have to be selected in the Object window<br>
</td>
<td valign="Top">A WAV sound file and a TextGrid file, that are
copies of the selected location (without preserving times)<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">This script will extract the selected part of a
LongSound and the corresponding TextGrid into separate files. You need
to make sure the correct objects are selected in the Object list and to
make a selection in the TextGrid editor. The script is handy as a menu
command in the editor window. Use it for extracting sound samples for presentation.
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/total_duration_of_labeled_segments.praat" download> total_duration_of_labeled_segments.praat</a>
</h4>
</td>
<td valign="Top">One TextGrid object has to be selected<br>
</td>
<td valign="Top">The total duration of transcribed intervals will
be printed in the Info window<br>
</td>
<td valign="Top">4.0.5<br>
</td>
<td valign="Top">This script will go through all the intervals in
a selected tier and calculate the total duration of intervals that have
a non-empty label. You can also give an additional criterion for the contents
of another tier.<br>
The script is handy for measuring your progress when you are labeling a
LongSound! Better add a button for it in the dynamic menu.<br>
</td>
</tr>
<tr>
<td valign="Top"><b><a href="scripts/align_boundaries_in_two_interval_tiers.praat" download>align_boundaries_in_two_interval_tiers.praat</a>
</b><br>
</td>
<td valign="Top">One TextGrid object needs to be selected<br>
</td>
<td valign="Top">Boundaries in one interval tier (1) that are sufficiently close to
boundaries in another interval tier (2) will be aligned with boundaries
in tier 2.<br>
</td>
<td valign="Top">4.3.21<br>
</td>
<td valign="Top">This script will align boundaries in two tiers, in case
they are only slightly misplaced. The selected TextGrid will be changed
and the boundaries that are moved around are displayed to the user while the script
is working. Tier 2 stays fixed.<br>
<br>
The script is handy when you need to check, e.g., that word and syllable
boundaries are aligned. If you need to align boundaries in several
tiers, you should first align a tier (1) with boundaries in the tier (2) you
trust most.
<br>
</td>
</tr><tr>
<tr>
<td valign="Top"><b><a
href="scripts/tokenize_tiers_in_TextGrid.praat" download>tokenize_tiers_in_TextGrid.praat</a>
</b><br>
</td>
<td valign="Top">A directory with TextGrid files ending in .TextGrid<br>
</td>
<td valign="Top">The TextGrid files will be replaced with files where the tiers
have been tokenized into new word tiers.
</td>
<td valign="Top"><b>The script has not been fully tested yet!</b><br>
</td>
<td valign="Top">
A copy
is created for each original tier and all the intervals that contain text have
been tokenized (divided into words) into the new tiers. The new tiers will be
called <em>originaltier</em>-word. The word boundaries will be placed roughly
according to the number of (alphabetical) characters in each word with respect to the
length of the string contained in the original interval.<br>
<em>Tip:</em> Save the script file into the same directory with the TextGrid files and
leave the directory box empty when running the script. This will ensure a smooth run
:-)
</td>
</tr><tr>
<tr>
<td valign="Top"><a name="forced-alignment"></a><b><a
href="scripts/align_transcribed_utterance_intervals_with_sound.praat" download>align_transcribed_utterance_intervals_with_sound.praat</a>
</b><br>
</td>
<td valign="Top">Full path to a sound file and to the corresponding TextGrid file with an interval tier that includes the transcribed utterances<br>
</td>
<td valign="Top">Two new tiers (labeled as ../word and ../phoneme) inserted in the TextGrid object
</td>
<td valign="Top">6.1.04<br>
NB: In older Praat versions (<= v6.1.03), the script may fail due to a bug in the corresponding forced alignment command in Praat. The bug was fixed in Praat 6.1.04.
</td>
<td valign="Top">This script automatically aligns the words and phonemes within annotated utterances in a TextGrid. The language of the transcribed utterances can be selected by the user. The script automatically passes through each annotated interval in the given tier and runs the forced alignment command on them. New tiers will be created with the segmentation of words and phonemes suggested by eSpeak.
<br>The script utilizes the eSpeak based automatic aligner that is available in the TextGrid editor window in Praat, see, e.g., http://info.linguistlist.org/aardvarc/resources/AARDVARC_Boersma_Abstract.pdf.
</td>
</tr><tr>
<tr>
<td valign="Top"><b><a href="scripts/replace_part_of_textgrid.praat" download> replace_part_of_textgrid.praat</a>
</b><br>
</td>
<td valign="Top">Two TextGrid objects have to be selected<br>
</td>
<td valign="Top">A new TextGrid object, where IntervalTier(s) from
the longer TextGrid are partly replaced with tiers in the shorter TextGrid<br>
</td>
<td valign="Top">4.0.23<br>
</td>
<td valign="Top">This script will copy all data from one or more tiers
of a short TextGrid object to a selected time point in a longer TextGrid.
Old data in the long TextGrid are thus partly overwritten - however, the
original TextGrids will be saved.<br>
<br>
The script was written for a situation where people want to extract shorter
sections of a LongSound object for labeling, but still they want to be able
to later append the labeled sections back into the big TextGrid file. All
you have to do is make a big TextGrid for the LongSound and mark boundaries
at the starting points of each extracted region. It is also a good idea
to label the extracted intervals with the filenames. This way, you can later
find the correct places for replacements. <br>
<i>Note: There are still errors in this script at the moment, but
the partial replacement of one single tier seems to work nicely!</i> :)<br>
</td>
</tr><tr>
<td valign="Top"><a href="scripts/save_Finnish_tier_to_phoneme_string.praat" download>save_Finnish_tier_to_phoneme_string.praat</a>
<br>
</td>
<td valign="Top">A TextGrid object with an interval tier that has text in Finnish orthography<br>
</td>
<td valign="Top">A text file with the Finnish tier text roughly converted into phonemes<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">This script converts the Finnish text in a Praat IntervalTier
into a phoneme string. The script has been used to prepare input files for
some automatic segmentation tools, which generally need a phoneme string
as input. In the case of Finnish, the grapheme-to-phoneme conversion rules
are very few and simple, so the task is not difficult and you only need a
transliteration of the speech signal to get a pretty good approximation of
the phonemes.<br>
<br>
For technical reasons, the phonemes will be converted to corresponding uppercase characters.<br>
</td>
</tr>
</tbody>
</table>
<div align="Right"><a href="#top">Go up</a>
<br>
</div>
<h4><a name="import"></a>
Importing segmentation data</h4>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="Top"><i><b>File name</b></i><br>
</td>
<td valign="Top"><i><b>Requirements</b></i><br>
</td>
<td valign="Top"><i><b>Output</b></i><br>
</td>
<td valign="Top"><i><b>Praat version</b></i><br>
</td>
<td valign="Top"><i><b>Description</b></i><br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/make_textgrid_from_segment_data.praat" download> make_textgrid_from_segment_data.praat</a>
</h4>
</td>
<td valign="Top">No selections required. There should be a folder
with sound files and corresponding text files with segmentation data.<br>
</td>
<td valign="Top">New TextGrid objects will be created and saved for
all sounds that have segmentation data available<br>
</td>
<td valign="Top">4.0.5<br>
</td>
<td valign="Top">This script will read segmentation and labeling data
from simple text files in a user-specified directory and convert the information
to Praat TextGrid objects, which will then be saved in the same directory.
<br>
The segmentation data should consist of text lines in the form <i>starting
point of segment - space - segment label - line break</i>, and the segments
should be ordered according to time. The corresponding sound files will
also be read, in order to get the correct duration for the TextGrid objects.
The text file names should be identical with the corresponding sound file
names, except for the file extension.<br>
Good for importing simple label data to Praat from other
environments.
<I>A bug in this script was fixed on 30.6.2003. Please email me in case
the script does not work correctly!</I></td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/make_textgrid_from_segment_data_endpoints.praat" download> make_textgrid_from_segment_data_endpoints.praat</a>
</h4>
</td>
<td valign="Top">No selections required. There should be a folder
with sound files and corresponding text files with segmentation data.<br>
</td>
<td valign="Top">New TextGrid objects will be created and saved for
all sounds that have segmentation data available<br>
</td>
<td valign="Top">4.0.5<br>
</td>
<td valign="Top">This script is a modification of the one
above (but this one requires end point times of segments instead
of starting points). It will read segmentation and labeling data
from simple text files in a user-specified directory and convert the information
to Praat TextGrid objects, which will then be saved in the same directory.
<br>
The segmentation data should consist of text lines in the form <i>end
point of segment - space - segment label - line break</i>, and the segments
should be ordered according to time. The corresponding sound files will
also be read, in order to get the correct duration for the TextGrid objects.
The text file names should be identical with the corresponding sound file
names, except for the file extension.<br>
Good for importing simple label data to Praat from other environments.</td>
</tr>
</tbody>
</table>
<div align="Right"><a href="#top">Go up</a>
<br>
</div>
<h4><a name="export"></a>
Exporting segmentation data</h4>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="Top"><i><b>File name</b></i><br>
</td>
<td valign="Top"><i><b>Requirements</b></i><br>
</td>
<td valign="Top"><i><b>Output</b></i><br>
</td>
<td valign="Top"><i><b>Praat version</b></i><br>
</td>
<td valign="Top"><i><b>Description</b></i><br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/save_interval_data_to_text_file.praat" download> save_interval_data_to_text_file.praat</a>
</h4>
</td>
<td valign="Top">One TextGrid object has to be selected<br>
</td>
<td valign="Top">A new text file will be saved with the segment data
of one IntervalTier<br>
</td>
<td valign="Top">4.0.5<br>
</td>
<td valign="Top">This script is the inverse of the preceding script:
it writes a user-specified tier of a selected TextGrid object to a simple
text file. The lines in the text file will have the format <i>starting point
of segment - space - segment label - line break</i>. <br>
Good for exporting simple label data from Praat to other environments.<br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/save_conversation_tiers_as_text_file.praat" download>
save_conversation_tiers_as_text_file.praat</a>
</h4>
</td>
<td valign="Top">One TextGrid object has to be selected<br>
</td>
<td valign="Top">A new text file will be saved containing the
labels from intervals in up to four IntervalTiers in the order of
their starting points<br>
</td>
<td valign="Top">5.1<br>
</td>
<td valign="Top">
This script exports the labeled utterances in a conversation to a
plain text file, one utterance per line. Each speaker must be represented
by one interval tier in the selected TextGrid object. Tier names are used
as individual codes for the speakers. Utterance transcriptions are written
in the order of their starting times, which the user may choose to insert
in front of each utterance line. Pause durations and overlap times
may also be included in the transcript.
<br>Good for exporting a CA style
conversation transcript from Praat.
<br>
</td>
</tr>
</tbody>
</table>
<h4></h4>
<h3> </h3>
<div align="Right"><a href="#top">Go up</a>
<br>
</div>
<h3><a name="calculate"></a>
Calculating data from labeled TextGrids and sounds</h3>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="Top"><i><b>File name<br>
</b></i></td>
<td valign="Top"><i><b>Requirements<br>
</b></i></td>
<td valign="Top"><i><b>Output<br>
</b></i></td>
<td valign="Top"><i><b>Praat version<br>
</b></i></td>
<td valign="Top"><i><b>Description</b></i><br>
</td>
</tr>
<tr>
<td valign="Top">
<h4><a href="scripts/calculate_segment_durations.praat" download> calculate_segment_durations.praat</a>
</h4>
</td>
<td valign="Top">A TextGrid object has to be selected<br>
</td>
<td valign="Top">A text file with duration data<br>
</td>
<td valign="Top">4.0.5<br>
</td>
<td valign="Top">This script will go through all the intervals in
a selected tier of a selected TextGrid object, and save the durations of
labeled intervals to a text file. Each new text line will contain the label
of the interval, a tab separator, and the duration of the segment in question.</td>
</tr>
<tr>
<td valign="Top"><b><a href="scripts/collect_pitch_data_from_files.praat" download>collect_pitch_data_from_files.praat</a>
</b><br>
</td>
<td valign="Top">No selections required<br>
</td>
<td valign="Top">A text file with pitch data<br>
</td>
<td valign="Top">4.0.23-<br>
</td>
<td valign="Top">A script that will go through all the TextGrid
files and the Sound files in a given folder, find sound-grid pairs that have
the same name, open each pair, run through the TextGrid, collect data from
labeled intervals and append the information to a simple tabulated text file
(which you can later open in a statistical or spreadsheet program).<br>
This version calculates the maximum pitch of each labeled interval. Take a look at the script; you should be able to modify the script to suit your own needs!<br>
</td>
</tr>
<tr>
<td valign="Top"><b><a href="scripts/collect_formant_data_from_files.praat" download>collect_formant_data_from_files.praat</a>
</b><br>
</td>
<td valign="Top">No selections required<br>
</td>
<td valign="Top">A text file with formant data<br>
</td>
<td valign="Top">4.0.23-<br>
</td>
<td valign="Top">A script that will go through all the TextGrid
files and the Sound files in a given folder, find sound-grid pairs that have
the same name, open each pair, run through the TextGrid, collect data from
labeled intervals and append the information to a simple tabulated text file
(which you can later open in a statistical or spreadsheet program).<br>
This version calculates formant values at the mid point of each
labeled interval. Take a look at the script; you should be able
to modify the script to suit your own needs! <br>
<B>NB:</B> Automatic formant measurements do not always produce
sensible results, since the
optimal analysis parameters and the interpretation of formants
will vary for different
signals. I do not want to patronize, but... please do not try to use
the same parameters for both male, female, and child speakers!
You should always make sure you understand how the analysis works before
drawing conclusions on the basis of your results. <br>
</td>
</tr>
<tr>
<td valign="Top"><b><a href="scripts/collect_data_from_two_tiers_in_files.praat" download>collect_data_from_two_tiers_in_files.praat</a>
</b><br>
</td>
<td valign="Top">No selections required<br>
</td>
<td valign="Top">A text file with duration and pitch data<br>
</td>
<td valign="Top">4.2.21<br>
</td>
<td valign="Top">A script that will go through all the TextGrid
files and the Sound files in a given folder, find sound-grid pairs that have
the same name, open each pair, find two tiers that have the given names (phone
tier and syllable tier), run through the TextGrid, collect duration and
pitch maximum from labeled phone intervals along with durations of the
corresponding syllable tier intervals, and append this information to a
tabulated plain text file (which you can later open in a statistical or
spreadsheet program). Each data row will also contain both the label of the
phone and the label of the preceding phone interval.<br>
Take a look at it. You can easily add more tiers and analysis objects that the
script should check! <br>
</td>
</tr>
</tbody>
</table>
<div align="Right"><a href="#top">Go up</a>
<br>
</div>
<h3><a name="pictures"></a>
Drawing pictures</h3>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="Top"><i><b>File name</b></i><br>
</td>
<td valign="Top"><i><b>Requirements</b></i><br>
</td>
<td valign="Top"><i><b>Output</b></i><br>
</td>
<td valign="Top"><i><b>Praat version</b></i><br>
</td>
<td valign="Top"><i><b>Description</b></i></td>
</tr>
<tr>
<td valign="Top"><a href="scripts/draw_distribution_bar_from_data_file.praat" download><b>
draw_distribution_bar_from_data_file.praat</b></a>
<br>
</td>
<td valign="Top">A text file, with each line containing a number,
a space, and any text<br>
</td>
<td valign="Top">A horizontal bar in the Picture window, showing the
distribution of the lines in the text file<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">This script takes advantage of the TextGrid drawing
functionalities. It creates a fake TextGrid object from the data you give
in a text file, draws it as a horizontal bar with "boundaries" to the Picture
window, and adds a title and some other information. The whole bar represents
"100%", so you can see how your data is distributed... funny, but rather useful!
<br>
</td>
</tr>
<tr>
<td valign="Top"><a href="scripts/draw_formant_point_to_Bark_chart.praat" download><b>
draw_formant_point_to_Bark_chart.praat</b></a>
<br>
</td>
<td valign="Top">F1 and F2 values for a vowel point<br>
</td>
<td valign="Top">A Bark-scale formant chart picture with a one-Bark
formant circle<br>
</td>
<td valign="Top"><br>
</td>
<td valign="Top">This script draws a one-Bark vowel circle from given
formant values (Hz) on a Bark-scale F1/F2 chart.
<br>
</td>
</tr>
<tr>
<td valign="Top"><a href="scripts/draw_formant_point_to_ERB_chart.praat" download><b>
draw_formant_point_to_ERB_chart.praat</b></a>
<br>
</td>
<td valign="Top">F1 and F2 values for a vowel point<br>
</td>