How to custumize Linux swift shells
Posted: Thu Apr 26, 2007 11:12 pm
Did you know that if you take the 'swift' shell script and customize it to launch the specific voice and other parameters you want, you no longer
have to specify them on the command line!
for example: gedit swift &
save the file out to a NEW NAME immediately before proceeding, so
as not to harm the original file:
saved mine to: swiftd
search for the bottom line and replace it with your favorite options,
for example:
exec "$SWIFT_BIN/swift.bin" -n David -p "speech/rate=210,audio/sampling-rate=16000" -t -f ${1+"$@"}
Which, as you can plainly see, selects David, and the word speed of
210 wpms !!
Save the file. You may want to make sure Linux see's that as a proper
executable script.
now, whenever I want to read something using David @ 210 wpm,
I just type:
swiftd textfile.txt
How cool is that!
//Rich//
have to specify them on the command line!
for example: gedit swift &
save the file out to a NEW NAME immediately before proceeding, so
as not to harm the original file:
saved mine to: swiftd
search for the bottom line and replace it with your favorite options,
for example:
exec "$SWIFT_BIN/swift.bin" -n David -p "speech/rate=210,audio/sampling-rate=16000" -t -f ${1+"$@"}
Which, as you can plainly see, selects David, and the word speed of
210 wpms !!
Save the file. You may want to make sure Linux see's that as a proper
executable script.
now, whenever I want to read something using David @ 210 wpm,
I just type:
swiftd textfile.txt
How cool is that!
//Rich//