public static class RecognizeSessionlessOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
RecognizeSessionlessOptions.Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
RecognizeSessionlessOptions.Builder |
acousticCustomizationId(java.lang.String acousticCustomizationId)
Set the acousticCustomizationId.
|
RecognizeSessionlessOptions.Builder |
addKeyword(java.lang.String keyword)
Adds an keyword to keywords.
|
RecognizeSessionlessOptions.Builder |
audio(java.io.File audio)
Set the audio.
|
RecognizeSessionlessOptions.Builder |
audio(java.io.InputStream audio)
Set the audio.
|
RecognizeSessionlessOptions.Builder |
baseModelVersion(java.lang.String baseModelVersion)
Set the baseModelVersion.
|
RecognizeSessionlessOptions |
build()
Builds a RecognizeSessionlessOptions.
|
RecognizeSessionlessOptions.Builder |
contentType(java.lang.String contentType)
Set the contentType.
|
RecognizeSessionlessOptions.Builder |
customizationId(java.lang.String customizationId)
Set the customizationId.
|
RecognizeSessionlessOptions.Builder |
customizationWeight(java.lang.Double customizationWeight)
Set the customizationWeight.
|
RecognizeSessionlessOptions.Builder |
inactivityTimeout(long inactivityTimeout)
Set the inactivityTimeout.
|
RecognizeSessionlessOptions.Builder |
keywords(java.util.List<java.lang.String> keywords)
Set the keywords.
|
RecognizeSessionlessOptions.Builder |
keywordsThreshold(java.lang.Float keywordsThreshold)
Set the keywordsThreshold.
|
RecognizeSessionlessOptions.Builder |
maxAlternatives(long maxAlternatives)
Set the maxAlternatives.
|
RecognizeSessionlessOptions.Builder |
model(java.lang.String model)
Set the model.
|
RecognizeSessionlessOptions.Builder |
profanityFilter(java.lang.Boolean profanityFilter)
Set the profanityFilter.
|
RecognizeSessionlessOptions.Builder |
smartFormatting(java.lang.Boolean smartFormatting)
Set the smartFormatting.
|
RecognizeSessionlessOptions.Builder |
speakerLabels(java.lang.Boolean speakerLabels)
Set the speakerLabels.
|
RecognizeSessionlessOptions.Builder |
timestamps(java.lang.Boolean timestamps)
Set the timestamps.
|
RecognizeSessionlessOptions.Builder |
wordAlternativesThreshold(java.lang.Float wordAlternativesThreshold)
Set the wordAlternativesThreshold.
|
RecognizeSessionlessOptions.Builder |
wordConfidence(java.lang.Boolean wordConfidence)
Set the wordConfidence.
|
public RecognizeSessionlessOptions.Builder()
public RecognizeSessionlessOptions build()
public RecognizeSessionlessOptions.Builder addKeyword(java.lang.String keyword)
keyword
- the new keywordpublic RecognizeSessionlessOptions.Builder audio(java.io.InputStream audio)
audio
- the audiopublic RecognizeSessionlessOptions.Builder contentType(java.lang.String contentType)
contentType
- the contentTypepublic RecognizeSessionlessOptions.Builder model(java.lang.String model)
model
- the modelpublic RecognizeSessionlessOptions.Builder customizationId(java.lang.String customizationId)
customizationId
- the customizationIdpublic RecognizeSessionlessOptions.Builder acousticCustomizationId(java.lang.String acousticCustomizationId)
acousticCustomizationId
- the acousticCustomizationIdpublic RecognizeSessionlessOptions.Builder baseModelVersion(java.lang.String baseModelVersion)
baseModelVersion
- the baseModelVersionpublic RecognizeSessionlessOptions.Builder customizationWeight(java.lang.Double customizationWeight)
customizationWeight
- the customizationWeightpublic RecognizeSessionlessOptions.Builder inactivityTimeout(long inactivityTimeout)
inactivityTimeout
- the inactivityTimeoutpublic RecognizeSessionlessOptions.Builder keywords(java.util.List<java.lang.String> keywords)
keywords
- the keywordspublic RecognizeSessionlessOptions.Builder keywordsThreshold(java.lang.Float keywordsThreshold)
keywordsThreshold
- the keywordsThresholdpublic RecognizeSessionlessOptions.Builder maxAlternatives(long maxAlternatives)
maxAlternatives
- the maxAlternativespublic RecognizeSessionlessOptions.Builder wordAlternativesThreshold(java.lang.Float wordAlternativesThreshold)
wordAlternativesThreshold
- the wordAlternativesThresholdpublic RecognizeSessionlessOptions.Builder wordConfidence(java.lang.Boolean wordConfidence)
wordConfidence
- the wordConfidencepublic RecognizeSessionlessOptions.Builder timestamps(java.lang.Boolean timestamps)
timestamps
- the timestampspublic RecognizeSessionlessOptions.Builder profanityFilter(java.lang.Boolean profanityFilter)
profanityFilter
- the profanityFilterpublic RecognizeSessionlessOptions.Builder smartFormatting(java.lang.Boolean smartFormatting)
smartFormatting
- the smartFormattingpublic RecognizeSessionlessOptions.Builder speakerLabels(java.lang.Boolean speakerLabels)
speakerLabels
- the speakerLabelspublic RecognizeSessionlessOptions.Builder audio(java.io.File audio) throws java.io.FileNotFoundException
audio
- the audiojava.io.FileNotFoundException
- if the file could not be found