Audio

public struct Audio : XMLRepresentable, Offsettable

A reference to audio data from an Asset or Effect.

  • The conform rate of the audio.

    Declaration

    Swift

    public var conformRate: ConformRate?
  • The time map of the audio.

    Declaration

    Swift

    public var timeMap: TimeMap?
  • The volume adjustment applied to the audio.

    Declaration

    Swift

    public var volume: Volume?
  • The audios anchored to the audio.

    Declaration

    Swift

    public var audios: [Audio]
  • The videos anchored to the audio.

    Declaration

    Swift

    public var videos: [Video]
  • The clips anchored to the audio.

    Declaration

    Swift

    public var clips: [Clip]
  • The titles anchored to the audio.

    Declaration

    Swift

    public var titles: [Title]
  • The captions anchored to the audio.

    Declaration

    Swift

    public var captions: [Caption]
  • The multicam clips anchored to the audio.

    Declaration

    Swift

    public var multicamClips: [MulticamClip]
  • The reference clips anchored to the audio.

    Declaration

    Swift

    public var referenceClips: [ReferenceClip]
  • The sync clips anchored to the audio.

    Declaration

    Swift

    public var syncClips: [SyncClip]
  • The asset clips anchored to the audio.

    Declaration

    Swift

    public var assetClips: [AssetClip]
  • The auditions anchored to the audio.

    Declaration

    Swift

    public var auditions: [Audition]
  • The spines anchored to the audio.

    Declaration

    Swift

    public var spines: [Spine]
  • The markers attached to the audio.

    Declaration

    Swift

    public var markers: [Marker]
  • The chapter markers attached to the audio.

    Declaration

    Swift

    public var chapterMarkers: [ChapterMarker]
  • The ratings associated with the audio.

    Declaration

    Swift

    public var ratings: [Rating]
  • The keywords associated with the audio.

    Declaration

    Swift

    public var keywords: [Keyword]
  • The analysis markers attached to the audio.

    Declaration

    Swift

    public var analysisMarkers: [AnalysisMarker]
  • The audio filters applied to the audio.

    Declaration

    Swift

    public var audioFilters: [AudioFilter]
  • The identifier of the asset or effect referenced by this audio.

    Declaration

    Swift

    public let referenceID: String
  • The lane of the audio.

    Declaration

    Swift

    public var lane: Int?
  • The offset of the audio.

    Declaration

    Swift

    public var offset: CMTime?
  • The name of the audio.

    Declaration

    Swift

    public var name: String?
  • The start time of the audio.

    Declaration

    Swift

    public var start: CMTime?
  • The duration of the audio.

    Declaration

    Swift

    public var duration: CMTime
  • A Boolean value that indicates whether the audio is enabled.

    Declaration

    Swift

    public var isEnabled: Bool { get set }
  • References the specific audio source (or track) in the asset. The default value is 1.

    Declaration

    Swift

    public var sourceID: String?
  • The role of the audio. Format is main-role.subrole.

    Declaration

    Swift

    public var role: String?
  • Identifies specific audio source channels in the asset. The value is a comma-separated series of 1-based channel indices.

    Declaration

    Swift

    public var sourceChannels: String?
  • Specifies output channels to send the audio. The value is a comma-separated series of channel tags: L, R, C, LFE, Ls, Rs, and X.

    Declaration

    Swift

    public var outputChannels: String?
  • Initializes a new audio with a reference identifier and duration.

    Declaration

    Swift

    public init(referenceID: String, offset: CMTime = .zero, name: String? = nil, start: CMTime? = nil, duration: CMTime, role: String? = nil,
                sourceChannels: String? = nil)

    Parameters

    referenceID

    The reference identifier of the audio.

    offset

    The offset of the audio.

    name

    The name of the audio.

    start

    The start time of the audio.

    duration

    The duration of the audio.

    role

    The role of the audio.

    sourceChannels

    Identifies specific audio source channels in the asset.