Class: TD::Types::VoiceNote

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/voice_note.rb

Overview

Describes a voice note.

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



12
13
14
# File 'lib/tdlib/types/voice_note.rb', line 12

def duration
  @duration
end

#mime_typeTD::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.

Returns:

  • (TD::Types::String)

    the current value of mime_type



12
13
14
# File 'lib/tdlib/types/voice_note.rb', line 12

def mime_type
  @mime_type
end

#speech_recognition_resultTD::Types::SpeechRecognitionResult?

Result of speech recognition in the voice note; may be null.

Returns:



12
13
14
# File 'lib/tdlib/types/voice_note.rb', line 12

def speech_recognition_result
  @speech_recognition_result
end

#voiceTD::Types::File

File containing the voice note.

Returns:



12
13
14
# File 'lib/tdlib/types/voice_note.rb', line 12

def voice
  @voice
end

#waveformString

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

Returns:

  • (String)

    the current value of waveform



12
13
14
# File 'lib/tdlib/types/voice_note.rb', line 12

def waveform
  @waveform
end