Enum SpeechSynthesisRequest.SpeechSynthesisRequestInputType
- java.lang.Object
-
- java.lang.Enum<SpeechSynthesisRequest.SpeechSynthesisRequestInputType>
-
- com.microsoft.cognitiveservices.speech.SpeechSynthesisRequest.SpeechSynthesisRequestInputType
-
- All Implemented Interfaces:
Serializable,Comparable<SpeechSynthesisRequest.SpeechSynthesisRequestInputType>
- Enclosing class:
- SpeechSynthesisRequest
public static enum SpeechSynthesisRequest.SpeechSynthesisRequestInputType extends Enum<SpeechSynthesisRequest.SpeechSynthesisRequestInputType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NoneSSMLThe input is SSML (Speech Synthesis Markup Language).TextThe input is plain text.TextStreamThe input is a text stream.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpeechSynthesisRequest.SpeechSynthesisRequestInputTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SpeechSynthesisRequest.SpeechSynthesisRequestInputType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final SpeechSynthesisRequest.SpeechSynthesisRequestInputType None
-
Text
public static final SpeechSynthesisRequest.SpeechSynthesisRequestInputType Text
The input is plain text.
-
SSML
public static final SpeechSynthesisRequest.SpeechSynthesisRequestInputType SSML
The input is SSML (Speech Synthesis Markup Language).
-
TextStream
public static final SpeechSynthesisRequest.SpeechSynthesisRequestInputType TextStream
The input is a text stream.
-
-
Method Detail
-
values
public static SpeechSynthesisRequest.SpeechSynthesisRequestInputType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpeechSynthesisRequest.SpeechSynthesisRequestInputType c : SpeechSynthesisRequest.SpeechSynthesisRequestInputType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpeechSynthesisRequest.SpeechSynthesisRequestInputType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-