VoiceNote class
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.
- Inheritance
- Available Extensions
Constructors
- VoiceNote({required int duration, required bytes waveform, required String mime_type, SpeechRecognitionResult? speech_recognition_result, required File voice, int? extra, int? clientId})
- 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
Properties
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- duration ↔ int
-
Duration of the voice note, in seconds; as defined by the sender.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- mime_type ↔ String
-
MIME type of the file; as defined by the sender.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- speech_recognition_result ↔ SpeechRecognitionResult?
-
Result of speech recognition in the voice note; may be null.
read / write
- voice ↔ File
-
File containing the voice note.
read / write
- waveform ↔ bytes
-
A waveform representation of the voice note in 5-bit format.
; base64-encoded bytes
List<int>
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Object to Map serializer
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
Constants
- CONSTRUCTOR → const String
-
@type
"voiceNote"