Skip to content

Speech macOS xcode26.0 b2

Alex Soto edited this page Jun 24, 2025 · 1 revision

#Speech.framework

diff -ruN /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Speech.framework/Headers/SFSpeechLanguageModel.h /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Speech.framework/Headers/SFSpeechLanguageModel.h
--- /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Speech.framework/Headers/SFSpeechLanguageModel.h	2025-05-24 04:29:46
+++ /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Speech.framework/Headers/SFSpeechLanguageModel.h	2025-06-14 04:00:20
@@ -26,11 +26,17 @@
 /** The location of a compiled vocabulary file. */
 @property (nonatomic, readonly, nullable, copy) NSURL *vocabulary;
 
+/** The relative weight of the language model customization. Value must be between 0.0 and 1.0 inclusive. */
+@property (nonatomic, readonly, nullable, copy) NSNumber *weight API_AVAILABLE(ios(26.0), macos(26.0), tvos(26.0));
+
 /** Creates a configuration with the location of a language model file. */
 - (instancetype)initWithLanguageModel:(NSURL *)languageModel;
 
 /** Creates a configuration with the locations of language model and vocabulary files. */
 - (instancetype)initWithLanguageModel:(NSURL *)languageModel vocabulary:(NSURL * __nullable)vocabulary;
+
+/** Creates a configuration with the locations of language model and vocabulary files, and custom weight. */
+- (instancetype)initWithLanguageModel:(NSURL *)languageModel vocabulary:(NSURL * __nullable)vocabulary weight:(NSNumber * __nullable)weight API_AVAILABLE(ios(26.0), macos(26.0), tvos(26.0));
 
 @end
 
Clone this wiki locally