Skip to content

VoiceNote

Type · TDLib 1.8.67 · d1085f9c

Describes a voice note

VoiceNote(
  duration: int32,
  waveform: bytes,
  mime_type: string,
  speech_recognition_result: SpeechRecognitionResult,
  voice: File
) → VoiceNote

duration

int32

Duration of the voice note, in seconds; as defined by the sender

waveform

bytes

A waveform representation of the voice note in 5-bit format

mime_type

string

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

speech_recognition_result

SpeechRecognitionResult

Result of speech recognition in the voice note; may be null

voice

File

File containing the voice note