Advanced Usage - Command Lines
USAGE:
ttscmd <command> <infile/text> [outfile] [switches]...
<>: Required, []: Optional
EXAMPLES:
Base text to speech without switches:
========================
ttscmd /tts "The text you want to listen to"
ttscmd /tts input.txt
ttscmd /tts input.doc
ttscmd /tts input.pdf
ttscmd /tts input.eml
ttscmd /tts input.html
Convert text to wave audio file with the first voice and adjust speed of reading to 150:
=======================================================
ttscmd /ttw input.txt output.wav -e 0 -s 150
Convert text to MP3 audio file (resample frequency = 22.05khz, bitrate = 128khz):
=====================================================
ttscmd /ttm input.txt output.mp3 -r 22.05 -b 128
List all voices on your system:
====================
ttscmd /e
COMMANDS:
/? Display this help
/e List all speech engines(popularly, voices) with index numbers
/tts Read txt/doc/pdf/eml/html file directly (text to speech)
/ttw Convert txt/doc/pdf/eml/html file into WAVE file (text to wav)
/ttm Convert txt/doc/pdf/eml/html file into MP3 file (text to MP3)
/wtm Convert WAVE file into mp3 file (wav to mp3)
/mtw Convert MP3 file into wav file (mp3 to wav)
/dtt Convert Word file into plain text file
/ptt Convert PDF file into plain text file
/ett Convert EMail file into plain text file
/htt Convert HTML file into plain text file
SWITCHES:
-e <v>
Read/convert text/file with a special speech engine
<v> is speech engine index
<v> = 0...?
Default -e 0
Note: You can display all speech engines with the command line "ttscmd /e" or display the full info of a special speech engine with "ttscmd /e -e <v>".
-s <v>
Adjust the speed of speech
<v> is the value of speed
<v> = 50...500.
Default depending on the selected speech engine
-p <v>
Adjust the pitch of speech
<v> is the value of pitch
<v> = 50...400.
Default depending on the selected speech engine
-w <v>
Write to file speed
<v> is the times of the base speed
<v> = 1...128+.
Default -w 8
Note: The maximum of <v> depending on the speed of your cpu.
-r <v>
Sampling frequency of output file
<v> is the value(kHz)
<v> = 8, 12, 11.025, 16, 24, 22.05, 32, 48, 44.1
Default -r automatic
-b <v>
Set the bitrate in kbps
<v> is the value(kbps)
When the value of the option -r = 32, 48, 44.1
<v> = 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320
else
<v> = 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160
For more information, see also the following table.
Default -b 128
Note: The relation of sample frequency to bitrate:
------------------------------------------------------------------------------
MPEG-1 layer III sample frequencies (kHz): 32 48 44.1
bitrates (kbps): 32 40 48 56 64 80 96 112 128 160 192 224 256 320
MPEG-2 layer III sample frequencies (kHz): 16 24 22.05
bitrates (kbps): 8 16 24 32 40 48 56 64 80 96 112 128 144 160
MPEG-2.5 layer III sample frequencies (kHz): 8 12 11.025
bitrates (kbps): 8 16 24 32 40 48 56 64 80 96 112 128 144 160
------------------------------------------------------------------------------
-m <v>
(s)tereo, (j)oint, (f)orce, (m)ono or (a)auto
force: force ms_stereo on all frames.
auto: jstereo, with variable mid/side threshold
<v> is the mode code
<v> = s, j, f, m, a
Default -m s or -m j depending on bitrate
-q <v>
Mp3 quality level
<v> is the level
<v> = 0...9.
0: Highest quality, very slow
9: Poor quality, but fast
Recommended:
2: Slow, good quality
7: Fast, ok quality
Default -q 5
-noic
Disable Ignore Characters
-nopc
Disable Pronunciation Corrections
댓글