Plum DEV Documentation
voicexml:tags:voice

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

voicexml:tags:voice [2014/06/02 10:27]
jennifer added meta description
voicexml:tags:voice [2019/09/17 12:29]
Line 1: Line 1:
-{{description>​‹voice› VoiceXML tag details, attributes and VXML code example | The voice tag will change the voice of the TTS text-to-speech engine speaker.}} 
-===== <​voice>​ ===== 
- 
- 
-The <​voice>​ tag allows the application to change the voice of the TTS speaker from the input text. 
-==== Attributes ==== 
- 
-| gender | The gender types can only be "​male",​ "​female",​ or "​neutral"​. | 
-| age | An integer value representing the age. | 
-| variant | This attribute is not supported. | 
-| name | Please see [[developer_reference:​tts|Section 4, TTS Engine Characteristics]] for information on what names are available. | 
-| xml:lang | Please see [[developer_reference:​tts|Section 4, TTS Engine Characteristics]] for information on what languages are available. | 
- 
-==== Notes ==== 
- 
- 
-Default values are dependent on the voice selected at TTS daemon startup time. For more information,​ see [[developer_reference:​tts|Section 4, TTS Engine Characteristics]]. NOTE: If using the <​voice>​ tag with the <​audio>​ tag, please keep in mind that the <​voice>​ tag will need to be embedded within the <​audio>​ tag for it to work properly. 
- 
-==== Example ==== 
- 
-<​code>​ 
-<?xml version="​1.0"​ encoding="​utf-8"?>​ 
-<vxml version="​2.0">​ 
-  <​form>​ 
-    <​block>​ 
-      <​prompt>​ 
-        <voice name="​crystal">​ 
-          Hi, I'm Crystal. 
-        </​voice>​ 
-        <voice name="​mike">​ 
-          Hi, I'm Mike. 
-        </​voice>​ 
-      </​prompt>​ 
-    </​block>​ 
-  </​form>​ 
-</​vxml>​ 
-</​code>​ 
- 
-The output of the above script would be: 
- 
-Computer: (in Crystal'​s voice) Hi, I'm Crystal. \\ 
-Computer: (in Mike's voice) Hi, I'm Mike. 
- 
- 
-==== Child Tags ==== 
- 
- 
-[[voicexml:​tags:​audio|<​audio>​]],​ [[voicexml:​tags:​break|<​break>​]],​ [[voicexml:​tags:​emphasis|<​emphasis>​]],​ [[voicexml:​tags:​enumerate|<​enumerate>​]],​ [[voicexml:​tags:​mark|<​mark>​]],​ [[voicexml:​tags:​p|<​p>​]],​ [[voicexml:​tags:​paragraph|<​paragraph>​]],​ [[voicexml:​tags:​phoneme|<​phoneme>​]],​ [[voicexml:​tags:​prosody|<​prosody>​]],​ [[voicexml:​tags:​s|<​s>​]],​ [[voicexml:​tags:​say-as|<​say-as>​]],​ [[voicexml:​tags:​sentence|<​sentence>​]],​ [[voicexml:​tags:​speak|<​speak>​]],​ [[voicexml:​tags:​sub|<​sub>​]],​ [[voicexml:​tags:​value|<​value>​]],​ [[voicexml:​tags:​voice|<​voice>​]] 
- 
- 
-==== Parent Tags ==== 
- 
- 
-[[voicexml:​tags:​audio|<​audio>​]],​ [[voicexml:​tags:​emphasis|<​emphasis>​]],​ [[voicexml:​tags:​enumerate|<​enumerate>​]],​ [[voicexml:​tags:​foreach|<​foreach>​]],​ [[voicexml:​tags:​p|<​p>​]],​ [[voicexml:​tags:​paragraph|<​paragraph>​]],​ [[voicexml:​tags:​prompt|<​prompt>​]],​ [[voicexml:​tags:​prosody|<​prosody>​]],​ [[voicexml:​tags:​s|<​s>​]],​ [[voicexml:​tags:​sentence|<​sentence>​]],​ [[voicexml:​tags:​speak|<​speak>​]],​ [[voicexml:​tags:​voice|<​voice>​]] 
-