|
Author
|
Topic: ssml speak-as
|
mtravena
Junior Member
Member # 3790
Rate Member
|
posted September 09, 2006 12:39 PM
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
|
posted September 11, 2006 09:17 AM
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
|
posted September 11, 2006 10:14 AM
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
|
posted September 11, 2006 10:16 AM
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
|
posted September 12, 2006 09:46 AM
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
|
|