SourceForge.net Logo
aXSL API 0.2

org.axsl.speech
Class SpeechUtility

java.lang.Object
  extended by org.axsl.speech.SpeechUtility

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/


Field Summary
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.
 
Method Summary
static java.lang.String[] cssVoiceFamily(java.lang.String 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(String), except input is an XSL-FO-style String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT_INVALID

public static final java.lang.String INPUT_INVALID
String value for invalid input.

See Also:
Constant Field Values

EMPTY_STRING_ARRAY

public static final java.lang.String[] EMPTY_STRING_ARRAY
An array of Strings with zero elements, useful especially as a return value.

Method Detail

cssVoiceFamily

public static java.lang.String[] cssVoiceFamily(java.lang.String input)
Converts a CSS2-style String input for voice-family into a value expected by SpeechServer.selectVoiceCss(String[]).

Parameters:
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.
Returns:
A String array with the parsed voice-family items in it. This method never returns "null", but may return an array with zero elements for invalid input.
See Also:
SpeechServer.selectVoiceCss(String[])

foVoiceFamily

public static java.lang.String[] foVoiceFamily(java.lang.String input)
Same as cssVoiceFamily(String), except input is an XSL-FO-style String.

Parameters:
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.
Returns:
A String array with the parsed voice-family items in it. This method never returns "null", but may return an array with zero elements for invalid input.
See Also:
cssVoiceFamily(String)

SourceForge.net Logo
aXSL API 0.2

This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.