Debian Codegraph @

praat-mod/Praat_notes

raw
1
2 This is a version of Praat which has an extra function added: Sound_to_Espeak(),
3 which produces a file: spectrum.dat which can be loaded by espeakedit.
4
5 Praat source is available from http://www.praat.org/
6 These notes are for praat version 5.3.41 or later on Linux.
7
8 Packages Needed:
9
10 install packages: libgtk2.0-dev libasound-dev
11
12
13
14 Modifications to add "Sound_to_Espeak" function and button.
15 This analyses speech WAV data and produces a file: "spectrum.dat"
16 which can be loaded in espeakedit to show a sequence of time-slice
17 spectra.
18
19
20
21 1. Copy the file: "Sound_JSD.cpp" into the directory "fon".
22
23
24 2. In the file "fon/Makefile", add to the list of OBJECTS: Sound_JSD.o
25
26
27 3. Edit the file: fon/praat_Sound_Init.cpp,
28
29 =======================
30 after the #include statements at the start of the file, add:
31
32 Spectrogram Sound_to_Espeak(Sound me, double fmin, double fmax, double maxfreq, double minFreqStep1, double maxformant, double phase);
33
34
35 =======================
36 after
37 FORM (Sound_to_Spectrogram....
38 ...
39 END
40 add
41
42 FORM (Sound_to_Espeak, L"From Sound to Spectrogram", L"Sound: To Espeak...")
43 POSITIVE (L"Minimum pitch (Hz)", L"75")
44 POSITIVE (L"Maximum pitch (Hz)", L"300")
45 POSITIVE (L"Maximum frequency (Hz)", L"9500")
46 POSITIVE (L"Frequency step (Hz)", L"40")
47 POSITIVE (L"Maximum formant (Hz)", L"5000")
48 REAL (L"Adjust (min freq)", L"2500")
49 OK
50 DO
51 LOOP {
52 iam (Sound);
53 Sound_to_Espeak(me, GET_REAL (L"Minimum pitch"), GET_REAL (L"Maximum pitch"),
54 GET_REAL (L"Maximum frequency"),
55 GET_REAL (L"Frequency step"),
56 GET_REAL (L"Maximum formant"),
57 GET_REAL (L"Adjust"));
58 }
59 END
60
61 =======================
62 after
63 praat_addAction1 (classSound, 0, L"To Spectrogram...", 0, 1, DO_Sound_to_Spectrogram);
64 add
65 praat_addAction1 (classSound, 0, L"To eSpeak...", 0, 1, DO_Sound_to_Espeak);
66
67 =======================