Class: TD::Types::VoiceNote

Inherits:
Base
  • Object
show all
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

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#durationInteger

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

Returns:

  • (Integer)

    the current value of duration



10
11
12
# File 'lib/tdlib/types/voice_note.rb', line 10

def duration
  @duration
end

#mime_typeTD::Types::String

MIME type of the file; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of mime_type



10
11
12
# File 'lib/tdlib/types/voice_note.rb', line 10

def mime_type
  @mime_type
end

#voiceTD::Types::File

File containing the voice note.

Returns:



10
11
12
# File 'lib/tdlib/types/voice_note.rb', line 10

def voice
  @voice
end

#waveformString

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

Returns:

  • (String)

    the current value of waveform



10
11
12
# File 'lib/tdlib/types/voice_note.rb', line 10

def waveform
  @waveform
end