Record Class DashScopeAudioTranscriptionApi.RealtimeRequest.Payload.Parameters
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.api.DashScopeAudioTranscriptionApi.RealtimeRequest.Payload.Parameters
- Enclosing class:
- DashScopeAudioTranscriptionApi.RealtimeRequest.Payload
public static record DashScopeAudioTranscriptionApi.RealtimeRequest.Payload.Parameters(DashScopeAudioTranscriptionApi.AudioFormat format, Integer sampleRate, String vocabularyId, Boolean difluencyRemovalEnabled, List<String> languageHints, Boolean semanticPunctuationEnabled, Integer maxSentenceSilence, Boolean multiThresholdModeEnabled, Boolean punctuationPredictionEnabled, Boolean heartbeat, Boolean inverseTextNormalizationEnabled, String sourceLanguage, Boolean transcriptionEnabled, Boolean translationEnabled, List<String> translationTargetLanguages, Integer maxEndSilence)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionParameters(DashScopeAudioTranscriptionApi.AudioFormat format, Integer sampleRate, String vocabularyId, Boolean difluencyRemovalEnabled, List<String> languageHints, Boolean semanticPunctuationEnabled, Integer maxSentenceSilence, Boolean multiThresholdModeEnabled, Boolean punctuationPredictionEnabled, Boolean heartbeat, Boolean inverseTextNormalizationEnabled, String sourceLanguage, Boolean transcriptionEnabled, Boolean translationEnabled, List<String> translationTargetLanguages, Integer maxEndSilence) Creates an instance of aParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedifluencyRemovalEnabledrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theheartbeatrecord component.Returns the value of theinverseTextNormalizationEnabledrecord component.Returns the value of thelanguageHintsrecord component.Returns the value of themaxEndSilencerecord component.Returns the value of themaxSentenceSilencerecord component.Returns the value of themultiThresholdModeEnabledrecord component.Returns the value of thepunctuationPredictionEnabledrecord component.Returns the value of thesampleRaterecord component.Returns the value of thesemanticPunctuationEnabledrecord component.Returns the value of thesourceLanguagerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranscriptionEnabledrecord component.Returns the value of thetranslationEnabledrecord component.Returns the value of thetranslationTargetLanguagesrecord component.Returns the value of thevocabularyIdrecord component.
-
Constructor Details
-
Parameters
public Parameters(DashScopeAudioTranscriptionApi.AudioFormat format, Integer sampleRate, String vocabularyId, Boolean difluencyRemovalEnabled, List<String> languageHints, Boolean semanticPunctuationEnabled, Integer maxSentenceSilence, Boolean multiThresholdModeEnabled, Boolean punctuationPredictionEnabled, Boolean heartbeat, Boolean inverseTextNormalizationEnabled, String sourceLanguage, Boolean transcriptionEnabled, Boolean translationEnabled, List<String> translationTargetLanguages, Integer maxEndSilence) Creates an instance of aParametersrecord class.- Parameters:
format- the value for theformatrecord componentsampleRate- the value for thesampleRaterecord componentvocabularyId- the value for thevocabularyIdrecord componentdifluencyRemovalEnabled- the value for thedifluencyRemovalEnabledrecord componentlanguageHints- the value for thelanguageHintsrecord componentsemanticPunctuationEnabled- the value for thesemanticPunctuationEnabledrecord componentmaxSentenceSilence- the value for themaxSentenceSilencerecord componentmultiThresholdModeEnabled- the value for themultiThresholdModeEnabledrecord componentpunctuationPredictionEnabled- the value for thepunctuationPredictionEnabledrecord componentheartbeat- the value for theheartbeatrecord componentinverseTextNormalizationEnabled- the value for theinverseTextNormalizationEnabledrecord componentsourceLanguage- the value for thesourceLanguagerecord componenttranscriptionEnabled- the value for thetranscriptionEnabledrecord componenttranslationEnabled- the value for thetranslationEnabledrecord componenttranslationTargetLanguages- the value for thetranslationTargetLanguagesrecord componentmaxEndSilence- the value for themaxEndSilencerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
sampleRate
Returns the value of thesampleRaterecord component.- Returns:
- the value of the
sampleRaterecord component
-
vocabularyId
Returns the value of thevocabularyIdrecord component.- Returns:
- the value of the
vocabularyIdrecord component
-
difluencyRemovalEnabled
Returns the value of thedifluencyRemovalEnabledrecord component.- Returns:
- the value of the
difluencyRemovalEnabledrecord component
-
languageHints
Returns the value of thelanguageHintsrecord component.- Returns:
- the value of the
languageHintsrecord component
-
semanticPunctuationEnabled
Returns the value of thesemanticPunctuationEnabledrecord component.- Returns:
- the value of the
semanticPunctuationEnabledrecord component
-
maxSentenceSilence
Returns the value of themaxSentenceSilencerecord component.- Returns:
- the value of the
maxSentenceSilencerecord component
-
multiThresholdModeEnabled
Returns the value of themultiThresholdModeEnabledrecord component.- Returns:
- the value of the
multiThresholdModeEnabledrecord component
-
punctuationPredictionEnabled
Returns the value of thepunctuationPredictionEnabledrecord component.- Returns:
- the value of the
punctuationPredictionEnabledrecord component
-
heartbeat
Returns the value of theheartbeatrecord component.- Returns:
- the value of the
heartbeatrecord component
-
inverseTextNormalizationEnabled
Returns the value of theinverseTextNormalizationEnabledrecord component.- Returns:
- the value of the
inverseTextNormalizationEnabledrecord component
-
sourceLanguage
Returns the value of thesourceLanguagerecord component.- Returns:
- the value of the
sourceLanguagerecord component
-
transcriptionEnabled
Returns the value of thetranscriptionEnabledrecord component.- Returns:
- the value of the
transcriptionEnabledrecord component
-
translationEnabled
Returns the value of thetranslationEnabledrecord component.- Returns:
- the value of the
translationEnabledrecord component
-
translationTargetLanguages
Returns the value of thetranslationTargetLanguagesrecord component.- Returns:
- the value of the
translationTargetLanguagesrecord component
-
maxEndSilence
Returns the value of themaxEndSilencerecord component.- Returns:
- the value of the
maxEndSilencerecord component
-