dbovard Report post Posted 12/17/2007 04:30 AM I'm using the Play Sound File Module "Text to Speak" box. When this is used a .wav file is created. I would like to use the filename created by a module as a result variable if possible. This is a clips from the log showing the path and filename I need to use as a variable. I tried $RV[PlayListingData] but no luck. Thanks. 192449.41 1 state [PlayListingData] Playing (C:\Program Files\VoiceGuide\temp\tts_1_3.wav) Share this post Link to post
SupportTeam Report post Posted 12/17/2007 05:12 AM The filename into which the TTS is saved into is not assigned to a Result Variable at this stage. This feature could be added into the software if you wish. Please contact sales@voiceguide.com for pricing on getting this added to the software. The name is generate using the LineID ($RV_LINEID) and a counter, so you could predict the filename if you know which TTS generation during the current call it is... The counter is reset to 1 at the start of each call , Looking at the trace will let you see the successive filenames used. Share this post Link to post
dbovard Report post Posted 12/18/2007 12:16 AM Yes I noticed this too. Just seemed safer to use a variable because of this. No problem thanks. Share this post Link to post
dbovard Report post Posted 12/20/2007 12:55 AM Actually I am having a problem with this. Before the Play Module I need to get the file from there are other possible routes in my script that could potentially play a sound as well, for example typing in a wrong number then prompts wrong number. Well this then changes the filename(counter) used by the TTS.wav file. I'm having a hard time figuring out the best solution to avoid this, and always get the file from a specific Play Module somehow someway. Only thing I can think of is implementing an incrimental counter on every play module and then use this counter variable as the "counter" part of the TTS.wav filename...? What do you guys recommend here? Can you help me out with the best alternative solution. Thanks.. Share this post Link to post
SupportTeam Report post Posted 12/20/2007 03:33 AM If there are many different routes through the script before the script arrives at this TTS module, and the different routes have a different number of TTS generated files used by them then to determine in advance the TTS filename you would need to take into account the path taken. It may be more straightforward, and better for script maintainability to have the TTS filename exposed as RV. Please contact sales@voiceguide.com if you'd require this. Another approach may be to not try to access VoiceGuide's internal TTS file at all, but generate a new TTS file yourself, calling a program which generates the TTS from within VG's Run Program or Run VBScript module. The filename would then be know to you as you'd specify the filename yourself directly. Share this post Link to post
dbovard Report post Posted 12/20/2007 04:25 AM Making it a variable would be easiest, the tts commandline application may be the way to go, thanks. Share this post Link to post
dbovard Report post Posted 12/23/2007 07:11 AM Wondering if anyone would know how to create a wav file using Sapi/TTS and Vbscript. I've found nothing that shows how to use a specific voice and then output to a .wav. Any help appreciated. Share this post Link to post
SupportTeam Report post Posted 12/23/2007 09:34 PM The approach would be to run a program which creates the .WAV file. Some TTS engines come with such programs (eg. Cepstral provides swift.exe) You may want to search the internet for other program utilities which do this. You would not be able to call the SAPI interface directly from VBScript. Share this post Link to post
ktruk Report post Posted 01/05/2008 11:46 PM Support: Can I just state that I would find the TTS filename stored in an RV useful. Please consider slipping this into the code as an enhancement sometime. Thx. Share this post Link to post