Discussion:
[vtp-dev] How to change Default Language in Callflow
ECKHART Wolfgang
2012-05-08 11:50:37 UTC
Permalink
Hello VTP-Developer Team!

i have a Question related to the Language that well be used at VoiceBlocks,
e.g. at the PlayPrompt-Block.
At the BeginBlock of an Application, it's possible to select the Default
Language - that's O.K..

1.) How can i change the DefaultLanguage during Application Execution?
Do i have to change a Variable?

2.) Independent of Default Language, the DefaultLanguage of Tomcat (in my
case "de-AT") will always be sent in vxml-Code
e.g.:
<block name="OutputMessageBlock">
<prompt bargein="true" xml:lang="de-AT">Hello in
English 2 </prompt>
<goto
next="/tl1/-/next?236845d436c14222b38cac19da00405c=success.filled" />
</block>


Thanks in advance for any comments,
Wolfgang


Wolfgang Eckhart
Sonorys Technology GmbH
Brünner Straße 85
Eingang: Lundenburgergasse 6
1210 Wien

tel: + 43 1 294 00 94 - 290
email: ***@sonorys.at
Randy Childers
2012-05-08 15:13:19 UTC
Permalink
Hi Wolfgang--

Setting the language at runtime is pretty simple. You'll need a script block for this:

SelectedLanguage.value = Languages.getLanguage("English");


The language specified in the call to getLanguage should be the name used in that project's configuration (i.e., this is the name of the language in the project, not the name of the Voice project associated with that language).

Regarding #2, I'm not quite sure what you're asking — can you clarify?


Randy


From: ECKHART Wolfgang <***@sonorys.at<mailto:***@sonorys.at>>
Reply-To: Voice Tools general developers <vtp-***@eclipse.org<mailto:vtp-***@eclipse.org>>
To: "'vtp-***@eclipse.org<mailto:'vtp-***@eclipse.org>'" <vtp-***@eclipse.org<mailto:vtp-***@eclipse.org>>
Subject: [vtp-dev] How to change Default Language in Callflow


Hello VTP-Developer Team!

i have a Question related to the Language that well be used at VoiceBlocks, e.g. at the PlayPrompt-Block.
At the BeginBlock of an Application, it's possible to select the Default Language - that's O.K..

1.) How can i change the DefaultLanguage during Application Execution?
Do i have to change a Variable?

2.) Independent of Default Language, the DefaultLanguage of Tomcat (in my case "de-AT") will always be sent in vxml-Code

e.g.:
<block name="OutputMessageBlock">
<prompt bargein="true" xml:lang="de-AT">Hello in English 2 </prompt>
<goto next="/tl1/-/next?236845d436c14222b38cac19da00405c=success.filled" />
</block>


Thanks in advance for any comments,
Wolfgang


Wolfgang Eckhart
Sonorys Technology GmbH
Brünner Straße 85
Eingang: Lundenburgergasse 6
1210 Wien

tel: + 43 1 294 00 94 - 290
email: ***@sonorys.at
ECKHART Wolfgang
2012-05-10 08:46:37 UTC
Permalink
Hi Randy,

Thanks for the Info!

#1 works now!

Regarding to #2: I have changed the language to "English" in Script Block -
O.K.

The selected Prompt is the English Prompt, but the Language in the produced
vxml-Code isn't set to English:
<block name="OutputMessageBlock">
<prompt bargein="true" xml:lang="de-AT">Hello in
English 2 </prompt>
<goto
next="/tl2/-/next?236845d436c14222b38cac19da00405c=success.filled" />
</block>

The TTS-engine uses xml:lang="de-AT" in this example to produce the English
Prompt..., that means the German TTS-engine is started.
Isn't it possible to set this lang-Code to "en-US"?

Regards,
Wolfgang

_____

From: vtp-dev-***@eclipse.org [mailto:vtp-dev-***@eclipse.org] On
Behalf Of Randy Childers
Sent: Dienstag, 08. Mai 2012 17:13
To: Voice Tools general developers
Subject: Re: [vtp-dev] How to change Default Language in Callflow


Hi Wolfgang--

Setting the language at runtime is pretty simple. You'll need a script
block for this:
SelectedLanguage.value = Languages.getLanguage("English");



The language specified in the call to getLanguage should be the name used in
that project's configuration (i.e., this is the name of the language in the
project, not the name of the Voice project associated with that language).

Regarding #2, I'm not quite sure what you're asking - can you clarify?




Randy





From: ECKHART Wolfgang <***@sonorys.at
<mailto:***@sonorys.at> >
Reply-To: Voice Tools general developers <vtp-***@eclipse.org
<mailto:vtp-***@eclipse.org> >
To: "'vtp-***@eclipse.org <mailto:'vtp-***@eclipse.org> '"
<vtp-***@eclipse.org <mailto:vtp-***@eclipse.org> >
Subject: [vtp-dev] How to change Default Language in Callflow



Hello VTP-Developer Team!

i have a Question related to the Language that well be used at VoiceBlocks,
e.g. at the PlayPrompt-Block.
At the BeginBlock of an Application, it's possible to select the Default
Language - that's O.K..

1.) How can i change the DefaultLanguage during Application Execution?
Do i have to change a Variable?

2.) Independent of Default Language, the DefaultLanguage of Tomcat (in my
case "de-AT") will always be sent in vxml-Code

e.g.:
<block name="OutputMessageBlock">
<prompt bargein="true" xml:lang="de-AT">Hello in
English 2 </prompt>
<goto
next="/tl1/-/next?236845d436c14222b38cac19da00405c=success.filled" />
</block>


Thanks in advance for any comments,
Wolfgang


Wolfgang Eckhart
Sonorys Technology GmbH
Brünner Straße 85
Eingang: Lundenburgergasse 6
1210 Wien

tel: + 43 1 294 00 94 - 290
email: ***@sonorys.at

Loading...