[Freeswitch-users] PlayAndGetDigits multiple WAV files

Michael Jerris mike at jerris.com
Tue Dec 15 14:05:25 PST 2009


You can do that with phrase macros.

Mike

On Dec 15, 2009, at 2:56 PM, Malay Thakershi wrote:

> Hello, I create one WAV file that has:
>  
> Question + Option 1 + Option 2 + Option 3 + …
>  
> I noticed towards end of the file Cepstral Allison starts chopping and speeding up.
>  
> So my question text that gets converted to WAV file using swift EXE looks like:
>  
> <break strength='weak'/>Which is the biggest mammal on land?
> <break strength='weak'/>Select one of the following choices.<break strength='weak'/>Or press star to skip the question
> <break strength='weak'/>1 <break strength='weak'/> Parrot
> <break strength='weak'/> 2 <break strength='weak'/> Elephant
> <break strength='weak'/> 3 <break strength='weak'/> T-Rex
> <break strength='weak'/> 4 <break strength='weak'/> Blue Whale
> <break strength='weak'/>
>  
> And my csharp code looks like:
>                     pStrRetID = mObjMainSession.PlayAndGetDigits(1, 1, 3, 5000, "*#",
>                         @"C:\FreeSWITCH\sounds\en\us\chAsmt\Student_1222\Q1.WAV ",
>                         @"C:\FreeSWITCH\sounds\en\us\chAsmt\static\error\invalid_choice.wav",
>                         "^\\d", "");
>  
>  
> What happens is, the voice just starts chopping and speeding up between options. Even though I am not able to say that it only does that towards the end, I think so.
>  
> I thought, if I break each file into individual WAV instead of 1 big WAV, it may help?
>  
> Is there a way to play multiple (separate) WAV files in PlayAndGetDigits function?
>  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091215/bdf3d478/attachment-0002.html 


More information about the FreeSWITCH-users mailing list