[Voiceglue] Using text2wave from Festival as tts
emiliano
emiespo at tiscali.it
Thu Jan 15 05:02:10 EST 2009
Carlos Alarcón ha scritto:
> open SALIDA, ">", "/tmp/tts.txt";
> print SALIDA $::ARGV[1];
> close SALIDA;
> #print ("/usr/bin/text2wave","-F 8000 -otype ulaw -o", $file
> ,"/tmp/tts.txt");
> system ("/usr/bin/text2wave","-F 8000 -o", $file ,"/tmp/tts.txt ");
>
> My knowledge of perl is almost none, so I guess there will be lots of
> different and better ways of doing it. I didn't know if there was any
> previous way, I didn't find it so far.
> Just wanted to keep it avaliable in case it could be usefull to the
> other people.
I had a similar problem (I also had to deal with non standard ASCII
characters), but using just one file (ie: /tmp/tts.txt) for the output
stopped working as soon as multiple prompts got rendered, this happened
since voiceglue calls the tts_gen script in an asynchronous way.
I was getting prompts overwritten, I had to use something like
$file.".txt" for the text file.
More information about the Voiceglue
mailing list