Class DashScopeAudioTranscriptionOptions.Builder
java.lang.Object
com.alibaba.cloud.ai.dashscope.audio.DashScopeAudioTranscriptionOptions.Builder
- Enclosing class:
- DashScopeAudioTranscriptionOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()diarizationEnabled(Boolean diarizationEnabled) disfluencyRemovalEnabled(Boolean disfluencyRemovalEnabled) inverseTextNormalizationEnabled(Boolean inverseTextNormalizationEnabled) languageHints(List<String> languageHints) maxEndSilence(Integer maxEndSilence) maxSentenceSilence(Integer maxSentenceSilence) multiThresholdModeEnabled(Boolean multiThresholdModeEnabled) punctuationPredictionEnabled(Boolean punctuationPredictionEnabled) resourceId(String resourceId) sampleRate(Integer sampleRate) semanticPunctuationEnabled(Boolean semanticPunctuationEnabled) sourceLanguage(String sourceLanguage) speakerCount(Integer speakerCount) specialWordFilter(String specialWordFilter) timestampAlignmentEnabled(Boolean timestampAlignmentEnabled) transcriptionEnabled(Boolean transcriptionEnabled) translationEnabled(Boolean translationEnabled) translationTargetLanguages(List<String> translationTargetLanguages) vocabularyId(String vocabularyId) withChannelId(List<Integer> channelId) Deprecated, for removal: This API element is subject to removal in a future version.withDiarizationEnabled(Boolean diarizationEnabled) Deprecated, for removal: This API element is subject to removal in a future version.withDisfluencyRemovalEnabled(Boolean disfluencyRemovalEnabled) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.withHeartbeat(Boolean heartbeat) Deprecated, for removal: This API element is subject to removal in a future version.withInverseTextNormalizationEnabled(Boolean inverseTextNormalizationEnabled) Deprecated, for removal: This API element is subject to removal in a future version.withLanguageHints(List<String> languageHints) Deprecated, for removal: This API element is subject to removal in a future version.withMaxEndSilence(Integer maxEndSilence) Deprecated, for removal: This API element is subject to removal in a future version.withMaxSentenceSilence(Integer maxSentenceSilence) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.withMultiThresholdModeEnabled(Boolean multiThresholdModeEnabled) Deprecated, for removal: This API element is subject to removal in a future version.withPunctuationPredictionEnabled(Boolean punctuationPredictionEnabled) Deprecated, for removal: This API element is subject to removal in a future version.withResourceId(String resourceId) Deprecated, for removal: This API element is subject to removal in a future version.withSampleRate(Integer sampleRate) Deprecated, for removal: This API element is subject to removal in a future version.withSemanticPunctuationEnabled(Boolean semanticPunctuationEnabled) Deprecated, for removal: This API element is subject to removal in a future version.withSourceLanguage(String sourceLanguage) Deprecated, for removal: This API element is subject to removal in a future version.withSpeakerCount(Integer speakerCount) Deprecated, for removal: This API element is subject to removal in a future version.withSpecialWordFilter(String specialWordFilter) Deprecated, for removal: This API element is subject to removal in a future version.withTimestampAlignmentEnabled(Boolean timestampAlignmentEnabled) Deprecated, for removal: This API element is subject to removal in a future version.withTranscriptionEnabled(Boolean transcriptionEnabled) Deprecated, for removal: This API element is subject to removal in a future version.withTranslationEnabled(Boolean translationEnabled) Deprecated, for removal: This API element is subject to removal in a future version.withTranslationTargetLanguages(List<String> translationTargetLanguages) Deprecated, for removal: This API element is subject to removal in a future version.withVocabularyId(String vocabularyId) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withModel
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version. -
model
-
withVocabularyId
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withVocabularyId(String vocabularyId) Deprecated, for removal: This API element is subject to removal in a future version. -
vocabularyId
-
withResourceId
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withResourceId(String resourceId) Deprecated, for removal: This API element is subject to removal in a future version. -
resourceId
-
withSampleRate
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withSampleRate(Integer sampleRate) Deprecated, for removal: This API element is subject to removal in a future version. -
sampleRate
-
withFormat
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withFormat(DashScopeAudioTranscriptionApi.AudioFormat format) Deprecated, for removal: This API element is subject to removal in a future version. -
format
public DashScopeAudioTranscriptionOptions.Builder format(DashScopeAudioTranscriptionApi.AudioFormat format) -
withChannelId
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withChannelId(List<Integer> channelId) Deprecated, for removal: This API element is subject to removal in a future version. -
channelId
-
withDisfluencyRemovalEnabled
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withDisfluencyRemovalEnabled(Boolean disfluencyRemovalEnabled) Deprecated, for removal: This API element is subject to removal in a future version. -
disfluencyRemovalEnabled
public DashScopeAudioTranscriptionOptions.Builder disfluencyRemovalEnabled(Boolean disfluencyRemovalEnabled) -
withTimestampAlignmentEnabled
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withTimestampAlignmentEnabled(Boolean timestampAlignmentEnabled) Deprecated, for removal: This API element is subject to removal in a future version. -
timestampAlignmentEnabled
public DashScopeAudioTranscriptionOptions.Builder timestampAlignmentEnabled(Boolean timestampAlignmentEnabled) -
withSpecialWordFilter
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withSpecialWordFilter(String specialWordFilter) Deprecated, for removal: This API element is subject to removal in a future version. -
specialWordFilter
-
withLanguageHints
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withLanguageHints(List<String> languageHints) Deprecated, for removal: This API element is subject to removal in a future version. -
languageHints
-
withDiarizationEnabled
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withDiarizationEnabled(Boolean diarizationEnabled) Deprecated, for removal: This API element is subject to removal in a future version. -
diarizationEnabled
-
withSpeakerCount
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withSpeakerCount(Integer speakerCount) Deprecated, for removal: This API element is subject to removal in a future version. -
speakerCount
-
withSemanticPunctuationEnabled
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withSemanticPunctuationEnabled(Boolean semanticPunctuationEnabled) Deprecated, for removal: This API element is subject to removal in a future version. -
semanticPunctuationEnabled
public DashScopeAudioTranscriptionOptions.Builder semanticPunctuationEnabled(Boolean semanticPunctuationEnabled) -
withMaxSentenceSilence
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withMaxSentenceSilence(Integer maxSentenceSilence) Deprecated, for removal: This API element is subject to removal in a future version. -
maxSentenceSilence
-
withMultiThresholdModeEnabled
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withMultiThresholdModeEnabled(Boolean multiThresholdModeEnabled) Deprecated, for removal: This API element is subject to removal in a future version. -
multiThresholdModeEnabled
public DashScopeAudioTranscriptionOptions.Builder multiThresholdModeEnabled(Boolean multiThresholdModeEnabled) -
withPunctuationPredictionEnabled
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withPunctuationPredictionEnabled(Boolean punctuationPredictionEnabled) Deprecated, for removal: This API element is subject to removal in a future version. -
punctuationPredictionEnabled
public DashScopeAudioTranscriptionOptions.Builder punctuationPredictionEnabled(Boolean punctuationPredictionEnabled) -
withHeartbeat
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withHeartbeat(Boolean heartbeat) Deprecated, for removal: This API element is subject to removal in a future version. -
heartbeat
-
withInverseTextNormalizationEnabled
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withInverseTextNormalizationEnabled(Boolean inverseTextNormalizationEnabled) Deprecated, for removal: This API element is subject to removal in a future version. -
inverseTextNormalizationEnabled
public DashScopeAudioTranscriptionOptions.Builder inverseTextNormalizationEnabled(Boolean inverseTextNormalizationEnabled) -
withSourceLanguage
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withSourceLanguage(String sourceLanguage) Deprecated, for removal: This API element is subject to removal in a future version. -
sourceLanguage
-
withTranscriptionEnabled
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withTranscriptionEnabled(Boolean transcriptionEnabled) Deprecated, for removal: This API element is subject to removal in a future version. -
transcriptionEnabled
public DashScopeAudioTranscriptionOptions.Builder transcriptionEnabled(Boolean transcriptionEnabled) -
withTranslationEnabled
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withTranslationEnabled(Boolean translationEnabled) Deprecated, for removal: This API element is subject to removal in a future version. -
translationEnabled
-
withTranslationTargetLanguages
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withTranslationTargetLanguages(List<String> translationTargetLanguages) Deprecated, for removal: This API element is subject to removal in a future version. -
translationTargetLanguages
public DashScopeAudioTranscriptionOptions.Builder translationTargetLanguages(List<String> translationTargetLanguages) -
withMaxEndSilence
@Deprecated(since="1.1.0.0", forRemoval=true) public DashScopeAudioTranscriptionOptions.Builder withMaxEndSilence(Integer maxEndSilence) Deprecated, for removal: This API element is subject to removal in a future version. -
maxEndSilence
-
build
-