Skip to content

Speech iOS xcode15.0 b2

Haritha Mohan edited this page Sep 20, 2023 · 3 revisions

#Speech.framework https://github.com/xamarin/xamarin-macios/pull/19075

diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFAnalysisContext_Private.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFAnalysisContext_Private.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFAnalysisContext_Private.h	2023-05-19 21:38:42
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFAnalysisContext_Private.h	2023-06-08 15:19:42
@@ -20,7 +20,7 @@
  */
 
 NS_SWIFT_SENDABLE
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFContextualNamedEntity : NSObject
 // Wrapper around ContextualNamedEntity.
 
@@ -35,7 +35,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFAnalysisContext : NSObject
 // Wrapper around AnalysisContext.
 
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFCommandRecognizerArgumentPresence.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFCommandRecognizerArgumentPresence.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFCommandRecognizerArgumentPresence.h	2023-05-19 21:38:42
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFCommandRecognizerArgumentPresence.h	2023-06-08 15:19:42
@@ -14,4 +14,4 @@
     SFCommandRecognizerArgumentPresencePresentMaybeIncomplete = 1,
     SFCommandRecognizerArgumentPresenceMissingMaybeExpected = 2,
     SFCommandRecognizerArgumentPresenceMissing = 3
-} API_AVAILABLE(macos(14), ios(17), macCatalyst(17));
+} API_AVAILABLE(macos(14), ios(17));
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFEARResultType_Private.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFEARResultType_Private.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFEARResultType_Private.h	2023-05-19 21:38:41
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFEARResultType_Private.h	2023-06-08 15:19:42
@@ -24,4 +24,4 @@
     /// An otherwise-empty result indicating that recognition has paused.
     _SFEARResultTypePauseConfirmation = 4
 
