public final class SpeechUtility
extends java.lang.Object
Class containing speech-related utility methods.
References to CSS2 are to the Cascading Style Sheet standard, version 2.0, found at:
http://www.w3.org/TR/REC-CSS2/
References to XSL-FO refer to the eXtensible Stylesheet Language Formatting Objects standard, version 1.0, found at:
http://www.w3.org/TR/2001/REC-xsl-20011015/
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
EMPTY_STRING_ARRAY
An array of Strings with zero elements, useful especially as a return
value.
|
static java.lang.String |
INPUT_INVALID
String value for invalid input.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
cssVoiceFamily(java.lang.CharSequence input)
Converts a CSS2-style String input for voice-family into a value expected
by
SpeechServer.selectVoiceCss(String[]) . |
static java.lang.String[] |
foVoiceFamily(java.lang.String input)
Same as
cssVoiceFamily(CharSequence) , except input is an
XSL-FO-style String. |
public static final java.lang.String INPUT_INVALID
public static final java.lang.String[] EMPTY_STRING_ARRAY
public static java.lang.String[] cssVoiceFamily(java.lang.CharSequence input)
SpeechServer.selectVoiceCss(String[])
.input
- The CSS2-style voice-family String to be converted.
This is a comma-delimited String containing one or more potential
voice-family items to be selected. Consult the CSS2 standard for
details.SpeechServer.selectVoiceCss(String[])
public static java.lang.String[] foVoiceFamily(java.lang.String input)
cssVoiceFamily(CharSequence)
, except input is an
XSL-FO-style String.input
- The XSL-FO voice-family String to be converted.
This is a comma-delimited String containing one or more potential
voice-family items to be selected. Consult the XSL-FO standard for
details.cssVoiceFamily(CharSequence)
This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.