TTS Issue

Status
Not open for further replies.

mv.ape

Joined
Feb 16, 2015
Messages
24
Reaction score
3
Hello,

I make a VAD that will check a credit in a database and then tell to customer using text to speech.

I use a QueryResult and get the right value from database.

In the text to speech I don't know why a the end it say "undefined": "Your credit is 5"... undefined.

In debug mode I've check the value is good.
TTS concatenate: 'Your credit' + $callflow.Credit

Even if i try to replace $callflow.Credit by a fixed number
 
The problem is that $callflow.Credit is not a valid javascript expression. You need to use the CONCATENATE function instead. Please try with the following expression:
CONCATENATE('Your credit', callflow$.Credit)

Kind regards.
 
I already use CONCATENATE function.
 
Can you show exactly the expression used in your TTS prompt?

You mentioned:
'Your credit' + $callflow.Credit

which is not valid.

You should use:
CONCATENATE('Your credit is ', callflow$.Credit)

and it should work as long as callflow$.Credit has the right value.

How are you setting callflow$.Credit?
 
TTS Exp:
CONCATENATE('Vous disposez de ticket de support, votre solde de ticket est de',callflow$.CreditTicket)

In my test call:
VARIABLE_CHANGED: AccueilSTechique_CreditTicket=5

AccueilSTechique is the name of the callflow
CreditTicket is declared in the callflow (R/W) with an initail value of 0.

All work except the word "undefined" in the speech at the end
 
Thanks for sending the detailed explanation.

I think that the problem might be the comma in the middle of your text. Can you please try with the following expression?
CONCATENATE('Vous disposez de ticket de support votre solde de ticket est de',callflow$.CreditTicket)

(removed the comma between "support" and "votre").

Just to see if this makes any change.

Thanks.
 
Hello,

Many thanks that work when delete coma in TTS.
So one question how to make "pause" instead of a comma?
 
That is a bug and needs to be fixed, but for now you need to use a different way.

Have you tried with a period?
CONCATENATE('Vous disposez de ticket de support. Votre solde de ticket est de',callflow$.CreditTicket)
 
Status
Not open for further replies.

Forum statistics

Threads
112,322
Messages
591,887
Members
165,470
Latest member
Robert Lee