Class: TD::Types::VoiceNote
- Defined in:
- lib/tdlib/types/voice_note.rb
Overview
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.
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.
-
#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.
10 11 12 |
# File 'lib/tdlib/types/voice_note.rb', line 10 def duration @duration end |
#mime_type ⇒ TD::Types::String
MIME type of the file; as defined by the sender.
10 11 12 |
# File 'lib/tdlib/types/voice_note.rb', line 10 def mime_type @mime_type end |
#voice ⇒ TD::Types::File
File containing the voice note.
10 11 12 |
# File 'lib/tdlib/types/voice_note.rb', line 10 def voice @voice end |
#waveform ⇒ String
A waveform representation of the voice note in 5-bit format.
10 11 12 |
# File 'lib/tdlib/types/voice_note.rb', line 10 def waveform @waveform end |