eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Praat_notes 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. This is a version of Praat which has an extra function added: Sound_to_Espeak(),
  2. which produces a file: spectrum.dat which can be loaded by espeakedit.
  3. Praat source is available from http://www.praat.org/
  4. Use praat version 5.1.20 or later.
  5. Packages Needed:
  6. Package: "libmotif3" to run praat, and package: "libmotif-dev" to compile praat.
  7. (or alternatively packages "lesstif2" and "lesstif2-dev", but Pratt's user interface
  8. doesn't work correctly with these).
  9. install packages: libxt-dev, x11proto-print-dev, libasound-dev
  10. Modifications to add "Sound_to_Espeak" function and button.
  11. This analyses speech WAV data and produces a file: "spectrum.dat"
  12. which can be loaded in espeakedit to show a sequence of time-slice
  13. spectra.
  14. 1. Copy the file: "Sound_JSD.c" into the directory "fon".
  15. 2. In the file "fon/Makefile", add to the list of OBJECTS: Sound_JSD.o
  16. 3. Edit the file: fon/praat_Sound_Init.c,
  17. after
  18. FORM (Sound_to_Spectrogram....
  19. ...
  20. END
  21. add
  22. FORM (Sound_to_Espeak, L"From Sound to Spectrogram", L"Sound: To Espeak...")
  23. POSITIVE (L"Minimum pitch (Hz)", L"75")
  24. POSITIVE (L"Maximum pitch (Hz)", L"300")
  25. POSITIVE (L"Maximum frequency (Hz)", L"9500")
  26. POSITIVE (L"Frequency step (Hz)", L"40")
  27. POSITIVE (L"Maximum formant (Hz)", L"5000")
  28. REAL (L"Adjust (min freq)", L"2500")
  29. OK
  30. DO
  31. EVERY_TO (Sound_to_Espeak (OBJECT, GET_REAL (L"Minimum pitch"), GET_REAL (L"Maximum pitch"),
  32. GET_REAL (L"Maximum frequency"),
  33. GET_REAL (L"Frequency step"),
  34. GET_REAL (L"Maximum formant"),
  35. GET_REAL (L"Adjust")))
  36. END
  37. after
  38. praat_addAction1 (classSound, 0, L"To Spectrogram...", 0, 1, DO_Sound_to_Spectrogram);
  39. add
  40. praat_addAction1 (classSound, 0, L"To eSpeak...", 0, 1, DO_Sound_to_Espeak);