Instructions on how to build SpeakGoodChinese

46 views
Skip to first unread message

Rob van Son

unread,
Feb 11, 2015, 9:51:54 AM2/11/15
to speakgoo...@googlegroups.com
SpeakGoodChinese is nothing but a Praat script. See here:
http://www.fon.hum.uva.nl/rob/PraatDemoApps/sgc2/praat_module/SpeakGoodChinese2expanded.praat

You can test this out by downloading and running this script in Praat. Or if you have the sgc2 repository, open the sgc2.praat script inside Praat and select Run.
The binary is built by patching the Praat source code and incorporating the SGC script into the binary.

The first thing to accomplish is to be able to compile Praat. The Praat source code page tells you how to do this:
http://www.fon.hum.uva.nl/praat/download_sources.html

See this page for more links on building praat for Mac and Windows:
http://www.fon.hum.uva.nl/rob/PraatDemoApps/
And some extra information on cross-compiling for Windows:
http://www.fon.hum.uva.nl/rob/CompilingPraatOnXP.html

SpeakGoodChinese can be cloned from its Git repo: http://repo.or.cz/w/sgc2.git
Install Git (http://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and use the command:
git clone git://repo.or.cz/sgc2.git
You can download Praat source from:
http://www.fon.hum.uva.nl/praat/download_sources.html

A Praat git repository can be cloned from (this is always the latest Praat version):
git clone git://uvafon.hum.uva.nl/praat_sources
Name the directory with the Praat source praat_sources (the downloads from www.praat.org have version numbers in them). 
You can put those two local repositories, sgc2 and praat_sources, side by side or put praat_sources inside sgc2
For building on the Mac you will need to download the Praat project file from (see section 5.): http://www.fon.hum.uva.nl/praat/download_sources.html Put the Mac project file inside the praat_sources directory. See the instructions on the Praat source page for disabling code signing.
When the above is ready, in a terminal window, cd into the sgc2 directory and enter
make
The SpeakGoodChinese App can be found in the sgc2/praat_module when it finishes.

For cross-compilation to windows, visit this page:
http://www.fon.hum.uva.nl/rob/CompilingPraatOnXP.html
It also tells you how to cross-compile under Linux. The Windows binary of SpeakGoodChinese will be built if there is a directory named praat_mingw present with the correct setup.

Basically, if you can builtdPraat binaries, you should be able to build SpeakGoodChiense. You can look into the Praat page for compiling sources for additional information if things do not work out.


Kan

unread,
Apr 10, 2016, 12:06:58 PM4/10/16
to SpeakGoodChinese
I ran Praat script from your link and the program was show up. Is it possible to export Praat script as a standalone program?
Reply all
Reply to author
Forward
0 new messages