VoiceGuide IVR Software Main Page
Jump to content

Tts In Prompts For Input

Recommended Posts

Does anybody know if there is any way to use TTS in the prompts for input?

 

For example when I create a module that prompts for a #, I would like to use TTS instead of a recorded file.

 

Currently, I have to add an additional module to 'say' the text which is a great hassle. Is there any way around this?

 

Thanks for any help offered.

Share this post


Link to post

In what module are you "prompting for a #" ? Can you post the script as it is right now? This will allow us to better see what you are trying to achieve.

 

TTS can be used in most places where .WAV files are specified - just specify a Text file instead (.TXT) and the contents of that Text file will be spoken using TTS.

Share this post


Link to post

Thanks. Works like a charm.

 

The only exception is that now I'm trying to do a 'Speak number' module. I am trying to do TTS via 2 text files before and after speaking a # in dollars and cents.

 

The module runs and accepts input, but I cannot here anything. Here's part of the log. Everythig looks ok, and everythig else worked ok, except I don't hear any audio for SayAmt. I have double checked the text files exist and have content in them. All other txt files are spoken no problem.

 

010846.54 6 [checkAmtSize1] Evaluate [$RV[GetAmt] > 100000]

010846.55 6 RVreplace start: [$RV[GetAmt] > 100000]

010846.55 6 RVreplace end: [12312 > 100000]

010846.55 6 .Eval(12312 > 100000)

010846.55 6 Eval Expr result:[False]

010846.56 6 [checkAmtSize2] Evaluate [$RV[GetAmt] < 100]

010846.56 6 RVreplace start: [$RV[GetAmt] < 100]

010846.57 6 RVreplace end: [12312 < 100]

010846.57 6 .Eval(12312 < 100)

010846.57 6 Eval Expr result:[False]

010846.58 6 RVreplace start: [$RV[GetAmt]]

010846.59 6 RVreplace end: [12312]

010846.59 6 [sayAmt] Say numbers: 12312 as Amount Cents

010846.59 6 fn PlaySoundStartNumbers annamt.txt, confirmamt.txt, 12312, Amount Cents

010846.59 6 twcal PlaySayNumber C:\Program Files\VoiceGuide\Scripts\Exalt Technical\annamt.txt, C:\Program Files\VoiceGuide\Scripts\Exalt Technical\confirmamt.txt, 12312, , 12

010846.59 6 PlaySoundStartNumbers ok

010846.60 6 tapie PlayEnd old line=6 0 247291

010854.28 6 dtmf 1 (49,2)

010854.28 6 LsSayNbrPlay 1

010854.28 6 PlaySoundStop ok

010854.29 6 [retrysetCC] Evaluate [0]

010854.32 6 .Eval(0)

010854.32 6 Eval Expr result:[0] stored in $RV[retrycount]

010854.32 6 path {0} not found

010854.33 6 [GetCC] Number Input

010854.33 6 tts generate start[Please enter your 16 digit card number. ]

010854.49 6 tts generate end

Share this post


Link to post

The "Say Numbers" module is not designed to use TTS - after all it will say the numbers by concatenating sound files from VG's \system\voice\ directory - so having TTS before and after the number would sound odd. If you need to use TTS to speak the number just specify everything including the number to be spoken using TTS (in a Play module)...

 

Please read this thread:

http://voiceguide.com/forums/index.php?showtopic=634

 

That thread has info on how to use TTS context tags to speak numbers, eg:

<p>Your request was for <say-as type="number">1</say-as> room on <say-as type="date:mdy">10/19/2002</say-as>, costing less than <say-as type="currency">$80</say-as>.</p>

links to more info on TTS context tags can also be found in that thread.

Share this post


Link to post

I'm using the AT&T TTS engine, and when I put the following in the 'Play Sound File' module:

 

Your transaction reference number is: <Say-as type="Number:decimal">$RV[ReceiptNum]</Say-as>. To repeat this information press 1, to return to the main menu press 2, or press 9 to hang up.

 

I have the TTS saying everything including the tags. The original tags you gave me did not work either. The RV variable is correctly resolved though.

 

This info is entered in the box for the TTS info.

 

Am I doing something wrong?

Share this post


Link to post

There was some discussion on XML Tags which can be used in TTS (and on documents which specify the various XML Tags) in the thread mentioned in previous post (http://voiceguide.com/forums/index.php?showtopic=634).

 

You should also refer to the AT&T Natural Voices TTS documentation to see what TTS tags are supported by that engine.

 

I'd try using:

 

<p>Your transaction reference number is: <Say-as type="Number:decimal">$RV[ReceiptNum]</Say-as>. To repeat this information press 1, to return to the main menu press 2, or press 9 to hang up.</p>

or

<p>Your transaction reference number is: <SPELL>$RV[ReceiptNum]</SPELL>. To repeat this information press 1, to return to the main menu press 2, or press 9 to hang up.</p>

or

Your transaction reference number is: <SPELL>$RV[ReceiptNum]</SPELL>. To repeat this information press 1, to return to the main menu press 2, or press 9 to hang up.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×