analyze(for:)
Performs the specified analyses on the session’s audio source.
Declaration
@discardableResult func analyze(for analysisTypes: Set<AnalysisType>) async throws -> MusicUnderstandingSession.SessionResultParameters
- analysisTypes:
A
SetofAnalysisTypevalues specifying which analyses to perform.
Return Value
The aggregated session result containing all requested analyses.
Discussion
Example usage:
let session = MusicUnderstandingSession(audioProvider: provider)
let result = try await session.analyze(for: [.rhythm, .pace, .loudness])