Class: TD::Types::VoiceNote
- Defined in:
- lib/tdlib/types/voice_note.rb
Overview
Describes a voice note.
Instance Attribute Summary collapse
-
#duration ⇒ Integer
Duration of the voice note, in seconds; as defined by the sender.
-
#mime_type ⇒ TD::Types::String
MIME type of the file; as defined by the sender.
-
#speech_recognition_result ⇒ TD::Types::SpeechRecognitionResult?
Result of speech recognition in the voice note; may be null.
-
#voice ⇒ TD::Types::File
File containing the voice note.
-
#waveform ⇒ String
A waveform representation of the voice note in 5-bit format.
Method Summary
Methods inherited from Base
Instance Attribute Details
#duration ⇒ Integer
Duration of the voice note, in seconds; as defined by the sender.
12 13 14 |
# File 'lib/tdlib/types/voice_note.rb', line 12 def duration @duration end |
#mime_type ⇒ TD::Types::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.
12 13 14 |
# File 'lib/tdlib/types/voice_note.rb', line 12 def mime_type @mime_type end |
#speech_recognition_result ⇒ TD::Types::SpeechRecognitionResult?
Result of speech recognition in the voice note; may be null.
12 13 14 |
# File 'lib/tdlib/types/voice_note.rb', line 12 def speech_recognition_result @speech_recognition_result end |
#voice ⇒ TD::Types::File
File containing the voice note.
12 13 14 |
# File 'lib/tdlib/types/voice_note.rb', line 12 def voice @voice end |
#waveform ⇒ String
A waveform representation of the voice note in 5-bit format.
12 13 14 |
# File 'lib/tdlib/types/voice_note.rb', line 12 def waveform @waveform end |