Class OmniRealtimeConfig

java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.omni.OmniRealtimeConfig

@Deprecated public class OmniRealtimeConfig extends Object
Deprecated.
Author:
lengjiayi
  • Constructor Details

  • Method Details

    • getConfig

      public com.google.gson.JsonObject getConfig()
      Deprecated.
    • builder

      public static OmniRealtimeConfig.OmniRealtimeConfigBuilder<?,?> builder()
      Deprecated.
    • getModalities

      @NonNull public @NonNull List<OmniRealtimeModality> getModalities()
      Deprecated.
      omni output modalities to be used in session
    • getVoice

      public String getVoice()
      Deprecated.
      voice to be used in session ,not need in qwen-asr-realtime
    • getInputAudioFormat

      public OmniRealtimeAudioFormat getInputAudioFormat()
      Deprecated.
      input audio format (legacy). Only supports pcm16/pcm24. Ignored when inputAudio is set.
    • getOutputAudioFormat

      public OmniRealtimeAudioFormat getOutputAudioFormat()
      Deprecated.
      output audio format (legacy). Only supports pcm16/pcm24. Ignored when outputAudio is set.
    • getInputAudio

      public OmniRealtimeAudioFormatConfig getInputAudio()
      Deprecated.
      New-style input(upstream) audio format, supports "pcm"/"wav" format and 8k/16k/24k/48k sample rate, e.g. new OmniRealtimeAudioFormatConfig("pcm", 16000). When set, this takes precedence over the legacy inputAudioFormat and will be serialized as the nested audio.input.format structure instead of the legacy flat input_audio_format field. Setting only one of inputAudio/outputAudio is fine, the other side falls back to its legacy field value.
    • getOutputAudio

      public OmniRealtimeAudioFormatConfig getOutputAudio()
      Deprecated.
      New-style output(downstream) audio format, see inputAudio. When set, this takes precedence over the legacy outputAudioFormat and will be serialized as the nested audio.output.format structure instead of the legacy flat output_audio_format field.
    • getInputVideoRepresentationCompact

      public String getInputVideoRepresentationCompact()
      Deprecated.
      Video input representation aggregation mode, serialized as video.input.representation_compact. none preserves fine-grained video input representations, while normal aggregates them to reduce computational overhead when visual details are less important.
    • isEnableInputAudioTranscription

      public boolean isEnableInputAudioTranscription()
      Deprecated.
      enable transcription for input audio
    • getInputAudioTranscription

      public String getInputAudioTranscription()
      Deprecated.
      model used for input audio transcription
    • isEnableTurnDetection

      public boolean isEnableTurnDetection()
      Deprecated.
      enable turn detection
    • getTurnDetectionType

      public String getTurnDetectionType()
      Deprecated.
      turn detection type
    • getTurnDetectionThreshold

      public float getTurnDetectionThreshold()
      Deprecated.
      turn detection threshold, range [-1, 1] In a noisy environment, it may be necessary to increase the threshold to reduce false detections In a quiet environment, it may be necessary to decrease the threshold to improve sensitivity
    • getPrefixPaddingMs

      public int getPrefixPaddingMs()
      Deprecated.
      prefix speech duration to detect speech start
    • getTurnDetectionSilenceDurationMs

      public int getTurnDetectionSilenceDurationMs()
      Deprecated.
      duration of silence in milliseconds to detect turn, range [200, 6000]
    • getTurnDetectionParam

      public Map<String,Object> getTurnDetectionParam()
      Deprecated.
      extra parameters for turn detection
    • getParameters

      public Map<String,Object> getParameters()
      Deprecated.
      The extra parameters.
    • getTranslationConfig

      public OmniRealtimeTranslationParam getTranslationConfig()
      Deprecated.
      translation configuration
    • getTranscriptionConfig

      public OmniRealtimeTranscriptionParam getTranscriptionConfig()
      Deprecated.
      transcription configuration
    • setModalities

      public void setModalities(@NonNull @NonNull List<OmniRealtimeModality> modalities)
      Deprecated.
      omni output modalities to be used in session
    • setVoice

      public void setVoice(String voice)
      Deprecated.
      voice to be used in session ,not need in qwen-asr-realtime
    • setInputAudioFormat

      public void setInputAudioFormat(OmniRealtimeAudioFormat inputAudioFormat)
      Deprecated.
      input audio format (legacy). Only supports pcm16/pcm24. Ignored when inputAudio is set.
    • setOutputAudioFormat

      public void setOutputAudioFormat(OmniRealtimeAudioFormat outputAudioFormat)
      Deprecated.
      output audio format (legacy). Only supports pcm16/pcm24. Ignored when outputAudio is set.
    • setInputAudio

      public void setInputAudio(OmniRealtimeAudioFormatConfig inputAudio)
      Deprecated.
      New-style input(upstream) audio format, supports "pcm"/"wav" format and 8k/16k/24k/48k sample rate, e.g. new OmniRealtimeAudioFormatConfig("pcm", 16000). When set, this takes precedence over the legacy inputAudioFormat and will be serialized as the nested audio.input.format structure instead of the legacy flat input_audio_format field. Setting only one of inputAudio/outputAudio is fine, the other side falls back to its legacy field value.
    • setOutputAudio

      public void setOutputAudio(OmniRealtimeAudioFormatConfig outputAudio)
      Deprecated.
      New-style output(downstream) audio format, see inputAudio. When set, this takes precedence over the legacy outputAudioFormat and will be serialized as the nested audio.output.format structure instead of the legacy flat output_audio_format field.
    • setInputVideoRepresentationCompact

      public void setInputVideoRepresentationCompact(String inputVideoRepresentationCompact)
      Deprecated.
      Video input representation aggregation mode, serialized as video.input.representation_compact. none preserves fine-grained video input representations, while normal aggregates them to reduce computational overhead when visual details are less important.
    • setEnableInputAudioTranscription

      public void setEnableInputAudioTranscription(boolean enableInputAudioTranscription)
      Deprecated.
      enable transcription for input audio
    • setInputAudioTranscription

      public void setInputAudioTranscription(String InputAudioTranscription)
      Deprecated.
      model used for input audio transcription
    • setEnableTurnDetection

      public void setEnableTurnDetection(boolean enableTurnDetection)
      Deprecated.
      enable turn detection
    • setTurnDetectionType

      public void setTurnDetectionType(String turnDetectionType)
      Deprecated.
      turn detection type
    • setTurnDetectionThreshold

      public void setTurnDetectionThreshold(float turnDetectionThreshold)
      Deprecated.
      turn detection threshold, range [-1, 1] In a noisy environment, it may be necessary to increase the threshold to reduce false detections In a quiet environment, it may be necessary to decrease the threshold to improve sensitivity
    • setPrefixPaddingMs

      public void setPrefixPaddingMs(int prefixPaddingMs)
      Deprecated.
      prefix speech duration to detect speech start
    • setTurnDetectionSilenceDurationMs

      public void setTurnDetectionSilenceDurationMs(int turnDetectionSilenceDurationMs)
      Deprecated.
      duration of silence in milliseconds to detect turn, range [200, 6000]
    • setTurnDetectionParam

      public void setTurnDetectionParam(Map<String,Object> turnDetectionParam)
      Deprecated.
      extra parameters for turn detection
    • setParameters

      public void setParameters(Map<String,Object> parameters)
      Deprecated.
      The extra parameters.
    • setTranslationConfig

      public void setTranslationConfig(OmniRealtimeTranslationParam translationConfig)
      Deprecated.
      translation configuration
    • setTranscriptionConfig

      public void setTranscriptionConfig(OmniRealtimeTranscriptionParam transcriptionConfig)
      Deprecated.
      transcription configuration
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object