Page 1 of 1

English to French conversion

Posted: Thu Sep 05, 2013 7:07 am
by vishaltalentbeat
Hi
I am trying to pronounce the digit in French, for example digit "24" should be pronounce as "vingt-quatre" in French. Tried several ways but could not able to found exact solution for this. Below is the sample code which i tried.

<prompt>
<speak xml:lang="fr-fr"><voice name="Juliette" gender="female">
24
</voice></speak>
</prompt>

This gives output as "twenty four" not "vingt-quatre".

Could you please help me to overcome this problem.

Re: English to French conversion

Posted: Thu Sep 05, 2013 9:23 am
by support
Hi Vishal,

Please make sure that the phone number you are using has been configured to use "AT&T Natural Voices 1.4" as the TTS Engine. To check this, you would log into your hosting account and go to Applications -> Application Configuration -> Edit for one of your phone numbers.

Also, within your code, instead of "fr-fr", you would want to use "fr_fr", as shown in the following example:

frenchexample.php:

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
?>
<vxml version="2.0">
<form>
<block>
<prompt>
<speak xml:lang="fr_fr"><voice name="Juliette" gender="female">
24
</voice></speak>
</prompt>
</block>
</form>
</vxml>
Hope this helps.

Regards,
Plum Support

Re: English to French conversion

Posted: Thu Sep 05, 2013 10:53 am
by vishaltalentbeat
Thanks a lot , this works as expected.