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

Am I limited to

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
jjohnson
Posts: 4
Joined: Thu Nov 05, 2015 5:03 pm

Am I limited to

Post by jjohnson »

I am trying to build a demo for my superiors to listen to a selected number of voices in different languages. But it seems I can only get AT&T Natural Voices to work.

How to I get the non-AT&T Natural Voices to work?

code example below:

Code: Select all


<?xml version="1.0"?>
<vxml version="2.1" >

<property name="inputmodes" value="dtmf"/>
  <form id='choices'>
	<field name='option' type="digits?minlength=1;maxlength=1">
		<prompt>
			For English with Mike, press 1; For English with Samantha, press 2; For English with Diane, press 3; 
			For Spanish with Rosa, press 4, For French with Virginie, Press 5. For French with Jean-Pierre, Press 6.
			For French with Juliette, press 7.
		</prompt>
		<filled>
			<if cond="option=='1'">
				<goto nextitem='english_mike'/>
			<elseif cond="option=='2'"/>
				<goto nextitem='english_samantha'/>
			<elseif cond="option=='3'"/>
				<goto nextitem='english_diane'/>
			<elseif cond="option=='4'"/>
				<goto nextitem='spanish'/>
			<elseif cond="option=='5'"/>
				<goto nextitem='french_virginie'/>
			<elseif cond="option=='6'"/>
				<goto nextitem='french_jean_pierre'/>
			<elseif cond="option=='7'"/>
				<goto nextitem='french_juliette'/>
			<else/>
			</if>
		</filled>
	</field>
	<field name='english_samantha' type="digits?minlength=1;maxlength=1">
			
		<prompt><speak xml:lang="en-US">	
			<voice name="Samantha">
			Text to be read here
			</voice></speak>

		</prompt>
		
		<filled>
			<if cond="english_samantha!=''">
				<goto next='#choices'/>
			</if>
		</filled>
	</field>
	<field name='english_mike' type="digits?minlength=1;maxlength=1">
		<prompt>
			<voice name="mike">
			Text to be read here
			</voice>
		</prompt>
		<filled>
			<if cond="english_mike!=''">
				<goto next='#choices'/>
			</if>
		</filled>
	</field>
	<field name='english_diane' type="digits?minlength=1;maxlength=1">
		<prompt>
			<voice name="diane">
			Text to be read here
			</voice>
		</prompt>
		<filled>
			<if cond="english_diane!=''">
				<goto next='#choices'/>
			</if>
		</filled>
	</field>

	<field name='spanish' type="digits?minlength=1;maxlength=1">
		<prompt>
			<voice name="rosa">
			
			</voice>
		</prompt>
		<filled>
			<if cond="spanish!=''">
				<goto next='#choices'/>
			</if>
		</filled>
	</field>
	<field name='french_virginie' type="digits?minlength=1;maxlength=1">
		<prompt>
			<voice name='virginie'>
			
			</voice>
		</prompt>
		<filled>
			<if cond="english!=''">
				<goto next='#choices'/>
			</if>
		</filled>
	</field>
	<field name='french_jean_pierre' type="digits?minlength=1;maxlength=1">
		<prompt>
			<voice name='jean-pierre'>
			
			</voice>
		</prompt>
		<filled>
			<if cond="french_jean_pierre!=''">
				<goto next='#choices'/>
			</if>
		</filled>
	</field>
	<field name='french_juliette' type="digits?minlength=1;maxlength=1">
		<prompt>
			<voice name='juliette'>
			
			</voice>
		</prompt>
		<filled>
			<if cond="french_juliette!=''">
				<goto next='#choices'/>
			</if>
		</filled>
	</field>
  </form>
</vxml>

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

Re: Am I limited to

Post by support »

Hi,

The TTS engine is set on a per phone number basis, so you will only be able to use the TTS voices for a single engine in your script assigned to a phone number at a given time (all AT&T, RealSpeak, or Cepstral, no mixing and matching). With that being said, you should have access to all of these TTS engines in any of your non-demo numbers in your hosting account (demo accounts only get AT&T out of the box).

To utilize the various voices, you would just use a combination of the <prompt><voice name="desired_voice"> tags, as it looks like you're already doing. You would also include the <speak> tag with the language if you're looking to do change the language of your voices.

To change the TTS engine for a phone number, in your hosting account you would navigate to:
Application -> Application Configuration -> click the "edit" link for the desired number.
On this "Application Configuration" page, select the desired TTS Engine from the drop down and then click "Save."

Here's a list of the TTS voices for each engine for your reference:
http://www.plumvoice.com/docs/dev/devel ... erence:tts
You can also listen to a sample of each voice on this page, which might be sufficient for what you're looking to do as well.

Please let us know if you have any additional questions.

Regards,
Plum Support

Post Reply