public static class CreateJobOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(InputStream audio)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and 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 |
characterInsertionBias(Float characterInsertionBias)
Set the characterInsertionBias.
|
CreateJobOptions.Builder |
contentType(String contentType)
Set the contentType.
|
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.
|
public Builder()
public Builder(InputStream audio)
audio
- the audiopublic CreateJobOptions build()
public CreateJobOptions.Builder addKeyword(String keyword)
keyword
- the new keywordpublic CreateJobOptions.Builder audio(InputStream audio)
audio
- the audiopublic CreateJobOptions.Builder contentType(String contentType)
contentType
- the contentTypepublic CreateJobOptions.Builder model(String model)
model
- the modelpublic CreateJobOptions.Builder callbackUrl(String callbackUrl)
callbackUrl
- the callbackUrlpublic CreateJobOptions.Builder events(String events)
events
- the eventspublic CreateJobOptions.Builder userToken(String userToken)
userToken
- the userTokenpublic CreateJobOptions.Builder resultsTtl(long resultsTtl)
resultsTtl
- the resultsTtlpublic CreateJobOptions.Builder languageCustomizationId(String languageCustomizationId)
languageCustomizationId
- the languageCustomizationIdpublic CreateJobOptions.Builder acousticCustomizationId(String acousticCustomizationId)
acousticCustomizationId
- the acousticCustomizationIdpublic CreateJobOptions.Builder baseModelVersion(String baseModelVersion)
baseModelVersion
- the baseModelVersionpublic CreateJobOptions.Builder customizationWeight(Double customizationWeight)
customizationWeight
- the customizationWeightpublic CreateJobOptions.Builder inactivityTimeout(long inactivityTimeout)
inactivityTimeout
- the inactivityTimeoutpublic CreateJobOptions.Builder keywords(List<String> keywords)
keywords
- the keywordspublic CreateJobOptions.Builder keywordsThreshold(Float keywordsThreshold)
keywordsThreshold
- the keywordsThresholdpublic CreateJobOptions.Builder maxAlternatives(long maxAlternatives)
maxAlternatives
- the maxAlternativespublic CreateJobOptions.Builder wordAlternativesThreshold(Float wordAlternativesThreshold)
wordAlternativesThreshold
- the wordAlternativesThresholdpublic CreateJobOptions.Builder wordConfidence(Boolean wordConfidence)
wordConfidence
- the wordConfidencepublic CreateJobOptions.Builder timestamps(Boolean timestamps)
timestamps
- the timestampspublic CreateJobOptions.Builder profanityFilter(Boolean profanityFilter)
profanityFilter
- the profanityFilterpublic CreateJobOptions.Builder smartFormatting(Boolean smartFormatting)
smartFormatting
- the smartFormattingpublic CreateJobOptions.Builder speakerLabels(Boolean speakerLabels)
speakerLabels
- the speakerLabelspublic CreateJobOptions.Builder grammarName(String grammarName)
grammarName
- the grammarNamepublic CreateJobOptions.Builder redaction(Boolean redaction)
redaction
- the redactionpublic CreateJobOptions.Builder processingMetrics(Boolean processingMetrics)
processingMetrics
- the processingMetricspublic CreateJobOptions.Builder processingMetricsInterval(Float processingMetricsInterval)
processingMetricsInterval
- the processingMetricsIntervalpublic CreateJobOptions.Builder audioMetrics(Boolean audioMetrics)
audioMetrics
- the audioMetricspublic CreateJobOptions.Builder endOfPhraseSilenceTime(Double endOfPhraseSilenceTime)
endOfPhraseSilenceTime
- the endOfPhraseSilenceTimepublic CreateJobOptions.Builder splitTranscriptAtPhraseEnd(Boolean splitTranscriptAtPhraseEnd)
splitTranscriptAtPhraseEnd
- the splitTranscriptAtPhraseEndpublic CreateJobOptions.Builder speechDetectorSensitivity(Float speechDetectorSensitivity)
speechDetectorSensitivity
- the speechDetectorSensitivitypublic CreateJobOptions.Builder backgroundAudioSuppression(Float backgroundAudioSuppression)
backgroundAudioSuppression
- the backgroundAudioSuppressionpublic CreateJobOptions.Builder lowLatency(Boolean lowLatency)
lowLatency
- the lowLatencypublic CreateJobOptions.Builder characterInsertionBias(Float characterInsertionBias)
characterInsertionBias
- the characterInsertionBiaspublic CreateJobOptions.Builder audio(File audio) throws FileNotFoundException
audio
- the audioFileNotFoundException
- if the file could not be foundCopyright © 2022 IBM Cloud. All rights reserved.