pyobjc-framework-SoundAnalysis 11.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,50 @@
1
+ """
2
+ Python mapping for the SoundAnalysis framework.
3
+
4
+ This module does not contain docstrings for the wrapped code, check Apple's
5
+ documentation for details on how to use these functions and classes.
6
+ """
7
+
8
+
9
+ def _setup():
10
+ import sys
11
+
12
+ import Foundation
13
+ import objc
14
+ from . import _metadata
15
+
16
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
17
+ name="SoundAnalysis",
18
+ frameworkIdentifier="com.apple.SoundAnalysis",
19
+ frameworkPath=objc.pathForFramework(
20
+ "/System/Library/Frameworks/SoundAnalysis.framework"
21
+ ),
22
+ globals_dict=globals(),
23
+ inline_list=None,
24
+ parents=(Foundation,),
25
+ metadict=_metadata.__dict__,
26
+ )
27
+
28
+ globals()["__dir__"] = dir_func
29
+ globals()["__getattr__"] = getattr_func
30
+
31
+ for cls, sel in (
32
+ ("SNTimeDurationConstraint", b"init"),
33
+ ("SNTimeDurationConstraint", b"new"),
34
+ ("SNClassification", b"init"),
35
+ ("SNClassification", b"new"),
36
+ ("SNClassificationResult", b"init"),
37
+ ("SNClassificationResult", b"new"),
38
+ ("SNClassifySoundRequest", b"init"),
39
+ ("SNClassifySoundRequest", b"new"),
40
+ ("SNAudioStreamAnalyzer", b"init"),
41
+ ("SNAudioFileAnalyzer", b"init"),
42
+ ("SNAudioStreamAnalyzer", b"init"),
43
+ ("SNAudioFileAnalyzer", b"init"),
44
+ ):
45
+ objc.registerUnavailableMethod(cls, sel)
46
+
47
+ del sys.modules["SoundAnalysis._metadata"]
48
+
49
+
50
+ globals().pop("_setup")()
@@ -0,0 +1,152 @@
1
+ # This file is generated by objective.metadata
2
+ #
3
+ # Last update: Tue Jun 11 10:20:31 2024
4
+ #
5
+ # flake8: noqa
6
+
7
+ import objc, sys
8
+ from typing import NewType
9
+
10
+ if sys.maxsize > 2**32:
11
+
12
+ def sel32or64(a, b):
13
+ return b
14
+
15
+ else:
16
+
17
+ def sel32or64(a, b):
18
+ return a
19
+
20
+
21
+ if objc.arch == "arm64":
22
+
23
+ def selAorI(a, b):
24
+ return a
25
+
26
+ else:
27
+
28
+ def selAorI(a, b):
29
+ return b
30
+
31
+
32
+ misc = {}
33
+ constants = """$SNClassifierIdentifierVersion1$SNErrorDomain$"""
34
+ enums = """$SNErrorCodeInvalidFile@5$SNErrorCodeInvalidFormat@3$SNErrorCodeInvalidModel@4$SNErrorCodeOperationFailed@2$SNErrorCodeUnknownError@1$SNTimeDurationConstraintTypeEnumerated@1$SNTimeDurationConstraintTypeRange@2$"""
35
+ misc.update(
36
+ {
37
+ "SNErrorCode": NewType("SNErrorCode", int),
38
+ "SNTimeDurationConstraintType": NewType("SNTimeDurationConstraintType", int),
39
+ }
40
+ )
41
+ misc.update({"SNClassifierIdentifier": NewType("SNClassifierIdentifier", str)})
42
+ misc.update({})
43
+ r = objc.registerMetaDataForSelector
44
+ objc._updatingMetadata(True)
45
+ try:
46
+ r(
47
+ b"NSObject",
48
+ b"request:didFailWithError:",
49
+ {
50
+ "required": False,
51
+ "retval": {"type": b"v"},
52
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
53
+ },
54
+ )
55
+ r(
56
+ b"NSObject",
57
+ b"request:didProduceResult:",
58
+ {
59
+ "required": True,
60
+ "retval": {"type": b"v"},
61
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
62
+ },
63
+ )
64
+ r(
65
+ b"NSObject",
66
+ b"requestDidComplete:",
67
+ {"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
68
+ )
69
+ r(
70
+ b"SNAudioFileAnalyzer",
71
+ b"addRequest:withObserver:error:",
72
+ {"retval": {"type": b"Z"}, "arguments": {4: {"type_modifier": b"o"}}},
73
+ )
74
+ r(
75
+ b"SNAudioFileAnalyzer",
76
+ b"analyzeWithCompletionHandler:",
77
+ {
78
+ "arguments": {
79
+ 2: {
80
+ "callable": {
81
+ "retval": {"type": b"v"},
82
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
83
+ }
84
+ }
85
+ }
86
+ },
87
+ )
88
+ r(
89
+ b"SNAudioFileAnalyzer",
90
+ b"initWithURL:error:",
91
+ {"arguments": {3: {"type_modifier": b"o"}}},
92
+ )
93
+ r(
94
+ b"SNAudioStreamAnalyzer",
95
+ b"addRequest:withObserver:error:",
96
+ {"retval": {"type": b"Z"}, "arguments": {4: {"type_modifier": b"o"}}},
97
+ )
98
+ r(
99
+ b"SNClassificationResult",
100
+ b"timeRange",
101
+ {"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
102
+ )
103
+ r(
104
+ b"SNClassifySoundRequest",
105
+ b"initWithClassifierIdentifier:error:",
106
+ {"arguments": {3: {"type_modifier": b"o"}}},
107
+ )
108
+ r(
109
+ b"SNClassifySoundRequest",
110
+ b"initWithMLModel:error:",
111
+ {"arguments": {3: {"type_modifier": b"o"}}},
112
+ )
113
+ r(
114
+ b"SNClassifySoundRequest",
115
+ b"setWindowDuration:",
116
+ {"arguments": {2: {"type": b"{_CMTime=qiIq}"}}},
117
+ )
118
+ r(
119
+ b"SNClassifySoundRequest",
120
+ b"windowDuration",
121
+ {"retval": {"type": b"{_CMTime=qiIq}"}},
122
+ )
123
+ r(
124
+ b"SNTimeDurationConstraint",
125
+ b"durationRange",
126
+ {"retval": {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}},
127
+ )
128
+ r(
129
+ b"SNTimeDurationConstraint",
130
+ b"initWithDurationRange:",
131
+ {"arguments": {2: {"type": b"{_CMTimeRange={_CMTime=qiIq}{_CMTime=qiIq}}"}}},
132
+ )
133
+ finally:
134
+ objc._updatingMetadata(False)
135
+
136
+ objc.registerNewKeywordsFromSelector("SNAudioFileAnalyzer", b"initWithURL:error:")
137
+ objc.registerNewKeywordsFromSelector("SNAudioStreamAnalyzer", b"initWithFormat:")
138
+ objc.registerNewKeywordsFromSelector(
139
+ "SNClassifySoundRequest", b"initWithClassifierIdentifier:error:"
140
+ )
141
+ objc.registerNewKeywordsFromSelector(
142
+ "SNClassifySoundRequest", b"initWithMLModel:error:"
143
+ )
144
+ objc.registerNewKeywordsFromSelector(
145
+ "SNTimeDurationConstraint", b"initWithDurationRange:"
146
+ )
147
+ objc.registerNewKeywordsFromSelector(
148
+ "SNTimeDurationConstraint", b"initWithEnumeratedDurations:"
149
+ )
150
+ expressions = {}
151
+
152
+ # END OF FILE
@@ -0,0 +1,56 @@
1
+ Metadata-Version: 2.1
2
+ Name: pyobjc-framework-SoundAnalysis
3
+ Version: 11.0
4
+ Summary: Wrappers for the framework SoundAnalysis on macOS
5
+ Home-page: https://github.com/ronaldoussoren/pyobjc
6
+ Author: Ronald Oussoren
7
+ Author-email: pyobjc-dev@lists.sourceforge.net
8
+ License: MIT License
9
+ Keywords: PyObjC,SoundAnalysis
10
+ Platform: MacOS X (>=10.15)
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Environment :: Console
13
+ Classifier: Environment :: MacOS X :: Cocoa
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Natural Language :: English
17
+ Classifier: Operating System :: MacOS :: MacOS X
18
+ Classifier: Programming Language :: Python
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3 :: Only
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
+ Classifier: Programming Language :: Python :: Implementation :: CPython
28
+ Classifier: Programming Language :: Objective C
29
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
+ Classifier: Topic :: Software Development :: User Interfaces
31
+ Requires-Python: >=3.9
32
+ Description-Content-Type: text/x-rst; charset=UTF-8
33
+ Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
34
+ Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
35
+ Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
36
+ Requires-Dist: pyobjc-core >=11.0
37
+ Requires-Dist: pyobjc-framework-Cocoa >=11.0
38
+
39
+
40
+ Wrappers for the "SoundAnalysis" framework on macOS.
41
+
42
+ These wrappers don't include documentation, please check Apple's documentation
43
+ for information on how to use this framework and PyObjC's documentation
44
+ for general tips and tricks regarding the translation between Python
45
+ and (Objective-)C frameworks
46
+
47
+
48
+ Project links
49
+ -------------
50
+
51
+ * `Documentation <https://pyobjc.readthedocs.io/en/latest/>`_
52
+
53
+ * `Issue Tracker <https://github.com/ronaldoussoren/pyobjc/issues>`_
54
+
55
+ * `Repository <https://github.com/ronaldoussoren/pyobjc/>`_
56
+
@@ -0,0 +1,7 @@
1
+ SoundAnalysis/__init__.py,sha256=CEIUJDV8U9EXPqdxosdy6NHLxKkhTfFFVMTtgB-F0Z0,1459
2
+ SoundAnalysis/_metadata.py,sha256=trrdcqcqKnrpHed859x6TJexJaU-KDgAacF_B6ktxKg,4131
3
+ pyobjc_framework_SoundAnalysis-11.0.dist-info/METADATA,sha256=nxPmVuWkhSxBLZwhNSPOD7s4LsMRlQK8ENisFtfT-U0,2255
4
+ pyobjc_framework_SoundAnalysis-11.0.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
5
+ pyobjc_framework_SoundAnalysis-11.0.dist-info/pyobjc-build-info.txt,sha256=R5YEsJoyZ8GByMQk4k_4WWEg6V4RNO715NMQwx6YaNI,85
6
+ pyobjc_framework_SoundAnalysis-11.0.dist-info/top_level.txt,sha256=fpMgGz8BBiSBz96VB7arYOUbClnFiiP5ao8575qSH1g,14
7
+ pyobjc_framework_SoundAnalysis-11.0.dist-info/RECORD,,
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.43.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py2-none-any
5
+ Tag: py3-none-any
6
+
@@ -0,0 +1,3 @@
1
+ macOS 15.3 (24D5040f)
2
+ Apple clang version 16.0.0 (clang-1600.0.26.6)
3
+ SDK: macOS 15.2
@@ -0,0 +1 @@
1
+ SoundAnalysis