Class SpeechSynthesisParam


@Deprecated public class SpeechSynthesisParam extends FullDuplexServiceParam
Deprecated.
Author:
lengjiayi
  • Constructor Details

  • Method Details

    • getParameters

      public Map<String,Object> getParameters()
      Deprecated.
      Description copied from class: FullDuplexParamBase
      The service parameters.
      Specified by:
      getParameters in class FullDuplexParamBase
      Returns:
      The key/value parameters
    • getResources

      public Object getResources()
      Deprecated.
      Description copied from class: FullDuplexServiceParam
      Get the resources
      Overrides:
      getResources in class FullDuplexServiceParam
      Returns:
      the resource object.
    • getStreamingData

      public io.reactivex.Flowable<Object> getStreamingData()
      Deprecated.
      Description copied from class: FullDuplexParamBase
      Get the stream input data, only for websocket stream in and duplex mode. For binary data support: byte[] and ByteBuffer Otherwise should be String or Json serializable Object. For websocket stream in and duplex service must implement.
      Specified by:
      getStreamingData in class FullDuplexParamBase
      Returns:
      The stream input data.
    • builder

      Deprecated.
    • equals

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

      protected boolean canEqual(Object other)
      Deprecated.
      Overrides:
      canEqual in class FullDuplexServiceParam
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class FullDuplexServiceParam
    • getTextType

      public SpeechSynthesisTextType getTextType()
      Deprecated.
      Input text type.
    • getVoice

      public String getVoice()
      Deprecated.
      voice name
    • getFormat

      public SpeechSynthesisAudioFormat getFormat()
      Deprecated.
      synthesis audio format.
    • getVolume

      public int getVolume()
      Deprecated.
      synthesis audio volume.
    • getSpeechRate

      public float getSpeechRate()
      Deprecated.
      synthesis audio speed.
    • getPitchRate

      public float getPitchRate()
      Deprecated.
      synthesis audio pitch.
    • isEnableWordTimestamp

      public boolean isEnableWordTimestamp()
      Deprecated.
      enable word level timestamp.
    • isEnablePhonemeTimestamp

      public boolean isEnablePhonemeTimestamp()
      Deprecated.
      enable phoneme level timestamp.
    • getConnectionTimeout

      public long getConnectionTimeout()
      Deprecated.
    • getFirstPackageTimeout

      public long getFirstPackageTimeout()
      Deprecated.
    • getInstruction

      public String getInstruction()
      Deprecated.
      the following parameters take effect only in CosyVoice V3 and later versions. instruction for synthesis.
    • getSeed

      public int getSeed()
      Deprecated.
      random seed.
    • getLanguageHints

      public List<String> getLanguageHints()
      Deprecated.
      language hints.
    • getStyle

      public int getStyle()
      Deprecated.
      synthesis style
    • getHotFix

      public ParamHotFix getHotFix()
      Deprecated.
      Hot fix configuration for pronunciation and replace rules.
    • setTextType

      public void setTextType(SpeechSynthesisTextType textType)
      Deprecated.
      Input text type.
    • setVoice

      public void setVoice(String voice)
      Deprecated.
      voice name
    • setFormat

      public void setFormat(SpeechSynthesisAudioFormat format)
      Deprecated.
      synthesis audio format.
    • setVolume

      public void setVolume(int volume)
      Deprecated.
      synthesis audio volume.
    • setSpeechRate

      public void setSpeechRate(float speechRate)
      Deprecated.
      synthesis audio speed.
    • setPitchRate

      public void setPitchRate(float pitchRate)
      Deprecated.
      synthesis audio pitch.
    • setEnableWordTimestamp

      public void setEnableWordTimestamp(boolean enableWordTimestamp)
      Deprecated.
      enable word level timestamp.
    • setEnablePhonemeTimestamp

      public void setEnablePhonemeTimestamp(boolean enablePhonemeTimestamp)
      Deprecated.
      enable phoneme level timestamp.
    • setConnectionTimeout

      public void setConnectionTimeout(long connectionTimeout)
      Deprecated.
    • setFirstPackageTimeout

      public void setFirstPackageTimeout(long firstPackageTimeout)
      Deprecated.
    • setInstruction

      public void setInstruction(String instruction)
      Deprecated.
      the following parameters take effect only in CosyVoice V3 and later versions. instruction for synthesis.
    • setSeed

      public void setSeed(int seed)
      Deprecated.
      random seed.
    • setLanguageHints

      public void setLanguageHints(List<String> languageHints)
      Deprecated.
      language hints.
    • setStyle

      public void setStyle(int style)
      Deprecated.
      synthesis style
    • setHotFix

      public void setHotFix(ParamHotFix hotFix)
      Deprecated.
      Hot fix configuration for pronunciation and replace rules.
    • toString

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