pyobjc-framework-Speech 10.1__tar.gz → 10.3__tar.gz

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.
Files changed (44) hide show
  1. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/Lib/Speech/__init__.py +3 -0
  2. pyobjc_framework_speech-10.3/Lib/Speech/_metadata.py +211 -0
  3. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/Lib/pyobjc_framework_Speech.egg-info/PKG-INFO +3 -3
  4. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/Lib/pyobjc_framework_Speech.egg-info/SOURCES.txt +2 -4
  5. pyobjc_framework_speech-10.3/Lib/pyobjc_framework_Speech.egg-info/requires.txt +2 -0
  6. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/License.txt +1 -1
  7. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/PKG-INFO +3 -3
  8. pyobjc_framework_speech-10.3/metadata/raw/arm64-14.5.fwinfo +1787 -0
  9. pyobjc_framework_speech-10.3/metadata/raw/x86_64-14.5.fwinfo +1787 -0
  10. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/setup.py +1 -1
  11. pyobjc-framework-Speech-10.1/Lib/Speech/_metadata.py +0 -521
  12. pyobjc-framework-Speech-10.1/Lib/pyobjc_framework_Speech.egg-info/requires.txt +0 -2
  13. pyobjc-framework-Speech-10.1/metadata/raw/arm64-12.0.fwinfo +0 -1512
  14. pyobjc-framework-Speech-10.1/metadata/raw/arm64-14.0.fwinfo +0 -4452
  15. pyobjc-framework-Speech-10.1/metadata/raw/x86_64-12.0.fwinfo +0 -1512
  16. pyobjc-framework-Speech-10.1/metadata/raw/x86_64-14.0.fwinfo +0 -4452
  17. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/Lib/pyobjc_framework_Speech.egg-info/dependency_links.txt +0 -0
  18. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/Lib/pyobjc_framework_Speech.egg-info/not-zip-safe +0 -0
  19. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/Lib/pyobjc_framework_Speech.egg-info/top_level.txt +0 -0
  20. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/MANIFEST.in +0 -0
  21. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/Modules/_Speech.m +0 -0
  22. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/Modules/_Speech_protocols.m +0 -0
  23. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/Modules/pyobjc-api.h +0 -0
  24. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/Modules/pyobjc-compat.h +0 -0
  25. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/PyObjCTest/__init__.py +0 -0
  26. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/PyObjCTest/test_sferrors.py +0 -0
  27. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/PyObjCTest/test_sfspeechlanguagemodel.py +0 -0
  28. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/PyObjCTest/test_sfspeechrecognitionrequest.py +0 -0
  29. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/PyObjCTest/test_sfspeechrecognitionresult.py +0 -0
  30. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/PyObjCTest/test_sfspeechrecognitiontask.py +0 -0
  31. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/PyObjCTest/test_sfspeechrecognitiontaskhint.py +0 -0
  32. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/PyObjCTest/test_sfspeechrecognizer.py +0 -0
  33. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/PyObjCTest/test_speech.py +0 -0
  34. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/metadata/Speech.fwinfo +0 -0
  35. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/metadata/metadata.ini +0 -0
  36. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/metadata/raw/arm64-12.3.fwinfo +0 -0
  37. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/metadata/raw/arm64-13.0.fwinfo +0 -0
  38. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/metadata/raw/x86_64-10.15.fwinfo +0 -0
  39. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/metadata/raw/x86_64-10.16.fwinfo +0 -0
  40. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/metadata/raw/x86_64-12.3.fwinfo +0 -0
  41. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/metadata/raw/x86_64-13.0.fwinfo +0 -0
  42. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/pyobjc_setup.py +0 -0
  43. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/pyproject.toml +0 -0
  44. {pyobjc-framework-Speech-10.1 → pyobjc_framework_speech-10.3}/setup.cfg +0 -0
@@ -31,6 +31,9 @@ def _setup():
31
31
  globals()["__dir__"] = dir_func
32
32
  globals()["__getattr__"] = getattr_func
33
33
 
34
+ for cls, sel in (("SFSpeechURLRecognitionRequest", b"init"),):
35
+ objc.registerUnavailableMethod(cls, sel)
36
+
34
37
  del sys.modules["Speech._metadata"]
35
38
 
36
39
 
