Spanish Prompts
Posted: Thu Sep 13, 2012 2:15 pm
We are working on a VXML file that will handle callers that speak spanish. We do not have a problem creating the wav/mp3 files for most prompts, but we are returning the call time to the users. Using a PHP function, we are able to get the time but it is read in English.
Can you suggest the prefered way to resolve this issue? Here is our php script (all wording will be switched out for mp3 files, except the time):
Thanks for you help.
Can you suggest the prefered way to resolve this issue? Here is our php script (all wording will be switched out for mp3 files, except the time):
Code: Select all
<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
$PTime = $_GET['PTime'];
?>
<vxml version="2.0">
<form>
<block>
<if cond="'<?php echo($PTime)?>'=='Error'">
<prompt>
Error Found. Please try again. Good Bye!
</prompt>
<else/>
<prompt>
Thank you! Call placed at: <?php echo($PTime)?>. Good Bye!
</prompt>
</if>
</block>
</form>
</vxml>