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.BuilderacousticCustomizationId(String acousticCustomizationId)Set the acousticCustomizationId.CreateJobOptions.BuilderaddKeyword(String keyword)Adds an keyword to keywords.CreateJobOptions.Builderaudio(File audio)Set the audio.CreateJobOptions.Builderaudio(InputStream audio)Set the audio.CreateJobOptions.BuilderaudioMetrics(Boolean audioMetrics)Set the audioMetrics.CreateJobOptions.BuilderbackgroundAudioSuppression(Float backgroundAudioSuppression)Set the backgroundAudioSuppression.CreateJobOptions.BuilderbaseModelVersion(String baseModelVersion)Set the baseModelVersion.CreateJobOptionsbuild()Builds a CreateJobOptions.CreateJobOptions.BuildercallbackUrl(String callbackUrl)Set the callbackUrl.CreateJobOptions.BuildercontentType(String contentType)Set the contentType.CreateJobOptions.BuildercustomizationId(String customizationId)Set the customizationId.CreateJobOptions.BuildercustomizationWeight(Double customizationWeight)Set the customizationWeight.CreateJobOptions.BuilderendOfPhraseSilenceTime(Double endOfPhraseSilenceTime)Set the endOfPhraseSilenceTime.CreateJobOptions.Builderevents(String events)Set the events.CreateJobOptions.BuildergrammarName(String grammarName)Set the grammarName.CreateJobOptions.BuilderinactivityTimeout(long inactivityTimeout)Set the inactivityTimeout.CreateJobOptions.Builderkeywords(List<String> keywords)Set the keywords.CreateJobOptions.BuilderkeywordsThreshold(Float keywordsThreshold)Set the keywordsThreshold.CreateJobOptions.BuilderlanguageCustomizationId(String languageCustomizationId)Set the languageCustomizationId.CreateJobOptions.BuilderlowLatency(Boolean lowLatency)Set the lowLatency.CreateJobOptions.BuildermaxAlternatives(long maxAlternatives)Set the maxAlternatives.CreateJobOptions.Buildermodel(String model)Set the model.CreateJobOptions.BuilderprocessingMetrics(Boolean processingMetrics)Set the processingMetrics.CreateJobOptions.BuilderprocessingMetricsInterval(Float processingMetricsInterval)Set the processingMetricsInterval.CreateJobOptions.BuilderprofanityFilter(Boolean profanityFilter)Set the profanityFilter.CreateJobOptions.Builderredaction(Boolean redaction)Set the redaction.CreateJobOptions.BuilderresultsTtl(long resultsTtl)Set the resultsTtl.CreateJobOptions.BuildersmartFormatting(Boolean smartFormatting)Set the smartFormatting.CreateJobOptions.BuilderspeakerLabels(Boolean speakerLabels)Set the speakerLabels.CreateJobOptions.BuilderspeechDetectorSensitivity(Float speechDetectorSensitivity)Set the speechDetectorSensitivity.CreateJobOptions.BuildersplitTranscriptAtPhraseEnd(Boolean splitTranscriptAtPhraseEnd)Set the splitTranscriptAtPhraseEnd.CreateJobOptions.Buildertimestamps(Boolean timestamps)Set the timestamps.CreateJobOptions.BuilderuserToken(String userToken)Set the userToken.CreateJobOptions.BuilderwordAlternativesThreshold(Float wordAlternativesThreshold)Set the wordAlternativesThreshold.CreateJobOptions.BuilderwordConfidence(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
-