@@ -0,0 +1,211 @@
1
+ # This file is generated by objective.metadata
2
+ #
3
+ # Last update: Sat May 18 09:37:23 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 = """$SFSpeechErrorDomain$"""
34
+ enums = """$SFSpeechErrorCodeInternalServiceError@1$SFSpeechErrorCodeMalformedSupplementalModel@8$SFSpeechErrorCodeUndefinedTemplateClassName@7$SFSpeechRecognitionTaskHintConfirmation@3$SFSpeechRecognitionTaskHintDictation@1$SFSpeechRecognitionTaskHintSearch@2$SFSpeechRecognitionTaskHintUnspecified@0$SFSpeechRecognitionTaskStateCanceling@3$SFSpeechRecognitionTaskStateCompleted@4$SFSpeechRecognitionTaskStateFinishing@2$SFSpeechRecognitionTaskStateRunning@1$SFSpeechRecognitionTaskStateStarting@0$SFSpeechRecognizerAuthorizationStatusAuthorized@3$SFSpeechRecognizerAuthorizationStatusDenied@1$SFSpeechRecognizerAuthorizationStatusNotDetermined@0$SFSpeechRecognizerAuthorizationStatusRestricted@2$"""
35
+ misc.update(
36
+ {
37
+ "SFSpeechRecognitionTaskHint": NewType("SFSpeechRecognitionTaskHint", int),
38
+ "SFSpeechErrorCode": NewType("SFSpeechErrorCode", int),
39
+ "SFSpeechRecognitionTaskState": NewType("SFSpeechRecognitionTaskState", int),
40
+ "SFSpeechRecognizerAuthorizationStatus": NewType(
41
+ "SFSpeechRecognizerAuthorizationStatus", int
42
+ ),
43
+ }
44
+ )
45
+ misc.update({})
46
+ misc.update({})
47
+ r = objc.registerMetaDataForSelector
48
+ objc._updatingMetadata(True)
49
+ try:
50
+ r(
51
+ b"NSObject",
52
+ b"speechRecognitionDidDetectSpeech:",
53
+ {"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
54
+ )
55
+ r(
56
+ b"NSObject",
57
+ b"speechRecognitionTask:didFinishRecognition:",
58
+ {
59
+ "required": False,
60
+ "retval": {"type": b"v"},
61
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
62
+ },
63
+ )
64
+ r(
65
+ b"NSObject",
66
+ b"speechRecognitionTask:didFinishSuccessfully:",
67
+ {
68
+ "required": False,
69
+ "retval": {"type": b"v"},
70
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"Z"}},
71
+ },
72
+ )
73
+ r(
74
+ b"NSObject",
75
+ b"speechRecognitionTask:didHypothesizeTranscription:",
76
+ {
77
+ "required": False,
78
+ "retval": {"type": b"v"},
79
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
80
+ },
81
+ )
82
+ r(
83
+ b"NSObject",
84
+ b"speechRecognitionTaskFinishedReadingAudio:",
85
+ {"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
86
+ )
87
+ r(
88
+ b"NSObject",
89
+ b"speechRecognitionTaskWasCancelled:",
90
+ {"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
91
+ )
92
+ r(
93
+ b"NSObject",
94
+ b"speechRecognizer:availabilityDidChange:",
95
+ {
96
+ "required": False,
97
+ "retval": {"type": b"v"},
98
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"Z"}},
99
+ },
100
+ )
101
+ r(
102
+ b"SFSpeechLanguageModel",
103
+ b"prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:",
104
+ {
105
+ "arguments": {
106
+ 5: {
107
+ "callable": {
108
+ "retval": {"type": b"v"},
109
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
110
+ }
111
+ }
112
+ }
113
+ },
114
+ )
115
+ r(
116
+ b"SFSpeechLanguageModel",
117
+ b"prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:",
118
+ {
119
+ "arguments": {
120
+ 5: {"type": b"Z"},
121
+ 6: {
122
+ "callable": {
123
+ "retval": {"type": b"v"},
124
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
125
+ }
126
+ },
127
+ }
128
+ },
129
+ )
130
+ r(b"SFSpeechRecognitionRequest", b"addsPunctuation", {"retval": {"type": b"Z"}})
131
+ r(
132
+ b"SFSpeechRecognitionRequest",
133
+ b"requiresOnDeviceRecognition",
134
+ {"retval": {"type": b"Z"}},
135
+ )
136
+ r(
137
+ b"SFSpeechRecognitionRequest",
138
+ b"setAddsPunctuation:",
139
+ {"arguments": {2: {"type": b"Z"}}},
140
+ )
141
+ r(
142
+ b"SFSpeechRecognitionRequest",
143
+ b"setRequiresOnDeviceRecognition:",
144
+ {"arguments": {2: {"type": b"Z"}}},
145
+ )
146
+ r(
147
+ b"SFSpeechRecognitionRequest",
148
+ b"setShouldReportPartialResults:",
149
+ {"arguments": {2: {"type": b"Z"}}},
150
+ )
151
+ r(
152
+ b"SFSpeechRecognitionRequest",
153
+ b"shouldReportPartialResults",
154
+ {"retval": {"type": b"Z"}},
155
+ )
156
+ r(b"SFSpeechRecognitionResult", b"isFinal", {"retval": {"type": b"Z"}})
157
+ r(b"SFSpeechRecognitionTask", b"isCancelled", {"retval": {"type": b"Z"}})
158
+ r(b"SFSpeechRecognitionTask", b"isFinishing", {"retval": {"type": b"Z"}})
159
+ r(b"SFSpeechRecognizer", b"isAvailable", {"retval": {"type": b"Z"}})
160
+ r(
161
+ b"SFSpeechRecognizer",
162
+ b"recognitionTaskWithRequest:resultHandler:",
163
+ {
164
+ "arguments": {
165
+ 3: {
166
+ "callable": {
167
+ "retval": {"type": b"v"},
168
+ "arguments": {
169
+ 0: {"type": b"^v"},
170
+ 1: {"type": b"@"},
171
+ 2: {"type": b"@"},
172
+ },
173
+ }
174
+ }
175
+ }
176
+ },
177
+ )
178
+ r(
179
+ b"SFSpeechRecognizer",
180
+ b"requestAuthorization:",
181
+ {
182
+ "arguments": {
183
+ 2: {
184
+ "callable": {
185
+ "retval": {"type": b"v"},
186
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"q"}},
187
+ }
188
+ }
189
+ }
190
+ },
191
+ )
192
+ r(
193
+ b"SFSpeechRecognizer",
194
+ b"setSupportsOnDeviceRecognition:",
195
+ {"arguments": {2: {"type": b"Z"}}},
196
+ )
197
+ r(b"SFSpeechRecognizer", b"supportsOnDeviceRecognition", {"retval": {"type": b"Z"}})
198
+ finally:
199
+ objc._updatingMetadata(False)
200
+
201
+ objc.registerNewKeywordsFromSelector(
202
+ "SFSpeechLanguageModelConfiguration", b"initWithLanguageModel:"
203
+ )
204
+ objc.registerNewKeywordsFromSelector(
205
+ "SFSpeechLanguageModelConfiguration", b"initWithLanguageModel:vocabulary:"
206
+ )
207
+ objc.registerNewKeywordsFromSelector("SFSpeechRecognizer", b"initWithLocale:")
208
+ objc.registerNewKeywordsFromSelector("SFSpeechURLRecognitionRequest", b"initWithURL:")
209
+ expressions = {}
210
+
211
+ # END OF FILE
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-Speech
3
- Version: 10.1
3
+ Version: 10.3
4
4
  Summary: Wrappers for the framework Speech on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -30,8 +30,8 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
