There are currently recurrent problems with Praat audio on Linux. While
these are dealt with by the maintainers of Praat, I have added a way to
specify an alternative way to play audio to work around this problem.
Make sure you have a player installed that can be called from the command line. This example will use
aplay (Alsa, Linux) and
play (
Sox, macintosh).
https://jordilin.wordpress.com/2006/07/28/howto-recording-audio-from-the-command-line/In your home directory, locate the following settings directory. If you
cannot find it, start up SGC and close it again once. The directory
should have been created.
Linux:
.SpeakGoodChinese2/TTS
Mac OSX*:
~/Library/Preferences/SpeakGoodChinese2/TTS
Create the file with the name below in this directory:
TTS_UNIX_record_command.txt
Start the file with a single line of text:
Linux:
aplay -q
Macintosh:
/opt/local/bin/play -q
Note that the position of the filename of the recorder at the end of the line is left blank. SGC will fill this value.
You
can change the recording parameters to your liking. It might work with
other recorders. But they should record when called as:
<your command line> <filename>
From
this moment on, SpeakGoodChinese will use this command to play
speech. Currently, I have not been able to get this tested on Windows.
*: To access the Library directory on Mac OSX, see