Class HDVoiceMessage

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      HDVoiceMessage()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getDuration() Voice duration (unit: seconds).
      final Unit setDuration(Integer duration) Voice duration (unit: seconds).
      final Integer getNumberOfChannels() Number of audio channels.
      final Unit setNumberOfChannels(Integer numberOfChannels) Number of audio channels.
      final Integer getSampleRate() Audio sample rate.
      final Unit setSampleRate(Integer sampleRate) Audio sample rate.
      final String getFormat() Audio format (e.g.
      final Unit setFormat(String format) Audio format (e.g.
      final SpeechToTextInfo getSttInfo() Speech-to-text info, null if not converted.
      String toString()
      • Methods inherited from class ai.nexconn.chat.message.MediaMessageContent

        getLocalPath, getName, getRemoteUrl, setLocalPath, setName, setRemoteUrl
      • Methods inherited from class ai.nexconn.chat.message.MessageContent

        getDestructTime, getExtra, getMentionedInfo, isDestruct, setDestruct, setDestructTime, setExtra, setMentionedInfo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HDVoiceMessage

        HDVoiceMessage()
    • Method Detail

      • getDuration

         final Integer getDuration()

        Voice duration (unit: seconds).

      • setDuration

         final Unit setDuration(Integer duration)

        Voice duration (unit: seconds).

      • getNumberOfChannels

         final Integer getNumberOfChannels()

        Number of audio channels. Only mono (1) supports STT.

      • setNumberOfChannels

         final Unit setNumberOfChannels(Integer numberOfChannels)

        Number of audio channels. Only mono (1) supports STT.

      • getSampleRate

         final Integer getSampleRate()

        Audio sample rate. Only 8000 and 16000 support STT.

      • setSampleRate

         final Unit setSampleRate(Integer sampleRate)

        Audio sample rate. Only 8000 and 16000 support STT.

      • getFormat

         final String getFormat()

        Audio format (e.g. "aac", "wav").

      • setFormat

         final Unit setFormat(String format)

        Audio format (e.g. "aac", "wav").