From: David <dav...@at...> - 2003-02-16 18:59:50
|
Hi, I recently posted a question asking if the current vv_tts.pl can do different voices to a file (which is what we push to audrey and web browsers). Noone knew the answer. I now know the answer, which is no. This is not a huge surprise, as there are comments in the code indicating that this support seems to be missing: $parms{text} = "`v" . $parms{voice} . " " . $parms{text} if $parms{voice}; # Does not work with to_file?? I dug in to this a bit, and I think I have a fix: If you add the two lines below to vv_tts.pl voices will work to Audrey! I now have her speaking with all the viavioce voices. 196a197,198 > eciSetParam($h,eciInputType,1); > $parms{text} = "`v" . $parms{voice} . " " . $parms{text} if $parms{voice}; I tested this with Viavoice 5.1, mh 2.78 and it seems to work fine. Bruce, if you think this is okay, can you add to the next release? Also, I am going to make volume work with viavoice and to_file. I think this is just a matter of figuring out what volume viavoice uses for each voice, and then scaling that volume by the user's volume value. I'll post the code when I think it works. Thanks, David Satterfield |