TTS Prompt Literals
The TTS prompt literal is always of type Prompt.
TTSPrompt:
TTSPromptDeclarator [ComplexLiteralInputChars]
TTSPromptDeclarator [Expression]
TTSPromptDeclarator [Expression , Expression]
TTSPromptDeclarator:
any case of TTS
TTS prompt literals are used to represent a prompt that is generated from textual content using a TTS server. This type of prompt requires TTS to be licensed and installed for it to work properly at run time.
If the sequence of characters can be parsed as an Expression of type String, Document, java.net.URL, or java.io.File then the resulting prompt is a TTS prompt where the expression specifies the textual content to convert, a document containing the text to convert, a URL where to get the text to convert or a file containing the text to convert respectively.
When specified in this form, the system default TTS provider, configured through the Cisco Unified CCX Application Administration Web page, is selected as the provider to be contacted to perform the resolution. This form also assumes that the language of the text correspond to the current language of the context unless the prompt is further qualified using the @ operator:
-
If the sequence of characters can be parsed as two Expressions where the first one must have type String, Document, java.net.URL, or java.io.File and the second one must have type String, then the resulting TTS prompt corresponds to the content specified from the first expression as described above using the specified TTS provider if available. This form also assumes that the language of the text correspond to the current language of the context unless the prompt is further qualified using the @ operator.
-
If the sequence of characters cannot be parsed properly, as described above, then it is considered to be the textual content to be converted as a TTS prompt. When specified in this form, the system default TTS provider, configured through the Cisco Unified CCX Administration Web page, is selected as the provider to be contacted to perform the resolution. This form also assumes that the language of the text corresponds to the current language of the context unless the prompt is further qualified using the @ operator.
Example TTS Prompt Literals:
TTS[This is an example]
TTS[John Doe]
TTS["Some text to be rendered", "Nuance Vocalizer 3.0"]
TTS[URL["http://localhost/email.doc"]]
TTS[new java.io.File(u"C:\\help.ssml")]