Class CreateJobOptions.Builder
java.lang.Object
com.ibm.watson.speech_to_text.v1.model.CreateJobOptions.Builder
- Enclosing class:
- CreateJobOptions
public static class CreateJobOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(InputStream audio)
Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description CreateJobOptions.Builder
acousticCustomizationId(String acousticCustomizationId)
Set the acousticCustomizationId.CreateJobOptions.Builder
addKeyword(String keyword)
Adds an keyword to keywords.CreateJobOptions.Builder
audio(File audio)
Set the audio.CreateJobOptions.Builder
audio(InputStream audio)
Set the audio.CreateJobOptions.Builder
audioMetrics(Boolean audioMetrics)
Set the audioMetrics.CreateJobOptions.Builder
backgroundAudioSuppression(Float backgroundAudioSuppression)
Set the backgroundAudioSuppression.CreateJobOptions.Builder
baseModelVersion(String baseModelVersion)
Set the baseModelVersion.CreateJobOptions
build()
Builds a CreateJobOptions.CreateJobOptions.Builder
callbackUrl(String callbackUrl)
Set the callbackUrl.CreateJobOptions.Builder
contentType(String contentType)
Set the contentType.CreateJobOptions.Builder
customizationId(String customizationId)
Set the customizationId.CreateJobOptions.Builder
customizationWeight(Double customizationWeight)
Set the customizationWeight.CreateJobOptions.Builder
endOfPhraseSilenceTime(Double endOfPhraseSilenceTime)
Set the endOfPhraseSilenceTime.CreateJobOptions.Builder
events(String events)
Set the events.CreateJobOptions.Builder
grammarName(String grammarName)
Set the grammarName.CreateJobOptions.Builder
inactivityTimeout(long inactivityTimeout)
Set the inactivityTimeout.CreateJobOptions.Builder
keywords(List<String> keywords)
Set the keywords.CreateJobOptions.Builder
keywordsThreshold(Float keywordsThreshold)
Set the keywordsThreshold.CreateJobOptions.Builder
languageCustomizationId(String languageCustomizationId)
Set the languageCustomizationId.CreateJobOptions.Builder
lowLatency(Boolean lowLatency)
Set the lowLatency.CreateJobOptions.Builder
maxAlternatives(long maxAlternatives)
Set the maxAlternatives.CreateJobOptions.Builder
model(String model)
Set the model.CreateJobOptions.Builder
processingMetrics(Boolean processingMetrics)
Set the processingMetrics.CreateJobOptions.Builder
processingMetricsInterval(Float processingMetricsInterval)
Set the processingMetricsInterval.CreateJobOptions.Builder
profanityFilter(Boolean profanityFilter)
Set the profanityFilter.CreateJobOptions.Builder
redaction(Boolean redaction)
Set the redaction.CreateJobOptions.Builder
resultsTtl(long resultsTtl)
Set the resultsTtl.CreateJobOptions.Builder
smartFormatting(Boolean smartFormatting)
Set the smartFormatting.CreateJobOptions.Builder
speakerLabels(Boolean speakerLabels)
Set the speakerLabels.CreateJobOptions.Builder
speechDetectorSensitivity(Float speechDetectorSensitivity)
Set the speechDetectorSensitivity.CreateJobOptions.Builder
splitTranscriptAtPhraseEnd(Boolean splitTranscriptAtPhraseEnd)
Set the splitTranscriptAtPhraseEnd.CreateJobOptions.Builder
timestamps(Boolean timestamps)
Set the timestamps.CreateJobOptions.Builder
userToken(String userToken)
Set the userToken.CreateJobOptions.Builder
wordAlternativesThreshold(Float wordAlternativesThreshold)
Set the wordAlternativesThreshold.CreateJobOptions.Builder
wordConfidence(Boolean wordConfidence)
Set the wordConfidence.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
audio
- the audio
-
-
Method Details
-
build
Builds a CreateJobOptions.- Returns:
- the new CreateJobOptions instance
-
addKeyword
Adds an keyword to keywords.- Parameters:
keyword
- the new keyword- Returns:
- the CreateJobOptions builder
-
audio
Set the audio.- Parameters:
audio
- the audio- Returns:
- the CreateJobOptions builder
-
contentType
Set the contentType.- Parameters:
contentType
- the contentType- Returns:
- the CreateJobOptions builder
-
model
Set the model.- Parameters:
model
- the model- Returns:
- the CreateJobOptions builder
-
callbackUrl
Set the callbackUrl.- Parameters:
callbackUrl
- the callbackUrl- Returns:
- the CreateJobOptions builder
-
events
Set the events.- Parameters:
events
- the events- Returns:
- the CreateJobOptions builder
-
userToken
Set the userToken.- Parameters:
userToken
- the userToken- Returns:
- the CreateJobOptions builder
-
resultsTtl
Set the resultsTtl.- Parameters:
resultsTtl
- the resultsTtl- Returns:
- the CreateJobOptions builder
-
languageCustomizationId
Set the languageCustomizationId.- Parameters:
languageCustomizationId
- the languageCustomizationId- Returns:
- the CreateJobOptions builder
-
acousticCustomizationId
Set the acousticCustomizationId.- Parameters:
acousticCustomizationId
- the acousticCustomizationId- Returns:
- the CreateJobOptions builder
-
baseModelVersion
Set the baseModelVersion.- Parameters:
baseModelVersion
- the baseModelVersion- Returns:
- the CreateJobOptions builder
-
customizationWeight
Set the customizationWeight.- Parameters:
customizationWeight
- the customizationWeight- Returns:
- the CreateJobOptions builder
-
inactivityTimeout
Set the inactivityTimeout.- Parameters:
inactivityTimeout
- the inactivityTimeout- Returns:
- the CreateJobOptions builder
-
keywords
Set the keywords. Existing keywords will be replaced.- Parameters:
keywords
- the keywords- Returns:
- the CreateJobOptions builder
-
keywordsThreshold
Set the keywordsThreshold.- Parameters:
keywordsThreshold
- the keywordsThreshold- Returns:
- the CreateJobOptions builder
-
maxAlternatives
Set the maxAlternatives.- Parameters:
maxAlternatives
- the maxAlternatives- Returns:
- the CreateJobOptions builder
-
wordAlternativesThreshold
Set the wordAlternativesThreshold.- Parameters:
wordAlternativesThreshold
- the wordAlternativesThreshold- Returns:
- the CreateJobOptions builder
-
wordConfidence
Set the wordConfidence.- Parameters:
wordConfidence
- the wordConfidence- Returns:
- the CreateJobOptions builder
-
timestamps
Set the timestamps.- Parameters:
timestamps
- the timestamps- Returns:
- the CreateJobOptions builder
-
profanityFilter
Set the profanityFilter.- Parameters:
profanityFilter
- the profanityFilter- Returns:
- the CreateJobOptions builder
-
smartFormatting
Set the smartFormatting.- Parameters:
smartFormatting
- the smartFormatting- Returns:
- the CreateJobOptions builder
-
speakerLabels
Set the speakerLabels.- Parameters:
speakerLabels
- the speakerLabels- Returns:
- the CreateJobOptions builder
-
customizationId
Set the customizationId.- Parameters:
customizationId
- the customizationId- Returns:
- the CreateJobOptions builder
-
grammarName
Set the grammarName.- Parameters:
grammarName
- the grammarName- Returns:
- the CreateJobOptions builder
-
redaction
Set the redaction.- Parameters:
redaction
- the redaction- Returns:
- the CreateJobOptions builder
-
processingMetrics
Set the processingMetrics.- Parameters:
processingMetrics
- the processingMetrics- Returns:
- the CreateJobOptions builder
-
processingMetricsInterval
Set the processingMetricsInterval.- Parameters:
processingMetricsInterval
- the processingMetricsInterval- Returns:
- the CreateJobOptions builder
-
audioMetrics
Set the audioMetrics.- Parameters:
audioMetrics
- the audioMetrics- Returns:
- the CreateJobOptions builder
-
endOfPhraseSilenceTime
Set the endOfPhraseSilenceTime.- Parameters:
endOfPhraseSilenceTime
- the endOfPhraseSilenceTime- Returns:
- the CreateJobOptions builder
-
splitTranscriptAtPhraseEnd
Set the splitTranscriptAtPhraseEnd.- Parameters:
splitTranscriptAtPhraseEnd
- the splitTranscriptAtPhraseEnd- Returns:
- the CreateJobOptions builder
-
speechDetectorSensitivity
Set the speechDetectorSensitivity.- Parameters:
speechDetectorSensitivity
- the speechDetectorSensitivity- Returns:
- the CreateJobOptions builder
-
backgroundAudioSuppression
Set the backgroundAudioSuppression.- Parameters:
backgroundAudioSuppression
- the backgroundAudioSuppression- Returns:
- the CreateJobOptions builder
-
lowLatency
Set the lowLatency.- Parameters:
lowLatency
- the lowLatency- Returns:
- the CreateJobOptions builder
-
audio
Set the audio.- Parameters:
audio
- the audio- Returns:
- the CreateJobOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-