VoiceNote
public struct VoiceNote : Codable, Equatable, FunctionResult
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
-
Duration of the voice note, in seconds; as defined by the sender
Declaration
Swift
public let duration: Int32
-
A waveform representation of the voice note in 5-bit format
Declaration
Swift
public let waveform: Bytes
-
MIME type of the file; as defined by the sender
Declaration
Swift
public let mimeType: String
-
File containing the voice note
Declaration
Swift
public let voice: File
-
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
Parameters
duration
Duration of the voice note, in seconds; as defined by the sender
waveform
A waveform representation of the voice note in 5-bit format
mimeType
MIME type of the file; as defined by the sender
voice
File containing the voice note
-
Undocumented
Declaration
Swift
var waveformSamples: [UInt8] { get }