An object you create to analyze an audio file and provide the results to your app.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
Framework
- Sound
Analysis
Declaration
class SNAudioFileAnalyzer : NSObject
An object you create to analyze an audio file and provide the results to your app.
SDKs
Framework
class SNAudioFileAnalyzer : NSObject
init(url: URL)
Creates a new audio file analyzer.
func add(SNRequest, with Observer: SNResults Observing)
Adds a new analysis request to the audio file analyzer.
func remove(SNRequest)
Removes an existing request from the audio file analyzer.
func remove All Requests()
Removes all requests from the audio file analyzer.
func analyze()
Analyzes the audio file synchronously.
func analyze(completion Handler: (Bool) -> Void)
Analyzes the audio file asynchronously.
func cancel Analysis()
Cancels any in-progress analysis of the audio file.
Use the SoundAnalysis framework and Core ML to analyze audio.
class SNAudio Stream Analyzer
An object you create to analyze a stream of audio data and provide the results to your app.