-} API_AVAILABLE(macos(14), ios(17), macCatalyst(17));
+} API_AVAILABLE(macos(14), ios(17));
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFErrors.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFErrors.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFErrors.h	2023-05-19 21:38:40
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFErrors.h	2023-06-08 15:19:41
@@ -13,7 +13,7 @@
 extern NSErrorDomain const SFSpeechErrorDomain;
 typedef NS_ERROR_ENUM (SFSpeechErrorDomain, SFSpeechErrorCode) {
     /** Error may include `NSUnderlyingErrorKey` in `userInfo`.*/
-    SFSpeechErrorCodeInternalServiceError,
+    SFSpeechErrorCodeInternalServiceError = 1,
 
     /** Audio input timestamp overlaps or precedes prior audio input. */
     SFSpeechErrorCodeAudioDisordered,
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFSpeechAnalyzer_Private.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFSpeechAnalyzer_Private.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFSpeechAnalyzer_Private.h	2023-05-19 21:38:41
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFSpeechAnalyzer_Private.h	2023-06-08 15:10:22
@@ -41,7 +41,7 @@
 @protocol _SFSpeechAnalyzerEndpointingResultDelegate;
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFSpeechAnalyzer : NSObject
 
 + (nullable _SFModelDownloadRequest *)modelDownloadRequestForClientIdentifier:(NSString *)clientIdentifier
@@ -66,37 +66,6 @@
         contextualNamedEntities:(NSArray <_SFContextualNamedEntity *> *_Nullable)contextualNamedEntities
         didChangeVolatileRange:(void (^ _Nullable)(CMTimeRange, BOOL, BOOL))didChangeVolatileRange;
 
-// TODO: Remove once Core Speech updated to use initializer with contextualNamedEntities and w/o personalizedLMPath.
-- (instancetype)initWithClientIdentifier:(NSString *)clientIdentifier
-        inputSequence:(_SFInputSequencer *)inputSequence
-        audioFormat:(AVAudioFormat *)audioFormat
-        transcriberResultDelegate:(id<_SFSpeechAnalyzerTranscriberResultDelegate>)transcriberResultDelegate
-        endpointingResultDelegate:(id<_SFSpeechAnalyzerEndpointingResultDelegate>)endpointingResultDelegate
-        queue:(NSOperationQueue *)queue
-        transcriberOptions:(_SFSpeechAnalyzerTranscriberOptions *)transcriberOptions
-        commandRecognizerOptions:(_SFSpeechAnalyzerCommandRecognizerOptions *)commandRecognizerOptions
-        options:(_SFSpeechAnalyzerOptions *_Nullable)options
-        restrictedLogging:(BOOL)restrictedLogging
-        geoLMRegionID:(NSString *_Nullable)geoLMRegionID
-        personalizedLMPath:(NSString *_Nullable)personalizedLMPath
-        didChangeVolatileRange:(void (^ _Nullable)(CMTimeRange, BOOL, BOOL))didChangeVolatileRange;
-
-// TODO: Remove once Core Speech updated to use initializer w/o personalizedLMPath.
-- (instancetype)initWithClientIdentifier:(NSString *)clientIdentifier
-        inputSequence:(_SFInputSequencer *)inputSequence
-        audioFormat:(AVAudioFormat *)audioFormat
-        transcriberResultDelegate:(id<_SFSpeechAnalyzerTranscriberResultDelegate>)transcriberResultDelegate
-        endpointingResultDelegate:(id<_SFSpeechAnalyzerEndpointingResultDelegate>)endpointingResultDelegate
-        queue:(NSOperationQueue *)queue
-        transcriberOptions:(_SFSpeechAnalyzerTranscriberOptions *)transcriberOptions
-        commandRecognizerOptions:(_SFSpeechAnalyzerCommandRecognizerOptions *)commandRecognizerOptions
-        options:(_SFSpeechAnalyzerOptions *_Nullable)options
-        restrictedLogging:(BOOL)restrictedLogging
-        geoLMRegionID:(NSString *_Nullable)geoLMRegionID
-        contextualNamedEntities:(NSArray <_SFContextualNamedEntity *> *_Nullable)contextualNamedEntities
-        personalizedLMPath:(NSString *_Nullable)personalizedLMPath
-        didChangeVolatileRange:(void (^ _Nullable)(CMTimeRange, BOOL, BOOL))didChangeVolatileRange;
-
 - (instancetype)init NS_UNAVAILABLE;
 
 // The input sequence cannot be changed after the analyzer is created.
@@ -152,7 +121,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 NS_SWIFT_SENDABLE
 @protocol _SFSpeechAnalyzerTranscriberResultDelegate
 - (void)speechAnalyzer:(_SFSpeechAnalyzer *)speechAnalyzer
@@ -165,7 +134,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 NS_SWIFT_SENDABLE
 @protocol _SFSpeechAnalyzerEndpointingResultDelegate
 - (void)speechAnalyzer:(_SFSpeechAnalyzer *)speechAnalyzer
@@ -175,7 +144,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFModelDownloadRequest : NSObject
 // Wrapper for ModelDownloadRequest.
 
@@ -186,7 +155,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFSpeechAnalyzerTranscriberOptions : NSObject
 
 @property (nonatomic, copy) NSLocale *locale;
@@ -202,7 +171,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFSpeechAnalyzerCommandRecognizerOptions : NSObject
 
 @property (nonatomic, copy) EARVoiceCommandActiveSet *voiceCommandActiveSet;
@@ -212,7 +181,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFSpeechAnalyzerOptions : NSObject<NSCopying>
 // corresponds to AnalysisOptions
 
@@ -228,7 +197,7 @@
 
 @end
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFSpeechAnalyzerOptionsLoggingInfo : NSObject<NSCopying>
 
 @property (nonatomic, readonly, copy) NSUUID *asrID;
@@ -239,7 +208,7 @@
 
 @end
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFSpeechAnalyzerOptionsPowerContext : NSObject<NSCopying>
 
 @property (nonatomic, readonly, copy) NSString *ane;
@@ -268,16 +237,10 @@
         speechProfileURLs:(NSArray<NSURL *> *)speechProfileURLs
         taskForMemoryLock:(NSString *_Nullable)taskForMemoryLock;
 
-// TODO: Remove once CESA provides speechProfileURLs parameter.
-- (instancetype)initWithSupplementalModelURL:(NSURL *_Nullable)supplementalModelURL
-        farField:(BOOL)farField
-        modelOverrideURL:(NSURL *_Nullable)modelOverrideURL
-        taskForMemoryLock:(NSString *_Nullable)taskForMemoryLock;
-
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFTranscriberResult : NSObject
 @property (nonatomic, readonly) CMTimeRange range;
 @property (nonatomic, readonly, copy) _STTranscriberMultisegmentResult *normalizedTranscriberMultisegmentResult;
@@ -293,7 +256,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _STTranscriberMultisegmentResult : NSObject<NSCopying>
 // corresponds to Transcriber.MultisegmentResult, except for the range property.
 
@@ -312,7 +275,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFAnalyzerTranscriptionSegment : NSObject
 // corresponds to TranscriptionSegment
 // Similar to _SFTranscriptionSegment, but in a different format.
@@ -326,7 +289,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _STCommandRecognizerResult : NSObject<NSCopying>
 // Corresponds to CommandRecognizer.Result, except for the range property.
 
@@ -337,7 +300,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFCommandRecognizerInterpretation : NSObject
 // corresponds to CommandRecognizer.Interpretation
 
@@ -356,7 +319,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFCommandRecognizerArgument : NSObject
 // corresponds to CommandRecognizer.Argument
 
@@ -371,7 +334,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFEndpointingResult : NSObject
 // corresponds to EndpointDetector.ModuleOutput
 
@@ -390,7 +353,7 @@
 @end
 
 
-API_AVAILABLE(macos(14), ios(17), macCatalyst(17))
+API_AVAILABLE(macos(14), ios(17))
 @interface _SFToken : NSObject<NSCopying>
 
 @property(nonatomic, readonly, copy) NSString *text;
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFTranscriptionOptions_Private.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFTranscriptionOptions_Private.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFTranscriptionOptions_Private.h	2023-05-19 21:38:42
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFTranscriptionOptions_Private.h	2023-06-08 15:19:42
@@ -14,4 +14,4 @@
     _SFTranscriptionOptionsPunctuation = 1UL << 2,
     _SFTranscriptionOptionsEmoji = 1UL << 3,
     _SFTranscriptionOptionsEtiquetteReplacements = 1UL << 4,
-} API_AVAILABLE(macos(14), ios(17), macCatalyst(17));
+} API_AVAILABLE(macos(14), ios(17));
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFTranscriptionResultAttributeOptions_Private.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFTranscriptionResultAttributeOptions_Private.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFTranscriptionResultAttributeOptions_Private.h	2023-05-19 21:38:42
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Speech.framework/Headers/SFTranscriptionResultAttributeOptions_Private.h	2023-06-08 15:19:42
@@ -11,4 +11,4 @@
 typedef NS_OPTIONS(NSUInteger, _SFTranscriptionResultAttributeOptions) {
     _SFTranscriptionResultAttributeOptionsConfidence = 1UL << 0,
     _SFTranscriptionResultAttributeOptionsCmTime = 1UL << 1,
-} API_AVAILABLE(macos(14), ios(17), macCatalyst(17));
+} API_AVAILABLE(macos(14), ios(17));
Clone this wiki locally