Page 1 of 1

Issue with TTS playout

Posted: Thu Nov 19, 2015 12:47 pm
by vikas
We are facing an issue with TTS playout where Tag names are getting played instead of the string within <value>.
Is it because we have multiple <audio> tag within Prompt tag? What is the issue here?

Kindly let us know. Thanks.

Error in log:
Audio segment added to prompt queue from TTS text/plain;charset=wchar_t for:
---------
<speak xml:lang="fr-CA"><voice name="Julie"><speak> Pour continuer, s&apos;il vous plait, veuillez choisir parmi les options suivantes qui vous seront proposees dans ce message. </speak></voice></speak>

Sample code:
<prompt cond="isCultureEnUk(language, locale)">
<audio expr="Prompt16A"> <speak xml:lang="en-GB"> <voice name="Emily"> <value expr="Verbiage16A"/> </voice> </speak> </audio>
<audio expr="Prompt16B"> <speak xml:lang="en-GB"> <voice name="Emily"> <value expr="Verbiage16B"/> </voice> </speak> </audio>
<audio expr="Prompt16C"> <speak xml:lang="en-GB"> <voice name="Emily"> <value expr="Verbiage16C"/> </voice> </speak> </audio>
<audio expr="Prompt16D"> <speak xml:lang="en-GB"> <voice name="Emily"> <value expr="Verbiage16D"/> </voice> </speak> </audio>
<audio expr="Prompt16E"> <speak xml:lang="en-GB"> <voice name="Emily"> <value expr="Verbiage16E"/> </voice> </speak> </audio>
</prompt>

Re: Issue with TTS playout

Posted: Fri Nov 20, 2015 9:47 am
by support
Hi,

This is a slight nuance specific to the RealSpeak TTS engine. When using RealSpeak, it's best to use a <prompt> tag for each nested <audio> tag.

This formation will read back the tags when the audio files aren't found:

Code: Select all

<prompt>
  <audio src="some_file.wav"><speak xml:lang="en-GB"><voice name="Emily"> Some text. </voice></speak></audio>
  <audio src="some_file.wav"><speak xml:lang="en-GB"><voice name="Emily"> Some text. </voice></speak></audio>
</prompt>
Where as this should not read back the tags when the audio files aren't found:

Code: Select all

<prompt>
  <audio src="some_file.wav"><speak xml:lang="en-GB"><voice name="Emily"> Some text. </voice></speak></audio>
</prompt>
<prompt>
  <audio src="some_file.wav"><speak xml:lang="en-GB"><voice name="Emily"> Some text. </voice></speak></audio>
</prompt>
Hopefully that help, please let us know if you have any further questions.

Regards,
Plum Support