Page 1 of 1

Redirecting the spoken voice output into a audio file

PostPosted: Tue Jul 17, 2007 11:26 am
by ray
This is a critical need for our product which we are basing on Cepstral. I am working in Java and planning on sending a SSML file into Cepstral to have to say something. But I need to have that spoken sound go to a audio file and not just my headphone jack.. Can this be done and how is this done?

PostPosted: Fri Jul 27, 2007 9:48 am
by Alex
You can do this with the -o flag in command-line swift, like in these couple examples:
Code: Select all
swift -o  wavename.wav    'Text to say here'
swift -o /home/alex/wavename.wav   -f  textfile.txt 

For more flags like this, you can enter:
Code: Select all
swift --help

And for even more fun, but complicated options (for use with the -p flag):
Code: Select all
swift --params 


Enjoy!