public class RecognizeOptions extends GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
RecognizeOptions.Builder
Builder.
|
static interface |
RecognizeOptions.ContentType
The type of the input: audio/basic, audio/flac, audio/l16, audio/mp3, audio/mpeg, audio/mulaw, audio/ogg,
audio/ogg;codecs=opus, audio/ogg;codecs=vorbis, audio/wav, audio/webm, audio/webm;codecs=opus,
audio/webm;codecs=vorbis, or multipart/form-data.
|
static interface |
RecognizeOptions.Model
The identifier of the model to be used for the recognition request.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
acousticCustomizationId()
Gets the acousticCustomizationId.
|
java.io.InputStream |
audio()
Gets the audio.
|
java.lang.String |
baseModelVersion()
Gets the baseModelVersion.
|
java.lang.String |
contentType()
Gets the contentType.
|
java.lang.String |
customizationId()
Gets the customizationId.
|
java.lang.Double |
customizationWeight()
Gets the customizationWeight.
|
java.lang.Long |
inactivityTimeout()
Gets the inactivityTimeout.
|
java.lang.Boolean |
interimResults()
Gets the interimResults.
|
java.util.List<java.lang.String> |
keywords()
Gets the keywords.
|
java.lang.Float |
keywordsThreshold()
Gets the keywordsThreshold.
|
java.lang.Long |
maxAlternatives()
Gets the maxAlternatives.
|
java.lang.String |
model()
Gets the model.
|
RecognizeOptions.Builder |
newBuilder()
New builder.
|
java.lang.Boolean |
profanityFilter()
Gets the profanityFilter.
|
java.lang.Boolean |
smartFormatting()
Gets the smartFormatting.
|
java.lang.Boolean |
speakerLabels()
Gets the speakerLabels.
|
java.lang.Boolean |
timestamps()
Gets the timestamps.
|
java.lang.Float |
wordAlternativesThreshold()
Gets the wordAlternativesThreshold.
|
java.lang.Boolean |
wordConfidence()
Gets the wordConfidence.
|
equals, hashCode, toString
public RecognizeOptions.Builder newBuilder()
public java.lang.String model()
public java.lang.String customizationId()
public java.lang.String acousticCustomizationId()
public java.lang.Double customizationWeight()
public java.lang.String baseModelVersion()
public java.io.InputStream audio()
public java.lang.String contentType()
public java.lang.Long inactivityTimeout()
public java.util.List<java.lang.String> keywords()
public java.lang.Float keywordsThreshold()
public java.lang.Long maxAlternatives()
public java.lang.Float wordAlternativesThreshold()
public java.lang.Boolean wordConfidence()
public java.lang.Boolean timestamps()
public java.lang.Boolean profanityFilter()
public java.lang.Boolean smartFormatting()
public java.lang.Boolean speakerLabels()
public java.lang.Boolean interimResults()
SpeechRecognitionResults
objects. If false (the default), the response is a single
SpeechRecognitionResults
object with final results only.