|
TDLib
|
Inherits Object.
Describes a voice note.
Public Member Functions | |
| void | store (TlStorerToString &s, const char *field_name) const final |
| voiceNote () | |
| voiceNote (int32 duration_, bytes const &waveform_, string const &mime_type_, object_ptr< SpeechRecognitionResult > &&speech_recognition_result_, object_ptr< file > &&voice_) | |
| Public Member Functions inherited from TlObject | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject & | operator= (TlObject &&)=default |
| virtual void | store (TlStorerCalcLength &s) const |
| virtual void | store (TlStorerUnsafe &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject (TlObject &&)=default | |
| virtual | ~TlObject ()=default |
Public Attributes | |
| int32 | duration_ |
| Duration of the voice note, in seconds; as defined by the sender. | |
| string | mime_type_ |
| 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. | |
| object_ptr< SpeechRecognitionResult > | speech_recognition_result_ |
| Result of speech recognition in the voice note; may be null. | |
| object_ptr< file > | voice_ |
| File containing the voice note. | |
| bytes | waveform_ |
| A waveform representation of the voice note in 5-bit format. | |
Static Public Attributes | |
| static const std::int32_t | ID = -1175302923 |
| Identifier uniquely determining a type of the object. | |
| voiceNote | ( | ) |
Describes a voice note.
| voiceNote | ( | int32 | duration_, |
| bytes const & | waveform_, | ||
| string const & | mime_type_, | ||
| object_ptr< SpeechRecognitionResult > && | speech_recognition_result_, | ||
| object_ptr< file > && | voice_ ) |
Describes a voice note.
| [in] | duration_ | Duration of the voice note, in seconds; as defined by the sender. |
| [in] | waveform_ | A waveform representation of the voice note in 5-bit format. |
| [in] | mime_type_ | 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. |
| [in] | speech_recognition_result_ | Result of speech recognition in the voice note; may be null. |
| [in] | voice_ | File containing the voice note. |
|
finalvirtual |