We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

say-as time in french

Questions and answers about Plum iOn systems

Moderators: admin, support

Post Reply
jcooper
Posts: 45
Joined: Tue Jul 22, 2008 5:22 pm

say-as time in french

Post by jcooper »

Hi,
My French translator says that when the time 12:00pm is played back as midnight instead of noon.
I've tried to confirm this myself but I can't understand French sadly.

Code: Select all

	<form id="confirm_time_fr">
		<property name="inputmodes" value="dtmf"/>
		<property name="termchar" value="#"/>
		<property name="timeout" value="3s"/>
		<property name="interdigittimeout" value="10ms"/>
		<property name="scriptmaxage" value="0s"/>
		<property name="documentmaxage" value="0s"/>

		<var name="user_input"/>
		<field name="yn" modal="true">
			<grammar type="application/x-jsgf" mode="dtmf">
				1 | 2
			</grammar>
			<prompt bargein="true" timeout="2s">
				<speak xml:lang="fr-CA">
					<voice name="Julie" gender="female">
						Vous avez entré:
						<prosody volume="200.0">
							<say-as interpret-as="time" format="hm">
								<value expr="user_input"/>
							</say-as>
						</prosody>.
						Appuyez sur 1 pour confirmer.
						Appuyer sur 2 pour entrer de nouveau.
					</voice>
				</speak>
			</prompt>
			<filled>
				<var name="result" expr="true"/>
				<if cond="yn==2">
					<assign name="result" expr="false"/>
				</if>
				<return namelist="result"/>
			</filled>
		</field>

		<catch event="connection.disconnect">
			<log label="Debug">Disconnecting from MainMenu.xml#confirm_time_fr catch:<value expr="_event"/></log>
			<submit next="Process.aspx?p=Disconnect"
					namelist="session.id"
					method="post"
					/>
		</catch>
	</form>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

more info about "user_input" needed for IVR issue

Post by support »

Hi,

Could you provide us with more information as to how "user_input" is being passed? This would give us a better idea in helping you with this IVR issue.

Regards,
Plum Support
Last edited by support on Wed Jan 06, 2010 5:37 pm, edited 1 time in total.

jcooper
Posts: 45
Joined: Tue Jul 22, 2008 5:22 pm

Post by jcooper »

I'm sending "12:00pm" as data.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

limitations with IVR Realspeak's TTS engine

Post by support »

Hi,

Due to limitations with the IVR Realspeak's TTS engine, "12:00am" is incorrectly translated as "midi" (noon) and "12:00pm" is incorrectly translated as "minuit" (midnight).

To work around this, you should set "user_input" to "midi" if it is "12:00pm" or to "minuit" if it is "12:00am". Or, alternatively, you could set "user_input" to "0:00" (which WILL get translated correctly to minuit(midnight)) if it is "12:00am" or to "12:00" (which WILL get translated correctly to midi(noon)) if it is "12:00pm".

Generally, TTS engines are not very good with translation, so you would want to spell out as much as possible before having it translated to a foreign language.

Regards,
Plum Support
Last edited by support on Mon Jan 18, 2010 12:21 pm, edited 1 time in total.

jcooper
Posts: 45
Joined: Tue Jul 22, 2008 5:22 pm

Post by jcooper »

Thank you, that appears to be working.

Post Reply