VoiceXML Forum Community Message Board


Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» VoiceXML Forum Community Message Board   » W3C VoiceXML Related Specifications   » ssml speak-as

 - UBBFriend: Email this page to someone!    
Author Topic: ssml speak-as
mtravena
Junior Member
Member # 3790

Rate Member
Icon 1 posted September 09, 2006 12:39 PM      Profile for mtravena   Email mtravena   Send New Private Message       Edit/Delete Post   Reply With Quote 
I was wondering how anyone has implemented applications handling different languages. I would not want to have different pages for different languages and would like to have the wav files in diff URI's and then any speak-as elements that speak dynamic data specify the language but I cannot get it to work. How is anyone else handling multiple language applications?
Posts: 3 | From: Seattle | Registered: Sep 2006  |  IP: Logged
DrBoB
Junior Member
Member # 3775

Rate Member
Icon 1 posted September 11, 2006 09:17 AM      Profile for DrBoB   Author's Homepage   Email DrBoB   Send New Private Message       Edit/Delete Post   Reply With Quote 
Which bit isn't working? The prompts or the TTS?

You can set the prompt directory using a variable in the root document:

var promptDir = 'prompts/en'

then using

<audio expr="promptDir + abc.wav">

you can use different directories for different languages, while keeping the prompt names the same.

The TTS probably needs to be set in the page itself every time -

<vxml xmlns="http://www.w3.org/2001/vxml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/vxml
http://www.w3.org/TR/voicexml20/vxml.xsd"
version="2.0"
xml:lang="en-US">

This propery is inherited by all grammars and prompts unless otherwise configured.

--------------------
Pusing VoiceXML to the masses - www.voice-push.com

Posts: 6 | Registered: Sep 2006  |  IP: Logged
mtravena
Junior Member
Member # 3790

Rate Member
Icon 1 posted September 11, 2006 10:14 AM      Profile for mtravena   Email mtravena   Send New Private Message       Edit/Delete Post   Reply With Quote 
quote:
Originally posted by mtravena:
I was wondering how anyone has implemented applications handling different languages. I would not want to have different pages for different languages and would like to have the wav files in diff URI's and then any speak-as elements that speak dynamic data specify the language but I cannot get it to work. How is anyone else handling multiple language applications?


Posts: 3 | From: Seattle | Registered: Sep 2006  |  IP: Logged
mtravena
Junior Member
Member # 3790

Rate Member
Icon 1 posted September 11, 2006 10:16 AM      Profile for mtravena   Email mtravena   Send New Private Message       Edit/Delete Post   Reply With Quote 
quote:
Originally posted by mtravena:
I was wondering how anyone has implemented applications handling different languages. I would not want to have different pages for different languages and would like to have the wav files in diff URI's and then any speak-as elements that speak dynamic data specify the language but I cannot get it to work. How is anyone else handling multiple language applications?

DrBoB, your reply was what I was planning to do. But for speaking dates etc. I would like to have the same be able to speak the date in diff xml:lang. So far have not been able to get it to work unless I set it at the document level.
Posts: 3 | From: Seattle | Registered: Sep 2006  |  IP: Logged
DrBoB
Junior Member
Member # 3775

Rate Member
Icon 1 posted September 12, 2006 09:46 AM      Profile for DrBoB   Author's Homepage   Email DrBoB   Send New Private Message       Edit/Delete Post   Reply With Quote 
Can you post the code that you use when you use speak-as? I seem to remember having problems getting the TTS engine to use different languages in one page. And I think we had to use the prompt tag, rather than SSML to get it working:

<prompt xml:lang="de-DE">
Dieser Prompt sollte auf Deutsch sein.
</prompt>
<prompt xml:lang="en-US">
And this one should be in English.
</prompt>

--------------------
Pusing VoiceXML to the masses - www.voice-push.com

Posts: 6 | Registered: Sep 2006  |  IP: Logged


All times are Eastern  
Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:

Contact Us | VoiceXML Forum



Powered by Infopop Corporation
UBB.classicTM 6.3.1.2