public static class TdApi.VoiceNote extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
duration
Duration of the voice note, in seconds; as defined by the sender.
|
java.lang.String |
mimeType
MIME type of the file; as defined by the sender.
|
TdApi.SpeechRecognitionResult |
speechRecognitionResult
Result of speech recognition in the voice note; may be null.
|
TdApi.File |
voice
File containing the voice note.
|
byte[] |
waveform
A waveform representation of the voice note in 5-bit format.
|
| Constructor and Description |
|---|
VoiceNote()
Describes a voice note.
|
VoiceNote(int duration,
byte[] waveform,
java.lang.String mimeType,
TdApi.SpeechRecognitionResult speechRecognitionResult,
TdApi.File voice)
Describes a voice note.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic int duration
public byte[] waveform
public java.lang.String mimeType
public TdApi.SpeechRecognitionResult speechRecognitionResult
public TdApi.File voice
public static final int CONSTRUCTOR
public VoiceNote()
public VoiceNote(int duration,
byte[] waveform,
java.lang.String mimeType,
TdApi.SpeechRecognitionResult speechRecognitionResult,
TdApi.File voice)
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. Usually, one of "audio/ogg" for Opus in an OGG container, "audio/mpeg" for an MP3 audio, or "audio/mp4" for an M4A audio.speechRecognitionResult - Result of speech recognition in the voice note; may be null.voice - File containing the voice note.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object