- Notifications
You must be signed in to change notification settings - Fork20
brookhong/tts
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A command line tool to read text with Microsoft Speech API (SAPI), written by Brook Hong in 2008.
Pre-built binary athttp://sharing-from-brook.16002.n6.nabble.com/file/n4967530/tts.zip
tts [options] [text_to_read] -h show this message. -I interactive mode. -F list all formats supported. -V list all voices installed. -f <format index> use the indexed format. -v <voice index> use the indexed voice. -i <filename> read from the file. -o <filename> output to the .wav file. -l output .lrc files. -t convert to .mp3 file. -s <minutes> split the output every X minutes, default by 5.
1tts.exe -F
to list all formats available on your computer.
0 SPSF_12kHz16BitStereo1 SPSF_16kHz16BitMono2 SPSF_16kHz16BitStereo3 SPSF_22kHz16BitMono4 SPSF_22kHz16BitStereo5 SPSF_24kHz16BitStereo6 SPSF_32kHz16BitStereo7 SPSF_44kHz16BitMono8 SPSF_44kHz16BitStereo9 SPSF_48kHz16BitMono10 SPSF_48kHz16BitStereo
2tts.exe -V
to list all voices available on your computer.
0 Microsoft Anna - English (United States)1 ATT DTNV1.4 Crystal162 ATT DTNV1.4 Mike163 ATT DTNV1.4 Audrey164 Microsoft Lili - Chinese (China)5 VW Paul
3 now read text with format SPSF_48kHz16BitStereo and voice ATT DTNV1.4 Crystal16:
tts.exe -f 10 -v 1 "look, here is brook"
tts.exe -f 10 -v 1 "look, here is brook" -o look
to generate look.wav instead of reading it.
tts.exe -f 10 -v 1 "look, here is brook" -o look -t
to generate look.mp3 instead of reading it.
cl tts.cpp lame.lib libmp3lame-static.lib mpglib-static.lib