Page 1 of 1

How to : cepstral python API

PostPosted: Mon Oct 24, 2011 7:53 am
by dhakkon
What is the easiest method to call the Cepstral TTS engine from the python script? (any sample code)
is it possible to access the features of Cepstral TTS engine natively using python? (Any API documentations)

PostPosted: Mon Oct 24, 2011 6:08 pm
by aiprog
Try the subprocess module:

import subprocess
subprocess.call(['swift', "text to be spoken"])

to read a file:

subprocess.call(['swift', '-f', 'filename.wav'])