public enum SpeechRecognitionMode extends java.lang.Enum<SpeechRecognitionMode>
In ShortPhrase mode, an utterance may only up to 14 sec long, as data is sent to the server, the client will receive multiple partial results and one final multiple n-best choice result.
In LongDictation mode, an utterance may be only up to 2 minutes long, as data is sent to the server, the client will receive multiple partial results and multiple final results, based on where the server thinks sentence pauses are.
Enum Constant and Description |
---|
LongDictation
In LongDictation mode, an utterance may be only up to 2 minutes long, as data is
sent to the server, the client will receive multiple partial results and multiple
final results, based on where the server thinks sentence pauses are.
|
ShortPhrase
In ShortPhrase mode, an utterance may only up to 14 sec long, as data is
sent to the server, the client will receive multiple partial results and one
final multiple n-best choice result.
|
Modifier and Type | Method and Description |
---|---|
static SpeechRecognitionMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpeechRecognitionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpeechRecognitionMode ShortPhrase
public static final SpeechRecognitionMode LongDictation
public static SpeechRecognitionMode[] values()
for (SpeechRecognitionMode c : SpeechRecognitionMode.values()) System.out.println(c);
public static SpeechRecognitionMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null