Module tdlight.api

Class TdApi.VoiceNote

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.VoiceNote
Enclosing class:
TdApi

public static final class TdApi.VoiceNote extends TdApi.Object
Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel.
  • Field Details

    • duration

      public int duration
      Duration of the voice note, in seconds; as defined by the sender.
    • waveform

      public byte[] waveform
      A waveform representation of the voice note in 5-bit format.
    • mimeType

      public String mimeType
      MIME type of the file; as defined by the sender.
    • speechRecognitionResult

      public TdApi.SpeechRecognitionResult speechRecognitionResult
      Result of speech recognition in the voice note; may be null.
    • voice

      public TdApi.File voice
      File containing the voice note.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • VoiceNote

      public VoiceNote()
      Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel.
    • VoiceNote

      public VoiceNote(int duration, byte[] waveform, String mimeType, TdApi.SpeechRecognitionResult speechRecognitionResult, TdApi.File voice)
      Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel.
      Parameters:
      duration - int Duration of the voice note, in seconds; as defined by the sender.
      waveform - byte[] A waveform representation of the voice note in 5-bit format.
      mimeType - String MIME type of the file; as defined by the sender.
      speechRecognitionResult - SpeechRecognitionResult Result of speech recognition in the voice note; may be null.
      voice - File File containing the voice note.
    • VoiceNote

      public VoiceNote(DataInput input) throws IOException
      Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel.
      Throws:
      IOException
  • Method Details