public class SpeechConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AUDIO_CHANNELS
Audio channels.
|
static java.lang.String |
AUDIO_FORMAT_DEFAULT
PCM format.
|
static java.lang.String |
AUDIO_FORMAT_OGGOPUS
OggOpus format.
|
java.lang.String |
audioFormat
The audio format.
|
int |
connectionTimeout
Default timeout duration for a connection.
|
boolean |
continuous
Indicates whether multiple final results that represent consecutive phrases separated by long pauses are returned.
|
static int |
FRAME_SIZE
Frame size.
|
int |
inactivityTimeout
The inactivity timeout.
|
boolean |
isAuthNeeded
Authentication flag.
|
boolean |
isSSL
SSL flag, this would be detected automatically.
|
boolean |
learningOptOut
Indicates whether to opt out of data collection for requests sent over the connection.
|
int |
maxAlternatives
An integer value that tells the service to return the n-best alternative hypotheses.
|
boolean |
returnInterimResults
Interim results are intermediate hypotheses of a transcription that are likely to change before the service returns
the final result.
|
static int |
SAMPLE_RATE
Sample rate.
|
float |
wordAlternativesThreshold
Reports hypotheses for acoustically similar alternatives for words of the input audio.
|
Constructor and Description |
---|
SpeechConfiguration()
Instantiate default configuration.
|
SpeechConfiguration(java.lang.String audioFormat)
Constructing configuration by parameters.
|
SpeechConfiguration(java.lang.String audioFormat,
boolean isAuthNeeded)
Constructing configuration by parameters.
|
public static final java.lang.String AUDIO_FORMAT_DEFAULT
public static final java.lang.String AUDIO_FORMAT_OGGOPUS
public static final int AUDIO_CHANNELS
public static final int FRAME_SIZE
public static final int SAMPLE_RATE
public int inactivityTimeout
public java.lang.String audioFormat
public boolean isAuthNeeded
public boolean isSSL
public int connectionTimeout
public boolean returnInterimResults
public int maxAlternatives
public float wordAlternativesThreshold
public boolean continuous
public boolean learningOptOut
public SpeechConfiguration()
public SpeechConfiguration(java.lang.String audioFormat)
audioFormat
- the audio formatpublic SpeechConfiguration(java.lang.String audioFormat, boolean isAuthNeeded)
audioFormat
- the audio formatisAuthNeeded
- the is auth needed