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 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 a Parameters record class.
      Parameters:
      format - the value for the format record component
      sampleRate - the value for the sampleRate record component
      vocabularyId - the value for the vocabularyId record component
      difluencyRemovalEnabled - the value for the difluencyRemovalEnabled record component
      languageHints - the value for the languageHints record component
      semanticPunctuationEnabled - the value for the semanticPunctuationEnabled record component
      maxSentenceSilence - the value for the maxSentenceSilence record component
      multiThresholdModeEnabled - the value for the multiThresholdModeEnabled record component
      punctuationPredictionEnabled - the value for the punctuationPredictionEnabled record component
      heartbeat - the value for the heartbeat record component
      inverseTextNormalizationEnabled - the value for the inverseTextNormalizationEnabled record component
      sourceLanguage - the value for the sourceLanguage record component
      transcriptionEnabled - the value for the transcriptionEnabled record component
      translationEnabled - the value for the translationEnabled record component
      translationTargetLanguages - the value for the translationTargetLanguages record component
      maxEndSilence - the value for the maxEndSilence record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • format

      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • sampleRate

      public Integer sampleRate()
      Returns the value of the sampleRate record component.
      Returns:
      the value of the sampleRate record component
    • vocabularyId

      public String vocabularyId()
      Returns the value of the vocabularyId record component.
      Returns:
      the value of the vocabularyId record component
    • difluencyRemovalEnabled

      public Boolean difluencyRemovalEnabled()
      Returns the value of the difluencyRemovalEnabled record component.
      Returns:
      the value of the difluencyRemovalEnabled record component
    • languageHints

      public List<String> languageHints()
      Returns the value of the languageHints record component.
      Returns:
      the value of the languageHints record component
    • semanticPunctuationEnabled

      public Boolean semanticPunctuationEnabled()
      Returns the value of the semanticPunctuationEnabled record component.
      Returns:
      the value of the semanticPunctuationEnabled record component
    • maxSentenceSilence

      public Integer maxSentenceSilence()
      Returns the value of the maxSentenceSilence record component.
      Returns:
      the value of the maxSentenceSilence record component
    • multiThresholdModeEnabled

      public Boolean multiThresholdModeEnabled()
      Returns the value of the multiThresholdModeEnabled record component.
      Returns:
      the value of the multiThresholdModeEnabled record component
    • punctuationPredictionEnabled

      public Boolean punctuationPredictionEnabled()
      Returns the value of the punctuationPredictionEnabled record component.
      Returns:
      the value of the punctuationPredictionEnabled record component
    • heartbeat

      public Boolean heartbeat()
      Returns the value of the heartbeat record component.
      Returns:
      the value of the heartbeat record component
    • inverseTextNormalizationEnabled

      public Boolean inverseTextNormalizationEnabled()
      Returns the value of the inverseTextNormalizationEnabled record component.
      Returns:
      the value of the inverseTextNormalizationEnabled record component
    • sourceLanguage

      public String sourceLanguage()
      Returns the value of the sourceLanguage record component.
      Returns:
      the value of the sourceLanguage record component
    • transcriptionEnabled

      public Boolean transcriptionEnabled()
      Returns the value of the transcriptionEnabled record component.
      Returns:
      the value of the transcriptionEnabled record component
    • translationEnabled

      public Boolean translationEnabled()
      Returns the value of the translationEnabled record component.
      Returns:
      the value of the translationEnabled record component
    • translationTargetLanguages

      public List<String> translationTargetLanguages()
      Returns the value of the translationTargetLanguages record component.
      Returns:
      the value of the translationTargetLanguages record component
    • maxEndSilence

      public Integer maxEndSilence()
      Returns the value of the maxEndSilence record component.
      Returns:
      the value of the maxEndSilence record component