30
  Classifier: Topic :: Software Development :: User Interfaces
31
31
  Requires-Python: >=3.8
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=10.1
34
- Requires-Dist: pyobjc-framework-Cocoa>=10.1
33
+ Requires-Dist: pyobjc-core>=10.3
34
+ Requires-Dist: pyobjc-framework-Cocoa>=10.3
35
35
  Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
36
36
  Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
37
37
  Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
@@ -26,13 +26,11 @@ PyObjCTest/test_sfspeechrecognizer.py
26
26
  PyObjCTest/test_speech.py
27
27
  metadata/Speech.fwinfo
28
28
  metadata/metadata.ini
29
- metadata/raw/arm64-12.0.fwinfo
30
29
  metadata/raw/arm64-12.3.fwinfo
31
30
  metadata/raw/arm64-13.0.fwinfo
32
- metadata/raw/arm64-14.0.fwinfo
31
+ metadata/raw/arm64-14.5.fwinfo
33
32
  metadata/raw/x86_64-10.15.fwinfo
34
33
  metadata/raw/x86_64-10.16.fwinfo
35
- metadata/raw/x86_64-12.0.fwinfo
36
34
  metadata/raw/x86_64-12.3.fwinfo
37
35
  metadata/raw/x86_64-13.0.fwinfo
38
- metadata/raw/x86_64-14.0.fwinfo
36
+ metadata/raw/x86_64-14.5.fwinfo
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=10.3
2
+ pyobjc-framework-Cocoa>=10.3
@@ -1,7 +1,7 @@
1
1
  (This is the MIT license, note that libffi-src is a separate product with its own license)
2
2
 
3
3
  Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
4
- Copyright 2003-2022 - Ronald Oussoren
4
+ Copyright 2003-2024 - Ronald Oussoren
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
7
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-Speech
3
- Version: 10.1
3
+ Version: 10.3
4
4
  Summary: Wrappers for the framework Speech on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -30,8 +30,8 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
30
  Classifier: Topic :: Software Development :: User Interfaces
31
31
  Requires-Python: >=3.8
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=10.1
34
- Requires-Dist: pyobjc-framework-Cocoa>=10.1
33
+ Requires-Dist: pyobjc-core>=10.3
34
+ Requires-Dist: pyobjc-framework-Cocoa>=10.3
35
35
 
36
36
 
37
37
  Wrappers for the "Speech" framework on macOS.