Audio
public struct Audio : Codable, Equatable, FunctionResult
Describes an audio file. Audio is usually in MP3 or M4A format
-
Duration of the audio, in seconds; as defined by the sender
Declaration
Swift
public let duration: Int32 -
Title of the audio; as defined by the sender
Declaration
Swift
public let title: String -
Performer of the audio; as defined by the sender
Declaration
Swift
public let performer: String -
Original name of the file; as defined by the sender
Declaration
Swift
public let fileName: String -
The MIME type of the file; as defined by the sender
Declaration
Swift
public let mimeType: String -
The minithumbnail of the album cover; may be null
Declaration
Swift
public let albumCoverMinithumbnail: Minithumbnail? -
The thumbnail of the album cover; as defined by the sender. The full size thumbnail should be extracted from the downloaded file; may be null
Declaration
Swift
public let albumCoverThumbnail: PhotoSize? -
File containing the audio
Declaration
Swift
public let audio: File -
Describes an audio file. Audio is usually in MP3 or M4A format
Declaration
Swift
public init(duration: Int32, title: String, performer: String, fileName: String, mimeType: String, albumCoverMinithumbnail: Minithumbnail?, albumCoverThumbnail: PhotoSize?, audio: File)Parameters
durationDuration of the audio, in seconds; as defined by the sender
titleTitle of the audio; as defined by the sender
performerPerformer of the audio; as defined by the sender
fileNameOriginal name of the file; as defined by the sender
mimeTypeThe MIME type of the file; as defined by the sender
albumCoverMinithumbnailThe minithumbnail of the album cover; may be null
albumCoverThumbnailThe thumbnail of the album cover; as defined by the sender. The full size thumbnail should be extracted from the downloaded file; may be null
audioFile containing the audio
View on GitHub
Install in Dash
Audio Structure Reference