java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.VoiceNote
- Enclosing class:
- TdApi
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 Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.int
Duration of the voice note, in seconds; as defined by the sender.MIME type of the file; as defined by the sender.Result of speech recognition in the voice note; may be null.File containing the voice note.byte[]
A waveform representation of the voice note in 5-bit format. -
Constructor Summary
ConstructorDescriptionDescribes a voice note.VoiceNote
(int duration, byte[] waveform, String mimeType, TdApi.SpeechRecognitionResult speechRecognitionResult, TdApi.File voice) Describes a voice note.Describes a voice note. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
duration
public int durationDuration of the voice note, in seconds; as defined by the sender. -
waveform
public byte[] waveformA waveform representation of the voice note in 5-bit format. -
mimeType
MIME type of the file; as defined by the sender. -
speechRecognitionResult
Result of speech recognition in the voice note; may be null. -
voice
File containing the voice note. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- 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
- Duration of the voice note, in seconds; as defined by the sender.waveform
- A waveform representation of the voice note in 5-bit format.mimeType
- MIME type of the file; as defined by the sender.speechRecognitionResult
- Result of speech recognition in the voice note; may be null.voice
- File containing the voice note.
-
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.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-