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
durationDuration of the voice note, in seconds; as defined by the sender
waveformA waveform representation of the voice note in 5-bit format
mimeTypeMIME type of the file; as defined by the sender
voiceFile containing the voice note
-
Undocumented
Declaration
Swift
var waveformSamples: [UInt8] { get }
View on GitHub
Install in Dash
VoiceNote Structure Reference