PyObjC-framework-soundanalysis provides Python wrappers for Apple's SoundAnalysis framework on macOS, enabling Python applications to perform advanced audio analysis tasks. It is part of the larger PyObjC project, currently at version 12.1, with a release cadence tied to macOS SDK updates and Python version support.
pip install pyobjc-framework-soundanalysisVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import and instantiate a basic class from the SoundAnalysis framework. This example creates a `SADetectSpeechRequest`, a common analysis request type.
Upgrade to Python 3.10 or later, or use an older PyObjC version (e.g., PyObjC 11.x for Python 3.9 support).
Change imports from `from AVFoundation import ...` to `from AVFAudio import ...` for `AVAudio*` related classes.
Review custom Python subclasses of Objective-C objects, especially their `__init__` or `init*` methods, to ensure correct reference counting and object lifecycle management.
Ensure you are using PyObjC 10.3.1 or later if you have Python classes that implement both `__new__` and `__init__` and derive from `objc.lookUpClass('NSObject')` or similar PyObjC bridged classes.