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

Issue with TTS playout

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
vikas
Posts: 53
Joined: Wed May 13, 2015 7:46 pm

Issue with TTS playout

Post 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>

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

Re: Issue with TTS playout

Post 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

Post Reply