Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created September 21, 2023 01:41
Show Gist options
  • Save vs-mobiletools-engineering-service2/cd760e2a4298859928cfcb2b93350103 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/cd760e2a4298859928cfcb2b93350103 to your computer and use it in GitHub Desktop.
generator-diff/generator.diff
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
index 7dbb097..8be8c1c 100644
--- a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("bgen")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+7431474d28af6d84dac7a76e46c1eb0f9b50ac71")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+479fe99d005e06f723c1d332e3a87af073771fe9")]
[assembly: System.Reflection.AssemblyProductAttribute("bgen")]
[assembly: System.Reflection.AssemblyTitleAttribute("bgen")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
index 862ea41..6b3af7b 100644
--- a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
@@ -1 +1 @@
-{"documents":{"/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/*":"https://raw.githubusercontent.com/xamarin/xamarin-macios/7431474d28af6d84dac7a76e46c1eb0f9b50ac71/*","/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/external/api-tools/*":"https://raw.githubusercontent.com/rolfbjarne/api-tools/c7d5208967d6d46fdebcac82ade488f00e1fcc50/*","/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/external/macios-binaries/*":"https://raw.githubusercontent.com/xamarin/macios-binaries/7813391e75d7373ee073ef2d5716e3c607c8636a/*","/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/external/MonoTouch.Dialog/*":"https://raw.githubusercontent.com/migueldeicaza/MonoTouch.Dialog/f500f9a48dbf856c693b255078e1507cf1e8edde/*","/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/external/opentk/*":"https://raw.githubusercontent.com/mono/opentk/396bc90c7ac2e7ce442840a5e8bd91e5e79b381e/*","/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/external/Touch.Unit/*":"https://raw.githubusercontent.com/spouliot/Touch.Unit/5739adefc261b7bfeb70ff718c7b2d97bdfa42ee/*","/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/external/Xamarin.MacDev/*":"https://raw.githubusercontent.com/xamarin/Xamarin.MacDev/b454d454a687d9aa26a382ad16f1a9361b06b074/*"}}
\ No newline at end of file
+{"documents":{"/Users/builder/azdo/_work/2/s/xamarin-macios/*":"https://raw.githubusercontent.com/xamarin/xamarin-macios/479fe99d005e06f723c1d332e3a87af073771fe9/*","/Users/builder/azdo/_work/2/s/xamarin-macios/external/api-tools/*":"https://raw.githubusercontent.com/rolfbjarne/api-tools/c7d5208967d6d46fdebcac82ade488f00e1fcc50/*","/Users/builder/azdo/_work/2/s/xamarin-macios/external/macios-binaries/*":"https://raw.githubusercontent.com/xamarin/macios-binaries/7813391e75d7373ee073ef2d5716e3c607c8636a/*","/Users/builder/azdo/_work/2/s/xamarin-macios/external/MonoTouch.Dialog/*":"https://raw.githubusercontent.com/migueldeicaza/MonoTouch.Dialog/f500f9a48dbf856c693b255078e1507cf1e8edde/*","/Users/builder/azdo/_work/2/s/xamarin-macios/external/opentk/*":"https://raw.githubusercontent.com/mono/opentk/396bc90c7ac2e7ce442840a5e8bd91e5e79b381e/*","/Users/builder/azdo/_work/2/s/xamarin-macios/external/Touch.Unit/*":"https://raw.githubusercontent.com/spouliot/Touch.Unit/5739adefc261b7bfeb70ff718c7b2d97bdfa42ee/*","/Users/builder/azdo/_work/2/s/xamarin-macios/external/Xamarin.MacDev/*":"https://raw.githubusercontent.com/xamarin/Xamarin.MacDev/b454d454a687d9aa26a382ad16f1a9361b06b074/*"}}
\ No newline at end of file
diff --git a/old/dotnet/ios/generated-sources/ObjCRuntime/Libraries.g.cs b/new/dotnet/ios/generated-sources/ObjCRuntime/Libraries.g.cs
index 6d923aa..d7aa66d 100644
--- a/old/dotnet/ios/generated-sources/ObjCRuntime/Libraries.g.cs
+++ b/new/dotnet/ios/generated-sources/ObjCRuntime/Libraries.g.cs
@@ -330,6 +330,9 @@ namespace ObjCRuntime {
static public class SoundAnalysis {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.SoundAnalysisLibrary, 0);
}
+ static public class Speech {
+ static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.SpeechLibrary, 0);
+ }
static public class StoreKit {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.StoreKitLibrary, 0);
}
diff --git a/new/dotnet/ios/generated-sources/Speech/SFAnalysisContextTag.g.cs b/new/dotnet/ios/generated-sources/Speech/SFAnalysisContextTag.g.cs
new file mode 100644
index 0000000..7af078b
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/Speech/SFAnalysisContextTag.g.cs
@@ -0,0 +1,87 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ public unsafe partial class SFAnalysisContextTag {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _LeftContext;
+ [Field ("SFAnalysisContextTagLeftContext", "Speech")]
+ public static NSString LeftContext {
+ get {
+ if (_LeftContext is null)
+ _LeftContext = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagLeftContext")!;
+ return _LeftContext;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _RightContext;
+ [Field ("SFAnalysisContextTagRightContext", "Speech")]
+ public static NSString RightContext {
+ get {
+ if (_RightContext is null)
+ _RightContext = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagRightContext")!;
+ return _RightContext;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _SelectedText;
+ [Field ("SFAnalysisContextTagSelectedText", "Speech")]
+ public static NSString SelectedText {
+ get {
+ if (_SelectedText is null)
+ _SelectedText = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagSelectedText")!;
+ return _SelectedText;
+ }
+ }
+ } /* class SFAnalysisContextTag */
+}
diff --git a/new/dotnet/ios/generated-sources/Speech/SFSpeechErrorCode.g.cs b/new/dotnet/ios/generated-sources/Speech/SFSpeechErrorCode.g.cs
new file mode 100644
index 0000000..2010e63
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/Speech/SFSpeechErrorCode.g.cs
@@ -0,0 +1,75 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ [Native]
+ public enum SFSpeechErrorCode : long {
+ InternalServiceError = 1,
+ UndefinedTemplateClassName = 7,
+ MalformedSupplementalModel = 8,
+ }
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class SFSpeechErrorCodeExtensions {
+ [Field ("SFSpeechErrorDomain", "Speech")]
+ static NSString? _domain;
+ public static NSString? GetDomain (this SFSpeechErrorCode self)
+ {
+ if (_domain is null)
+ _domain = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFSpeechErrorDomain");
+ return _domain;
+ }
+ }
+}
diff --git a/new/dotnet/ios/generated-sources/Speech/SFSpeechLanguageModel.g.cs b/new/dotnet/ios/generated-sources/Speech/SFSpeechLanguageModel.g.cs
new file mode 100644
index 0000000..a74317c
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/Speech/SFSpeechLanguageModel.g.cs
@@ -0,0 +1,143 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Register("SFSpeechLanguageModel", true)]
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ public unsafe partial class SFSpeechLanguageModel : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("SFSpeechLanguageModel");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected SFSpeechLanguageModel (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal SFSpeechLanguageModel (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static void PrepareCustomModel (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V0))]global::System.Action<NSError> completion)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var asset__handle__ = asset!.GetNonNullHandle (nameof (asset));
+ if (clientIdentifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (clientIdentifier));
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (completion is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completion));
+ var nsclientIdentifier = CFString.CreateNative (clientIdentifier);
+ using var block_completion = Trampolines.SDActionArity1V0.CreateBlock (completion);
+ BlockLiteral *block_ptr_completion = &block_completion;
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NativeHandle (class_ptr, Selector.GetHandle ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:"), asset__handle__, nsclientIdentifier, configuration__handle__, (IntPtr) block_ptr_completion);
+ CFString.ReleaseNative (nsclientIdentifier);
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static Task PrepareCustomModelAsync (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ PrepareCustomModel(asset, clientIdentifier, configuration, (obj_) => {
+ if (obj_ is not null)
+ tcs.SetException (new NSErrorException(obj_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static void PrepareCustomModel (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V0))]global::System.Action<NSError> completion)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var asset__handle__ = asset!.GetNonNullHandle (nameof (asset));
+ if (clientIdentifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (clientIdentifier));
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (completion is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completion));
+ var nsclientIdentifier = CFString.CreateNative (clientIdentifier);
+ using var block_completion = Trampolines.SDActionArity1V0.CreateBlock (completion);
+ BlockLiteral *block_ptr_completion = &block_completion;
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_bool_NativeHandle (class_ptr, Selector.GetHandle ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:"), asset__handle__, nsclientIdentifier, configuration__handle__, ignoresCache, (IntPtr) block_ptr_completion);
+ CFString.ReleaseNative (nsclientIdentifier);
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static Task PrepareCustomModelAsync (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ PrepareCustomModel(asset, clientIdentifier, configuration, ignoresCache, (obj_) => {
+ if (obj_ is not null)
+ tcs.SetException (new NSErrorException(obj_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ } /* class SFSpeechLanguageModel */
+}
diff --git a/new/dotnet/ios/generated-sources/Speech/SFSpeechLanguageModelConfiguration.g.cs b/new/dotnet/ios/generated-sources/Speech/SFSpeechLanguageModelConfiguration.g.cs
new file mode 100644
index 0000000..cdeb70b
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/Speech/SFSpeechLanguageModelConfiguration.g.cs
@@ -0,0 +1,182 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Register("SFSpeechLanguageModelConfiguration", true)]
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ public unsafe partial class SFSpeechLanguageModelConfiguration : NSObject, INSCopying {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("SFSpeechLanguageModelConfiguration");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public SFSpeechLanguageModelConfiguration () : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ #endif
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected SFSpeechLanguageModelConfiguration (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal SFSpeechLanguageModelConfiguration (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithLanguageModel:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public SFSpeechLanguageModelConfiguration (NSUrl languageModel)
+ : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var languageModel__handle__ = languageModel!.GetNonNullHandle (nameof (languageModel));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("initWithLanguageModel:"), languageModel__handle__), "initWithLanguageModel:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("initWithLanguageModel:"), languageModel__handle__), "initWithLanguageModel:");
+ }
+ #endif
+ }
+ [Export ("initWithLanguageModel:vocabulary:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public SFSpeechLanguageModelConfiguration (NSUrl languageModel, NSUrl? vocabulary)
+ : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var languageModel__handle__ = languageModel!.GetNonNullHandle (nameof (languageModel));
+ var vocabulary__handle__ = vocabulary.GetHandle ();
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("initWithLanguageModel:vocabulary:"), languageModel__handle__, vocabulary__handle__), "initWithLanguageModel:vocabulary:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("initWithLanguageModel:vocabulary:"), languageModel__handle__, vocabulary__handle__), "initWithLanguageModel:vocabulary:");
+ }
+ #endif
+ }
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ }
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl LanguageModel {
+ [Export ("languageModel", ArgumentSemantic.Copy)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("languageModel")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("languageModel")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl? Vocabulary {
+ [Export ("vocabulary", ArgumentSemantic.Copy)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("vocabulary")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("vocabulary")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class SFSpeechLanguageModelConfiguration */
+}
diff --git a/old/dotnet/ios/generated-sources/Speech/SFSpeechRecognitionRequest.g.cs b/new/dotnet/ios/generated-sources/Speech/SFSpeechRecognitionRequest.g.cs
index 3180b7f..2dfd767 100644
--- a/old/dotnet/ios/generated-sources/Speech/SFSpeechRecognitionRequest.g.cs
+++ b/new/dotnet/ios/generated-sources/Speech/SFSpeechRecognitionRequest.g.cs
@@ -123,6 +123,39 @@ namespace Speech {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ public virtual SFSpeechLanguageModelConfiguration? CustomizedLanguageModel {
+ [Export ("customizedLanguageModel", ArgumentSemantic.Copy)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ SFSpeechLanguageModelConfiguration? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<SFSpeechLanguageModelConfiguration> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("customizedLanguageModel")))!;
+ } else {
+ ret = Runtime.GetNSObject<SFSpeechLanguageModelConfiguration> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("customizedLanguageModel")))!;
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setCustomizedLanguageModel:", ArgumentSemantic.Copy)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setCustomizedLanguageModel:"), value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setCustomizedLanguageModel:"), value__handle__);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[ObsoletedOSPlatform ("ios15.0")]
[ObsoletedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("ios")]
diff --git a/old/dotnet/maccatalyst/generated-sources/ObjCRuntime/Libraries.g.cs b/new/dotnet/maccatalyst/generated-sources/ObjCRuntime/Libraries.g.cs
index 1505806..5744477 100644
--- a/old/dotnet/maccatalyst/generated-sources/ObjCRuntime/Libraries.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/ObjCRuntime/Libraries.g.cs
@@ -309,6 +309,9 @@ namespace ObjCRuntime {
static public class SoundAnalysis {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.SoundAnalysisLibrary, 0);
}
+ static public class Speech {
+ static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.SpeechLibrary, 0);
+ }
static public class StoreKit {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.StoreKitLibrary, 0);
}
diff --git a/new/dotnet/maccatalyst/generated-sources/Speech/SFAnalysisContextTag.g.cs b/new/dotnet/maccatalyst/generated-sources/Speech/SFAnalysisContextTag.g.cs
new file mode 100644
index 0000000..87609ac
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/Speech/SFAnalysisContextTag.g.cs
@@ -0,0 +1,87 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ public unsafe partial class SFAnalysisContextTag {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _LeftContext;
+ [Field ("SFAnalysisContextTagLeftContext", "Speech")]
+ public static NSString LeftContext {
+ get {
+ if (_LeftContext is null)
+ _LeftContext = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagLeftContext")!;
+ return _LeftContext;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _RightContext;
+ [Field ("SFAnalysisContextTagRightContext", "Speech")]
+ public static NSString RightContext {
+ get {
+ if (_RightContext is null)
+ _RightContext = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagRightContext")!;
+ return _RightContext;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _SelectedText;
+ [Field ("SFAnalysisContextTagSelectedText", "Speech")]
+ public static NSString SelectedText {
+ get {
+ if (_SelectedText is null)
+ _SelectedText = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagSelectedText")!;
+ return _SelectedText;
+ }
+ }
+ } /* class SFAnalysisContextTag */
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/Speech/SFSpeechErrorCode.g.cs b/new/dotnet/maccatalyst/generated-sources/Speech/SFSpeechErrorCode.g.cs
new file mode 100644
index 0000000..b15aeaa
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/Speech/SFSpeechErrorCode.g.cs
@@ -0,0 +1,75 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ [Native]
+ public enum SFSpeechErrorCode : long {
+ InternalServiceError = 1,
+ UndefinedTemplateClassName = 7,
+ MalformedSupplementalModel = 8,
+ }
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class SFSpeechErrorCodeExtensions {
+ [Field ("SFSpeechErrorDomain", "Speech")]
+ static NSString? _domain;
+ public static NSString? GetDomain (this SFSpeechErrorCode self)
+ {
+ if (_domain is null)
+ _domain = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFSpeechErrorDomain");
+ return _domain;
+ }
+ }
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/Speech/SFSpeechLanguageModel.g.cs b/new/dotnet/maccatalyst/generated-sources/Speech/SFSpeechLanguageModel.g.cs
new file mode 100644
index 0000000..fbdc828
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/Speech/SFSpeechLanguageModel.g.cs
@@ -0,0 +1,129 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Register("SFSpeechLanguageModel", true)]
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ public unsafe partial class SFSpeechLanguageModel : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("SFSpeechLanguageModel");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected SFSpeechLanguageModel (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal SFSpeechLanguageModel (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static void PrepareCustomModel (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V17))]global::System.Action<NSError> completion)
+ {
+ var asset__handle__ = asset!.GetNonNullHandle (nameof (asset));
+ if (clientIdentifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (clientIdentifier));
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (completion is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completion));
+ var nsclientIdentifier = CFString.CreateNative (clientIdentifier);
+ using var block_completion = Trampolines.SDActionArity1V17.CreateBlock (completion);
+ BlockLiteral *block_ptr_completion = &block_completion;
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NativeHandle (class_ptr, Selector.GetHandle ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:"), asset__handle__, nsclientIdentifier, configuration__handle__, (IntPtr) block_ptr_completion);
+ CFString.ReleaseNative (nsclientIdentifier);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static Task PrepareCustomModelAsync (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ PrepareCustomModel(asset, clientIdentifier, configuration, (obj_) => {
+ if (obj_ is not null)
+ tcs.SetException (new NSErrorException(obj_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static void PrepareCustomModel (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V17))]global::System.Action<NSError> completion)
+ {
+ var asset__handle__ = asset!.GetNonNullHandle (nameof (asset));
+ if (clientIdentifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (clientIdentifier));
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (completion is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completion));
+ var nsclientIdentifier = CFString.CreateNative (clientIdentifier);
+ using var block_completion = Trampolines.SDActionArity1V17.CreateBlock (completion);
+ BlockLiteral *block_ptr_completion = &block_completion;
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_bool_NativeHandle (class_ptr, Selector.GetHandle ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:"), asset__handle__, nsclientIdentifier, configuration__handle__, ignoresCache, (IntPtr) block_ptr_completion);
+ CFString.ReleaseNative (nsclientIdentifier);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static Task PrepareCustomModelAsync (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ PrepareCustomModel(asset, clientIdentifier, configuration, ignoresCache, (obj_) => {
+ if (obj_ is not null)
+ tcs.SetException (new NSErrorException(obj_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ } /* class SFSpeechLanguageModel */
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/Speech/SFSpeechLanguageModelConfiguration.g.cs b/new/dotnet/maccatalyst/generated-sources/Speech/SFSpeechLanguageModelConfiguration.g.cs
new file mode 100644
index 0000000..07148be
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/Speech/SFSpeechLanguageModelConfiguration.g.cs
@@ -0,0 +1,156 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Register("SFSpeechLanguageModelConfiguration", true)]
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ public unsafe partial class SFSpeechLanguageModelConfiguration : NSObject, INSCopying {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("SFSpeechLanguageModelConfiguration");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public SFSpeechLanguageModelConfiguration () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected SFSpeechLanguageModelConfiguration (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal SFSpeechLanguageModelConfiguration (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithLanguageModel:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public SFSpeechLanguageModelConfiguration (NSUrl languageModel)
+ : base (NSObjectFlag.Empty)
+ {
+ var languageModel__handle__ = languageModel!.GetNonNullHandle (nameof (languageModel));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("initWithLanguageModel:"), languageModel__handle__), "initWithLanguageModel:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("initWithLanguageModel:"), languageModel__handle__), "initWithLanguageModel:");
+ }
+ }
+ [Export ("initWithLanguageModel:vocabulary:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public SFSpeechLanguageModelConfiguration (NSUrl languageModel, NSUrl? vocabulary)
+ : base (NSObjectFlag.Empty)
+ {
+ var languageModel__handle__ = languageModel!.GetNonNullHandle (nameof (languageModel));
+ var vocabulary__handle__ = vocabulary.GetHandle ();
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("initWithLanguageModel:vocabulary:"), languageModel__handle__, vocabulary__handle__), "initWithLanguageModel:vocabulary:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("initWithLanguageModel:vocabulary:"), languageModel__handle__, vocabulary__handle__), "initWithLanguageModel:vocabulary:");
+ }
+ }
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ }
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl LanguageModel {
+ [Export ("languageModel", ArgumentSemantic.Copy)]
+ get {
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("languageModel")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("languageModel")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl? Vocabulary {
+ [Export ("vocabulary", ArgumentSemantic.Copy)]
+ get {
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("vocabulary")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("vocabulary")))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class SFSpeechLanguageModelConfiguration */
+}
diff --git a/old/dotnet/maccatalyst/generated-sources/Speech/SFSpeechRecognitionRequest.g.cs b/new/dotnet/maccatalyst/generated-sources/Speech/SFSpeechRecognitionRequest.g.cs
index 84d3bc4..6b230c3 100644
--- a/old/dotnet/maccatalyst/generated-sources/Speech/SFSpeechRecognitionRequest.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/Speech/SFSpeechRecognitionRequest.g.cs
@@ -115,6 +115,31 @@ namespace Speech {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ public virtual SFSpeechLanguageModelConfiguration? CustomizedLanguageModel {
+ [Export ("customizedLanguageModel", ArgumentSemantic.Copy)]
+ get {
+ SFSpeechLanguageModelConfiguration? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<SFSpeechLanguageModelConfiguration> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("customizedLanguageModel")))!;
+ } else {
+ ret = Runtime.GetNSObject<SFSpeechLanguageModelConfiguration> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("customizedLanguageModel")))!;
+ }
+ return ret!;
+ }
+ [Export ("setCustomizedLanguageModel:", ArgumentSemantic.Copy)]
+ set {
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setCustomizedLanguageModel:"), value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setCustomizedLanguageModel:"), value__handle__);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[ObsoletedOSPlatform ("ios15.0")]
[ObsoletedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("ios")]
diff --git a/old/dotnet/macos/generated-sources/ObjCRuntime/Libraries.g.cs b/new/dotnet/macos/generated-sources/ObjCRuntime/Libraries.g.cs
index 2c6a233..85204fe 100644
--- a/old/dotnet/macos/generated-sources/ObjCRuntime/Libraries.g.cs
+++ b/new/dotnet/macos/generated-sources/ObjCRuntime/Libraries.g.cs
@@ -301,6 +301,9 @@ namespace ObjCRuntime {
static public class SoundAnalysis {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.SoundAnalysisLibrary, 0);
}
+ static public class Speech {
+ static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.SpeechLibrary, 0);
+ }
static public class StoreKit {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.StoreKitLibrary, 0);
}
diff --git a/new/dotnet/macos/generated-sources/Speech/SFAnalysisContextTag.g.cs b/new/dotnet/macos/generated-sources/Speech/SFAnalysisContextTag.g.cs
new file mode 100644
index 0000000..db8a118
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/Speech/SFAnalysisContextTag.g.cs
@@ -0,0 +1,82 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ public unsafe partial class SFAnalysisContextTag {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _LeftContext;
+ [Field ("SFAnalysisContextTagLeftContext", "Speech")]
+ public static NSString LeftContext {
+ get {
+ if (_LeftContext is null)
+ _LeftContext = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagLeftContext")!;
+ return _LeftContext;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _RightContext;
+ [Field ("SFAnalysisContextTagRightContext", "Speech")]
+ public static NSString RightContext {
+ get {
+ if (_RightContext is null)
+ _RightContext = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagRightContext")!;
+ return _RightContext;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _SelectedText;
+ [Field ("SFAnalysisContextTagSelectedText", "Speech")]
+ public static NSString SelectedText {
+ get {
+ if (_SelectedText is null)
+ _SelectedText = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagSelectedText")!;
+ return _SelectedText;
+ }
+ }
+ } /* class SFAnalysisContextTag */
+}
diff --git a/new/dotnet/macos/generated-sources/Speech/SFSpeechErrorCode.g.cs b/new/dotnet/macos/generated-sources/Speech/SFSpeechErrorCode.g.cs
new file mode 100644
index 0000000..c28ea09
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/Speech/SFSpeechErrorCode.g.cs
@@ -0,0 +1,70 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ [Native]
+ public enum SFSpeechErrorCode : long {
+ InternalServiceError = 1,
+ UndefinedTemplateClassName = 7,
+ MalformedSupplementalModel = 8,
+ }
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class SFSpeechErrorCodeExtensions {
+ [Field ("SFSpeechErrorDomain", "Speech")]
+ static NSString? _domain;
+ public static NSString? GetDomain (this SFSpeechErrorCode self)
+ {
+ if (_domain is null)
+ _domain = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFSpeechErrorDomain");
+ return _domain;
+ }
+ }
+}
diff --git a/new/dotnet/macos/generated-sources/Speech/SFSpeechLanguageModel.g.cs b/new/dotnet/macos/generated-sources/Speech/SFSpeechLanguageModel.g.cs
new file mode 100644
index 0000000..dfad975
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/Speech/SFSpeechLanguageModel.g.cs
@@ -0,0 +1,130 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Register("SFSpeechLanguageModel", true)]
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ public unsafe partial class SFSpeechLanguageModel : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_Completion_X = "prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:";
+ static readonly NativeHandle selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_Completion_XHandle = Selector.GetHandle ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_IgnoresCache_Completion_X = "prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:";
+ static readonly NativeHandle selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_IgnoresCache_Completion_XHandle = Selector.GetHandle ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("SFSpeechLanguageModel");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected SFSpeechLanguageModel (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal SFSpeechLanguageModel (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static void PrepareCustomModel (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V16))]global::System.Action<NSError> completion)
+ {
+ var asset__handle__ = asset!.GetNonNullHandle (nameof (asset));
+ if (clientIdentifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (clientIdentifier));
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (completion is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completion));
+ var nsclientIdentifier = CFString.CreateNative (clientIdentifier);
+ using var block_completion = Trampolines.SDActionArity1V16.CreateBlock (completion);
+ BlockLiteral *block_ptr_completion = &block_completion;
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NativeHandle (class_ptr, selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_Completion_XHandle, asset__handle__, nsclientIdentifier, configuration__handle__, (IntPtr) block_ptr_completion);
+ CFString.ReleaseNative (nsclientIdentifier);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static Task PrepareCustomModelAsync (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ PrepareCustomModel(asset, clientIdentifier, configuration, (obj_) => {
+ if (obj_ is not null)
+ tcs.SetException (new NSErrorException(obj_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static void PrepareCustomModel (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V16))]global::System.Action<NSError> completion)
+ {
+ var asset__handle__ = asset!.GetNonNullHandle (nameof (asset));
+ if (clientIdentifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (clientIdentifier));
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (completion is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completion));
+ var nsclientIdentifier = CFString.CreateNative (clientIdentifier);
+ using var block_completion = Trampolines.SDActionArity1V16.CreateBlock (completion);
+ BlockLiteral *block_ptr_completion = &block_completion;
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_bool_NativeHandle (class_ptr, selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_IgnoresCache_Completion_XHandle, asset__handle__, nsclientIdentifier, configuration__handle__, ignoresCache, (IntPtr) block_ptr_completion);
+ CFString.ReleaseNative (nsclientIdentifier);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static Task PrepareCustomModelAsync (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ PrepareCustomModel(asset, clientIdentifier, configuration, ignoresCache, (obj_) => {
+ if (obj_ is not null)
+ tcs.SetException (new NSErrorException(obj_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ } /* class SFSpeechLanguageModel */
+}
diff --git a/new/dotnet/macos/generated-sources/Speech/SFSpeechLanguageModelConfiguration.g.cs b/new/dotnet/macos/generated-sources/Speech/SFSpeechLanguageModelConfiguration.g.cs
new file mode 100644
index 0000000..1194557
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/Speech/SFSpeechLanguageModelConfiguration.g.cs
@@ -0,0 +1,166 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Register("SFSpeechLanguageModelConfiguration", true)]
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ public unsafe partial class SFSpeechLanguageModelConfiguration : NSObject, INSCopying {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCopyWithZone_X = "copyWithZone:";
+ static readonly NativeHandle selCopyWithZone_XHandle = Selector.GetHandle ("copyWithZone:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithLanguageModel_X = "initWithLanguageModel:";
+ static readonly NativeHandle selInitWithLanguageModel_XHandle = Selector.GetHandle ("initWithLanguageModel:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithLanguageModel_Vocabulary_X = "initWithLanguageModel:vocabulary:";
+ static readonly NativeHandle selInitWithLanguageModel_Vocabulary_XHandle = Selector.GetHandle ("initWithLanguageModel:vocabulary:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selLanguageModelX = "languageModel";
+ static readonly NativeHandle selLanguageModelXHandle = Selector.GetHandle ("languageModel");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selVocabularyX = "vocabulary";
+ static readonly NativeHandle selVocabularyXHandle = Selector.GetHandle ("vocabulary");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("SFSpeechLanguageModelConfiguration");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public SFSpeechLanguageModelConfiguration () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected SFSpeechLanguageModelConfiguration (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal SFSpeechLanguageModelConfiguration (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithLanguageModel:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public SFSpeechLanguageModelConfiguration (NSUrl languageModel)
+ : base (NSObjectFlag.Empty)
+ {
+ var languageModel__handle__ = languageModel!.GetNonNullHandle (nameof (languageModel));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selInitWithLanguageModel_XHandle, languageModel__handle__), "initWithLanguageModel:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selInitWithLanguageModel_XHandle, languageModel__handle__), "initWithLanguageModel:");
+ }
+ }
+ [Export ("initWithLanguageModel:vocabulary:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public SFSpeechLanguageModelConfiguration (NSUrl languageModel, NSUrl? vocabulary)
+ : base (NSObjectFlag.Empty)
+ {
+ var languageModel__handle__ = languageModel!.GetNonNullHandle (nameof (languageModel));
+ var vocabulary__handle__ = vocabulary.GetHandle ();
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (this.Handle, selInitWithLanguageModel_Vocabulary_XHandle, languageModel__handle__, vocabulary__handle__), "initWithLanguageModel:vocabulary:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, selInitWithLanguageModel_Vocabulary_XHandle, languageModel__handle__, vocabulary__handle__), "initWithLanguageModel:vocabulary:");
+ }
+ }
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selCopyWithZone_XHandle, zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selCopyWithZone_XHandle, zone__handle__))!;
+ }
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl LanguageModel {
+ [Export ("languageModel", ArgumentSemantic.Copy)]
+ get {
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selLanguageModelXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selLanguageModelXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl? Vocabulary {
+ [Export ("vocabulary", ArgumentSemantic.Copy)]
+ get {
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selVocabularyXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selVocabularyXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class SFSpeechLanguageModelConfiguration */
+}
diff --git a/old/dotnet/macos/generated-sources/Speech/SFSpeechRecognitionRequest.g.cs b/new/dotnet/macos/generated-sources/Speech/SFSpeechRecognitionRequest.g.cs
index 6982676..084167e 100644
--- a/old/dotnet/macos/generated-sources/Speech/SFSpeechRecognitionRequest.g.cs
+++ b/new/dotnet/macos/generated-sources/Speech/SFSpeechRecognitionRequest.g.cs
@@ -56,6 +56,9 @@ namespace Speech {
const string selContextualStringsX = "contextualStrings";
static readonly NativeHandle selContextualStringsXHandle = Selector.GetHandle ("contextualStrings");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCustomizedLanguageModelX = "customizedLanguageModel";
+ static readonly NativeHandle selCustomizedLanguageModelXHandle = Selector.GetHandle ("customizedLanguageModel");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selInteractionIdentifierX = "interactionIdentifier";
static readonly NativeHandle selInteractionIdentifierXHandle = Selector.GetHandle ("interactionIdentifier");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -68,6 +71,9 @@ namespace Speech {
const string selSetContextualStrings_X = "setContextualStrings:";
static readonly NativeHandle selSetContextualStrings_XHandle = Selector.GetHandle ("setContextualStrings:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetCustomizedLanguageModel_X = "setCustomizedLanguageModel:";
+ static readonly NativeHandle selSetCustomizedLanguageModel_XHandle = Selector.GetHandle ("setCustomizedLanguageModel:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selSetInteractionIdentifier_X = "setInteractionIdentifier:";
static readonly NativeHandle selSetInteractionIdentifier_XHandle = Selector.GetHandle ("setInteractionIdentifier:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -146,6 +152,31 @@ namespace Speech {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("macos14.0")]
+ [SupportedOSPlatform ("ios17.0")]
+ [SupportedOSPlatform ("maccatalyst17.0")]
+ public virtual SFSpeechLanguageModelConfiguration? CustomizedLanguageModel {
+ [Export ("customizedLanguageModel", ArgumentSemantic.Copy)]
+ get {
+ SFSpeechLanguageModelConfiguration? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<SFSpeechLanguageModelConfiguration> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selCustomizedLanguageModelXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<SFSpeechLanguageModelConfiguration> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selCustomizedLanguageModelXHandle))!;
+ }
+ return ret!;
+ }
+ [Export ("setCustomizedLanguageModel:", ArgumentSemantic.Copy)]
+ set {
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selSetCustomizedLanguageModel_XHandle, value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selSetCustomizedLanguageModel_XHandle, value__handle__);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[ObsoletedOSPlatform ("ios15.0")]
[ObsoletedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("ios")]
diff --git a/old/ios/native/ObjCRuntime/Libraries.g.cs b/new/ios/native/ObjCRuntime/Libraries.g.cs
index 043cf9d..330b3c9 100644
--- a/old/ios/native/ObjCRuntime/Libraries.g.cs
+++ b/new/ios/native/ObjCRuntime/Libraries.g.cs
@@ -332,6 +332,9 @@ namespace ObjCRuntime {
static public class SoundAnalysis {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.SoundAnalysisLibrary, 0);
}
+ static public class Speech {
+ static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.SpeechLibrary, 0);
+ }
static public class StoreKit {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.StoreKitLibrary, 0);
}
diff --git a/new/ios/native/Speech/SFAnalysisContextTag.g.cs b/new/ios/native/Speech/SFAnalysisContextTag.g.cs
new file mode 100644
index 0000000..7106ecf
--- /dev/null
+++ b/new/ios/native/Speech/SFAnalysisContextTag.g.cs
@@ -0,0 +1,86 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class SFAnalysisContextTag {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _LeftContext;
+ [Field ("SFAnalysisContextTagLeftContext", "Speech")]
+ public static NSString LeftContext {
+ get {
+ if (_LeftContext is null)
+ _LeftContext = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagLeftContext")!;
+ return _LeftContext;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _RightContext;
+ [Field ("SFAnalysisContextTagRightContext", "Speech")]
+ public static NSString RightContext {
+ get {
+ if (_RightContext is null)
+ _RightContext = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagRightContext")!;
+ return _RightContext;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _SelectedText;
+ [Field ("SFAnalysisContextTagSelectedText", "Speech")]
+ public static NSString SelectedText {
+ get {
+ if (_SelectedText is null)
+ _SelectedText = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagSelectedText")!;
+ return _SelectedText;
+ }
+ }
+ } /* class SFAnalysisContextTag */
+}
diff --git a/new/ios/native/Speech/SFSpeechErrorCode.g.cs b/new/ios/native/Speech/SFSpeechErrorCode.g.cs
new file mode 100644
index 0000000..8c1dd5d
--- /dev/null
+++ b/new/ios/native/Speech/SFSpeechErrorCode.g.cs
@@ -0,0 +1,74 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum SFSpeechErrorCode : long {
+ InternalServiceError = 1,
+ UndefinedTemplateClassName = 7,
+ MalformedSupplementalModel = 8,
+ }
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class SFSpeechErrorCodeExtensions {
+ [Field ("SFSpeechErrorDomain", "Speech")]
+ static NSString? _domain;
+ public static NSString? GetDomain (this SFSpeechErrorCode self)
+ {
+ if (_domain is null)
+ _domain = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFSpeechErrorDomain");
+ return _domain;
+ }
+ }
+}
diff --git a/new/ios/native/Speech/SFSpeechLanguageModel.g.cs b/new/ios/native/Speech/SFSpeechLanguageModel.g.cs
new file mode 100644
index 0000000..f462e67
--- /dev/null
+++ b/new/ios/native/Speech/SFSpeechLanguageModel.g.cs
@@ -0,0 +1,142 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Register("SFSpeechLanguageModel", true)]
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class SFSpeechLanguageModel : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("SFSpeechLanguageModel");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected SFSpeechLanguageModel (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal SFSpeechLanguageModel (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static void PrepareCustomModel (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V0))]global::System.Action<NSError> completion)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var asset__handle__ = asset!.GetNonNullHandle (nameof (asset));
+ if (clientIdentifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (clientIdentifier));
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (completion is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completion));
+ var nsclientIdentifier = CFString.CreateNative (clientIdentifier);
+ using var block_completion = Trampolines.SDActionArity1V0.CreateBlock (completion);
+ BlockLiteral *block_ptr_completion = &block_completion;
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (class_ptr, Selector.GetHandle ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:"), asset__handle__, nsclientIdentifier, configuration__handle__, (IntPtr) block_ptr_completion);
+ CFString.ReleaseNative (nsclientIdentifier);
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static Task PrepareCustomModelAsync (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ PrepareCustomModel(asset, clientIdentifier, configuration, (obj_) => {
+ if (obj_ is not null)
+ tcs.SetException (new NSErrorException(obj_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static void PrepareCustomModel (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V0))]global::System.Action<NSError> completion)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var asset__handle__ = asset!.GetNonNullHandle (nameof (asset));
+ if (clientIdentifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (clientIdentifier));
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (completion is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completion));
+ var nsclientIdentifier = CFString.CreateNative (clientIdentifier);
+ using var block_completion = Trampolines.SDActionArity1V0.CreateBlock (completion);
+ BlockLiteral *block_ptr_completion = &block_completion;
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_bool_IntPtr (class_ptr, Selector.GetHandle ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:"), asset__handle__, nsclientIdentifier, configuration__handle__, ignoresCache, (IntPtr) block_ptr_completion);
+ CFString.ReleaseNative (nsclientIdentifier);
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static Task PrepareCustomModelAsync (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ PrepareCustomModel(asset, clientIdentifier, configuration, ignoresCache, (obj_) => {
+ if (obj_ is not null)
+ tcs.SetException (new NSErrorException(obj_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ } /* class SFSpeechLanguageModel */
+}
diff --git a/new/ios/native/Speech/SFSpeechLanguageModelConfiguration.g.cs b/new/ios/native/Speech/SFSpeechLanguageModelConfiguration.g.cs
new file mode 100644
index 0000000..0d8d32a
--- /dev/null
+++ b/new/ios/native/Speech/SFSpeechLanguageModelConfiguration.g.cs
@@ -0,0 +1,177 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Register("SFSpeechLanguageModelConfiguration", true)]
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class SFSpeechLanguageModelConfiguration : NSObject, INSCopying {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("SFSpeechLanguageModelConfiguration");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public SFSpeechLanguageModelConfiguration () : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ #endif
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected SFSpeechLanguageModelConfiguration (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal SFSpeechLanguageModelConfiguration (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithLanguageModel:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public SFSpeechLanguageModelConfiguration (NSUrl languageModel)
+ : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var languageModel__handle__ = languageModel!.GetNonNullHandle (nameof (languageModel));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithLanguageModel:"), languageModel__handle__), "initWithLanguageModel:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithLanguageModel:"), languageModel__handle__), "initWithLanguageModel:");
+ }
+ #endif
+ }
+ [Export ("initWithLanguageModel:vocabulary:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public SFSpeechLanguageModelConfiguration (NSUrl languageModel, NSUrl? vocabulary)
+ : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var languageModel__handle__ = languageModel!.GetNonNullHandle (nameof (languageModel));
+ var vocabulary__handle__ = vocabulary.GetHandle ();
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("initWithLanguageModel:vocabulary:"), languageModel__handle__, vocabulary__handle__), "initWithLanguageModel:vocabulary:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithLanguageModel:vocabulary:"), languageModel__handle__, vocabulary__handle__), "initWithLanguageModel:vocabulary:");
+ }
+ #endif
+ }
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("copyWithZone:"), zone__handle__))!;
+ }
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl LanguageModel {
+ [Export ("languageModel", ArgumentSemantic.Copy)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("languageModel")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("languageModel")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl? Vocabulary {
+ [Export ("vocabulary", ArgumentSemantic.Copy)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("vocabulary")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("vocabulary")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class SFSpeechLanguageModelConfiguration */
+}
diff --git a/old/ios/native/Speech/SFSpeechRecognitionRequest.g.cs b/new/ios/native/Speech/SFSpeechRecognitionRequest.g.cs
index 63ec25d..eb003da 100644
--- a/old/ios/native/Speech/SFSpeechRecognitionRequest.g.cs
+++ b/new/ios/native/Speech/SFSpeechRecognitionRequest.g.cs
@@ -125,6 +125,45 @@ namespace Speech {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual SFSpeechLanguageModelConfiguration? CustomizedLanguageModel {
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("customizedLanguageModel", ArgumentSemantic.Copy)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ SFSpeechLanguageModelConfiguration? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<SFSpeechLanguageModelConfiguration> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("customizedLanguageModel")))!;
+ } else {
+ ret = Runtime.GetNSObject<SFSpeechLanguageModelConfiguration> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("customizedLanguageModel")))!;
+ }
+ return ret!;
+ #endif
+ }
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setCustomizedLanguageModel:", ArgumentSemantic.Copy)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setCustomizedLanguageModel:"), value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setCustomizedLanguageModel:"), value__handle__);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Deprecated (PlatformName.iOS, 15,0)]
[Deprecated (PlatformName.MacCatalyst, 15,0)]
public virtual string? InteractionIdentifier {
diff --git a/old/mac/full/ObjCRuntime/Libraries.g.cs b/new/mac/full/ObjCRuntime/Libraries.g.cs
index 36858e0..1bd7d75 100644
--- a/old/mac/full/ObjCRuntime/Libraries.g.cs
+++ b/new/mac/full/ObjCRuntime/Libraries.g.cs
@@ -306,6 +306,9 @@ namespace ObjCRuntime {
static public class SoundAnalysis {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.SoundAnalysisLibrary, 0);
}
+ static public class Speech {
+ static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.SpeechLibrary, 0);
+ }
static public class StoreKit {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.StoreKitLibrary, 0);
}
diff --git a/new/mac/full/Speech/SFAnalysisContextTag.g.cs b/new/mac/full/Speech/SFAnalysisContextTag.g.cs
new file mode 100644
index 0000000..09189e2
--- /dev/null
+++ b/new/mac/full/Speech/SFAnalysisContextTag.g.cs
@@ -0,0 +1,81 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class SFAnalysisContextTag {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _LeftContext;
+ [Field ("SFAnalysisContextTagLeftContext", "Speech")]
+ public static NSString LeftContext {
+ get {
+ if (_LeftContext is null)
+ _LeftContext = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagLeftContext")!;
+ return _LeftContext;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _RightContext;
+ [Field ("SFAnalysisContextTagRightContext", "Speech")]
+ public static NSString RightContext {
+ get {
+ if (_RightContext is null)
+ _RightContext = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagRightContext")!;
+ return _RightContext;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _SelectedText;
+ [Field ("SFAnalysisContextTagSelectedText", "Speech")]
+ public static NSString SelectedText {
+ get {
+ if (_SelectedText is null)
+ _SelectedText = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagSelectedText")!;
+ return _SelectedText;
+ }
+ }
+ } /* class SFAnalysisContextTag */
+}
diff --git a/new/mac/full/Speech/SFSpeechErrorCode.g.cs b/new/mac/full/Speech/SFSpeechErrorCode.g.cs
new file mode 100644
index 0000000..e786e29
--- /dev/null
+++ b/new/mac/full/Speech/SFSpeechErrorCode.g.cs
@@ -0,0 +1,69 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum SFSpeechErrorCode : long {
+ InternalServiceError = 1,
+ UndefinedTemplateClassName = 7,
+ MalformedSupplementalModel = 8,
+ }
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class SFSpeechErrorCodeExtensions {
+ [Field ("SFSpeechErrorDomain", "Speech")]
+ static NSString? _domain;
+ public static NSString? GetDomain (this SFSpeechErrorCode self)
+ {
+ if (_domain is null)
+ _domain = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFSpeechErrorDomain");
+ return _domain;
+ }
+ }
+}
diff --git a/new/mac/full/Speech/SFSpeechLanguageModel.g.cs b/new/mac/full/Speech/SFSpeechLanguageModel.g.cs
new file mode 100644
index 0000000..84ef0ca
--- /dev/null
+++ b/new/mac/full/Speech/SFSpeechLanguageModel.g.cs
@@ -0,0 +1,129 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Register("SFSpeechLanguageModel", true)]
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class SFSpeechLanguageModel : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_Completion_X = "prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:";
+ static readonly IntPtr selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_Completion_XHandle = Selector.GetHandle ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_IgnoresCache_Completion_X = "prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:";
+ static readonly IntPtr selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_IgnoresCache_Completion_XHandle = Selector.GetHandle ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("SFSpeechLanguageModel");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected SFSpeechLanguageModel (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal SFSpeechLanguageModel (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static void PrepareCustomModel (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V16))]global::System.Action<NSError> completion)
+ {
+ var asset__handle__ = asset!.GetNonNullHandle (nameof (asset));
+ if (clientIdentifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (clientIdentifier));
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (completion is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completion));
+ var nsclientIdentifier = CFString.CreateNative (clientIdentifier);
+ using var block_completion = Trampolines.SDActionArity1V16.CreateBlock (completion);
+ BlockLiteral *block_ptr_completion = &block_completion;
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (class_ptr, selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_Completion_XHandle, asset__handle__, nsclientIdentifier, configuration__handle__, (IntPtr) block_ptr_completion);
+ CFString.ReleaseNative (nsclientIdentifier);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static Task PrepareCustomModelAsync (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ PrepareCustomModel(asset, clientIdentifier, configuration, (obj_) => {
+ if (obj_ is not null)
+ tcs.SetException (new NSErrorException(obj_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static void PrepareCustomModel (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V16))]global::System.Action<NSError> completion)
+ {
+ var asset__handle__ = asset!.GetNonNullHandle (nameof (asset));
+ if (clientIdentifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (clientIdentifier));
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (completion is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completion));
+ var nsclientIdentifier = CFString.CreateNative (clientIdentifier);
+ using var block_completion = Trampolines.SDActionArity1V16.CreateBlock (completion);
+ BlockLiteral *block_ptr_completion = &block_completion;
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_bool_IntPtr (class_ptr, selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_IgnoresCache_Completion_XHandle, asset__handle__, nsclientIdentifier, configuration__handle__, ignoresCache, (IntPtr) block_ptr_completion);
+ CFString.ReleaseNative (nsclientIdentifier);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static Task PrepareCustomModelAsync (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ PrepareCustomModel(asset, clientIdentifier, configuration, ignoresCache, (obj_) => {
+ if (obj_ is not null)
+ tcs.SetException (new NSErrorException(obj_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ } /* class SFSpeechLanguageModel */
+}
diff --git a/new/mac/full/Speech/SFSpeechLanguageModelConfiguration.g.cs b/new/mac/full/Speech/SFSpeechLanguageModelConfiguration.g.cs
new file mode 100644
index 0000000..96a0eda
--- /dev/null
+++ b/new/mac/full/Speech/SFSpeechLanguageModelConfiguration.g.cs
@@ -0,0 +1,161 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Register("SFSpeechLanguageModelConfiguration", true)]
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class SFSpeechLanguageModelConfiguration : NSObject, INSCopying {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCopyWithZone_X = "copyWithZone:";
+ static readonly IntPtr selCopyWithZone_XHandle = Selector.GetHandle ("copyWithZone:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithLanguageModel_X = "initWithLanguageModel:";
+ static readonly IntPtr selInitWithLanguageModel_XHandle = Selector.GetHandle ("initWithLanguageModel:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithLanguageModel_Vocabulary_X = "initWithLanguageModel:vocabulary:";
+ static readonly IntPtr selInitWithLanguageModel_Vocabulary_XHandle = Selector.GetHandle ("initWithLanguageModel:vocabulary:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selLanguageModelX = "languageModel";
+ static readonly IntPtr selLanguageModelXHandle = Selector.GetHandle ("languageModel");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selVocabularyX = "vocabulary";
+ static readonly IntPtr selVocabularyXHandle = Selector.GetHandle ("vocabulary");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("SFSpeechLanguageModelConfiguration");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public SFSpeechLanguageModelConfiguration () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected SFSpeechLanguageModelConfiguration (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal SFSpeechLanguageModelConfiguration (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithLanguageModel:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public SFSpeechLanguageModelConfiguration (NSUrl languageModel)
+ : base (NSObjectFlag.Empty)
+ {
+ var languageModel__handle__ = languageModel!.GetNonNullHandle (nameof (languageModel));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selInitWithLanguageModel_XHandle, languageModel__handle__), "initWithLanguageModel:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selInitWithLanguageModel_XHandle, languageModel__handle__), "initWithLanguageModel:");
+ }
+ }
+ [Export ("initWithLanguageModel:vocabulary:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public SFSpeechLanguageModelConfiguration (NSUrl languageModel, NSUrl? vocabulary)
+ : base (NSObjectFlag.Empty)
+ {
+ var languageModel__handle__ = languageModel!.GetNonNullHandle (nameof (languageModel));
+ var vocabulary__handle__ = vocabulary.GetHandle ();
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr (this.Handle, selInitWithLanguageModel_Vocabulary_XHandle, languageModel__handle__, vocabulary__handle__), "initWithLanguageModel:vocabulary:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selInitWithLanguageModel_Vocabulary_XHandle, languageModel__handle__, vocabulary__handle__), "initWithLanguageModel:vocabulary:");
+ }
+ }
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selCopyWithZone_XHandle, zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selCopyWithZone_XHandle, zone__handle__))!;
+ }
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl LanguageModel {
+ [Export ("languageModel", ArgumentSemantic.Copy)]
+ get {
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selLanguageModelXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selLanguageModelXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl? Vocabulary {
+ [Export ("vocabulary", ArgumentSemantic.Copy)]
+ get {
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selVocabularyXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selVocabularyXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class SFSpeechLanguageModelConfiguration */
+}
diff --git a/old/mac/full/Speech/SFSpeechRecognitionRequest.g.cs b/new/mac/full/Speech/SFSpeechRecognitionRequest.g.cs
index 17c8d5d..b49ef71 100644
--- a/old/mac/full/Speech/SFSpeechRecognitionRequest.g.cs
+++ b/new/mac/full/Speech/SFSpeechRecognitionRequest.g.cs
@@ -52,6 +52,9 @@ namespace Speech {
const string selContextualStringsX = "contextualStrings";
static readonly IntPtr selContextualStringsXHandle = Selector.GetHandle ("contextualStrings");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCustomizedLanguageModelX = "customizedLanguageModel";
+ static readonly IntPtr selCustomizedLanguageModelXHandle = Selector.GetHandle ("customizedLanguageModel");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selInteractionIdentifierX = "interactionIdentifier";
static readonly IntPtr selInteractionIdentifierXHandle = Selector.GetHandle ("interactionIdentifier");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -64,6 +67,9 @@ namespace Speech {
const string selSetContextualStrings_X = "setContextualStrings:";
static readonly IntPtr selSetContextualStrings_XHandle = Selector.GetHandle ("setContextualStrings:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetCustomizedLanguageModel_X = "setCustomizedLanguageModel:";
+ static readonly IntPtr selSetCustomizedLanguageModel_XHandle = Selector.GetHandle ("setCustomizedLanguageModel:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selSetInteractionIdentifier_X = "setInteractionIdentifier:";
static readonly IntPtr selSetInteractionIdentifier_XHandle = Selector.GetHandle ("setInteractionIdentifier:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -148,6 +154,37 @@ namespace Speech {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual SFSpeechLanguageModelConfiguration? CustomizedLanguageModel {
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("customizedLanguageModel", ArgumentSemantic.Copy)]
+ get {
+ SFSpeechLanguageModelConfiguration? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<SFSpeechLanguageModelConfiguration> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selCustomizedLanguageModelXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<SFSpeechLanguageModelConfiguration> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selCustomizedLanguageModelXHandle))!;
+ }
+ return ret!;
+ }
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setCustomizedLanguageModel:", ArgumentSemantic.Copy)]
+ set {
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetCustomizedLanguageModel_XHandle, value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetCustomizedLanguageModel_XHandle, value__handle__);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Deprecated (PlatformName.iOS, 15,0)]
[Deprecated (PlatformName.MacCatalyst, 15,0)]
public virtual string? InteractionIdentifier {
diff --git a/old/mac/mobile/ObjCRuntime/Libraries.g.cs b/new/mac/mobile/ObjCRuntime/Libraries.g.cs
index 36858e0..1bd7d75 100644
--- a/old/mac/mobile/ObjCRuntime/Libraries.g.cs
+++ b/new/mac/mobile/ObjCRuntime/Libraries.g.cs
@@ -306,6 +306,9 @@ namespace ObjCRuntime {
static public class SoundAnalysis {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.SoundAnalysisLibrary, 0);
}
+ static public class Speech {
+ static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.SpeechLibrary, 0);
+ }
static public class StoreKit {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.StoreKitLibrary, 0);
}
diff --git a/new/mac/mobile/Speech/SFAnalysisContextTag.g.cs b/new/mac/mobile/Speech/SFAnalysisContextTag.g.cs
new file mode 100644
index 0000000..09189e2
--- /dev/null
+++ b/new/mac/mobile/Speech/SFAnalysisContextTag.g.cs
@@ -0,0 +1,81 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class SFAnalysisContextTag {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _LeftContext;
+ [Field ("SFAnalysisContextTagLeftContext", "Speech")]
+ public static NSString LeftContext {
+ get {
+ if (_LeftContext is null)
+ _LeftContext = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagLeftContext")!;
+ return _LeftContext;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _RightContext;
+ [Field ("SFAnalysisContextTagRightContext", "Speech")]
+ public static NSString RightContext {
+ get {
+ if (_RightContext is null)
+ _RightContext = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagRightContext")!;
+ return _RightContext;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _SelectedText;
+ [Field ("SFAnalysisContextTagSelectedText", "Speech")]
+ public static NSString SelectedText {
+ get {
+ if (_SelectedText is null)
+ _SelectedText = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFAnalysisContextTagSelectedText")!;
+ return _SelectedText;
+ }
+ }
+ } /* class SFAnalysisContextTag */
+}
diff --git a/new/mac/mobile/Speech/SFSpeechErrorCode.g.cs b/new/mac/mobile/Speech/SFSpeechErrorCode.g.cs
new file mode 100644
index 0000000..e786e29
--- /dev/null
+++ b/new/mac/mobile/Speech/SFSpeechErrorCode.g.cs
@@ -0,0 +1,69 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum SFSpeechErrorCode : long {
+ InternalServiceError = 1,
+ UndefinedTemplateClassName = 7,
+ MalformedSupplementalModel = 8,
+ }
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class SFSpeechErrorCodeExtensions {
+ [Field ("SFSpeechErrorDomain", "Speech")]
+ static NSString? _domain;
+ public static NSString? GetDomain (this SFSpeechErrorCode self)
+ {
+ if (_domain is null)
+ _domain = Dlfcn.GetStringConstant (Libraries.Speech.Handle, "SFSpeechErrorDomain");
+ return _domain;
+ }
+ }
+}
diff --git a/new/mac/mobile/Speech/SFSpeechLanguageModel.g.cs b/new/mac/mobile/Speech/SFSpeechLanguageModel.g.cs
new file mode 100644
index 0000000..84ef0ca
--- /dev/null
+++ b/new/mac/mobile/Speech/SFSpeechLanguageModel.g.cs
@@ -0,0 +1,129 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Register("SFSpeechLanguageModel", true)]
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class SFSpeechLanguageModel : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_Completion_X = "prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:";
+ static readonly IntPtr selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_Completion_XHandle = Selector.GetHandle ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_IgnoresCache_Completion_X = "prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:";
+ static readonly IntPtr selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_IgnoresCache_Completion_XHandle = Selector.GetHandle ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("SFSpeechLanguageModel");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected SFSpeechLanguageModel (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal SFSpeechLanguageModel (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static void PrepareCustomModel (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V16))]global::System.Action<NSError> completion)
+ {
+ var asset__handle__ = asset!.GetNonNullHandle (nameof (asset));
+ if (clientIdentifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (clientIdentifier));
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (completion is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completion));
+ var nsclientIdentifier = CFString.CreateNative (clientIdentifier);
+ using var block_completion = Trampolines.SDActionArity1V16.CreateBlock (completion);
+ BlockLiteral *block_ptr_completion = &block_completion;
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (class_ptr, selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_Completion_XHandle, asset__handle__, nsclientIdentifier, configuration__handle__, (IntPtr) block_ptr_completion);
+ CFString.ReleaseNative (nsclientIdentifier);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static Task PrepareCustomModelAsync (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ PrepareCustomModel(asset, clientIdentifier, configuration, (obj_) => {
+ if (obj_ is not null)
+ tcs.SetException (new NSErrorException(obj_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static void PrepareCustomModel (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V16))]global::System.Action<NSError> completion)
+ {
+ var asset__handle__ = asset!.GetNonNullHandle (nameof (asset));
+ if (clientIdentifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (clientIdentifier));
+ var configuration__handle__ = configuration!.GetNonNullHandle (nameof (configuration));
+ if (completion is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completion));
+ var nsclientIdentifier = CFString.CreateNative (clientIdentifier);
+ using var block_completion = Trampolines.SDActionArity1V16.CreateBlock (completion);
+ BlockLiteral *block_ptr_completion = &block_completion;
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_bool_IntPtr (class_ptr, selPrepareCustomLanguageModelForUrl_ClientIdentifier_Configuration_IgnoresCache_Completion_XHandle, asset__handle__, nsclientIdentifier, configuration__handle__, ignoresCache, (IntPtr) block_ptr_completion);
+ CFString.ReleaseNative (nsclientIdentifier);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static Task PrepareCustomModelAsync (NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ PrepareCustomModel(asset, clientIdentifier, configuration, ignoresCache, (obj_) => {
+ if (obj_ is not null)
+ tcs.SetException (new NSErrorException(obj_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ } /* class SFSpeechLanguageModel */
+}
diff --git a/new/mac/mobile/Speech/SFSpeechLanguageModelConfiguration.g.cs b/new/mac/mobile/Speech/SFSpeechLanguageModelConfiguration.g.cs
new file mode 100644
index 0000000..96a0eda
--- /dev/null
+++ b/new/mac/mobile/Speech/SFSpeechLanguageModelConfiguration.g.cs
@@ -0,0 +1,161 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace Speech {
+ [Register("SFSpeechLanguageModelConfiguration", true)]
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class SFSpeechLanguageModelConfiguration : NSObject, INSCopying {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCopyWithZone_X = "copyWithZone:";
+ static readonly IntPtr selCopyWithZone_XHandle = Selector.GetHandle ("copyWithZone:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithLanguageModel_X = "initWithLanguageModel:";
+ static readonly IntPtr selInitWithLanguageModel_XHandle = Selector.GetHandle ("initWithLanguageModel:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithLanguageModel_Vocabulary_X = "initWithLanguageModel:vocabulary:";
+ static readonly IntPtr selInitWithLanguageModel_Vocabulary_XHandle = Selector.GetHandle ("initWithLanguageModel:vocabulary:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selLanguageModelX = "languageModel";
+ static readonly IntPtr selLanguageModelXHandle = Selector.GetHandle ("languageModel");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selVocabularyX = "vocabulary";
+ static readonly IntPtr selVocabularyXHandle = Selector.GetHandle ("vocabulary");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("SFSpeechLanguageModelConfiguration");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public SFSpeechLanguageModelConfiguration () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected SFSpeechLanguageModelConfiguration (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal SFSpeechLanguageModelConfiguration (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithLanguageModel:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public SFSpeechLanguageModelConfiguration (NSUrl languageModel)
+ : base (NSObjectFlag.Empty)
+ {
+ var languageModel__handle__ = languageModel!.GetNonNullHandle (nameof (languageModel));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selInitWithLanguageModel_XHandle, languageModel__handle__), "initWithLanguageModel:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selInitWithLanguageModel_XHandle, languageModel__handle__), "initWithLanguageModel:");
+ }
+ }
+ [Export ("initWithLanguageModel:vocabulary:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public SFSpeechLanguageModelConfiguration (NSUrl languageModel, NSUrl? vocabulary)
+ : base (NSObjectFlag.Empty)
+ {
+ var languageModel__handle__ = languageModel!.GetNonNullHandle (nameof (languageModel));
+ var vocabulary__handle__ = vocabulary.GetHandle ();
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr (this.Handle, selInitWithLanguageModel_Vocabulary_XHandle, languageModel__handle__, vocabulary__handle__), "initWithLanguageModel:vocabulary:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selInitWithLanguageModel_Vocabulary_XHandle, languageModel__handle__, vocabulary__handle__), "initWithLanguageModel:vocabulary:");
+ }
+ }
+ [Export ("copyWithZone:")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSObject Copy (NSZone? zone)
+ {
+ var zone__handle__ = zone.GetHandle ();
+ NSObject? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selCopyWithZone_XHandle, zone__handle__))!;
+ } else {
+ ret = Runtime.GetNSObject (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selCopyWithZone_XHandle, zone__handle__))!;
+ }
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl LanguageModel {
+ [Export ("languageModel", ArgumentSemantic.Copy)]
+ get {
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selLanguageModelXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selLanguageModelXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl? Vocabulary {
+ [Export ("vocabulary", ArgumentSemantic.Copy)]
+ get {
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selVocabularyXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selVocabularyXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class SFSpeechLanguageModelConfiguration */
+}
diff --git a/old/mac/mobile/Speech/SFSpeechRecognitionRequest.g.cs b/new/mac/mobile/Speech/SFSpeechRecognitionRequest.g.cs
index 17c8d5d..b49ef71 100644
--- a/old/mac/mobile/Speech/SFSpeechRecognitionRequest.g.cs
+++ b/new/mac/mobile/Speech/SFSpeechRecognitionRequest.g.cs
@@ -52,6 +52,9 @@ namespace Speech {
const string selContextualStringsX = "contextualStrings";
static readonly IntPtr selContextualStringsXHandle = Selector.GetHandle ("contextualStrings");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCustomizedLanguageModelX = "customizedLanguageModel";
+ static readonly IntPtr selCustomizedLanguageModelXHandle = Selector.GetHandle ("customizedLanguageModel");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selInteractionIdentifierX = "interactionIdentifier";
static readonly IntPtr selInteractionIdentifierXHandle = Selector.GetHandle ("interactionIdentifier");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -64,6 +67,9 @@ namespace Speech {
const string selSetContextualStrings_X = "setContextualStrings:";
static readonly IntPtr selSetContextualStrings_XHandle = Selector.GetHandle ("setContextualStrings:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetCustomizedLanguageModel_X = "setCustomizedLanguageModel:";
+ static readonly IntPtr selSetCustomizedLanguageModel_XHandle = Selector.GetHandle ("setCustomizedLanguageModel:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selSetInteractionIdentifier_X = "setInteractionIdentifier:";
static readonly IntPtr selSetInteractionIdentifier_XHandle = Selector.GetHandle ("setInteractionIdentifier:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -148,6 +154,37 @@ namespace Speech {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual SFSpeechLanguageModelConfiguration? CustomizedLanguageModel {
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("customizedLanguageModel", ArgumentSemantic.Copy)]
+ get {
+ SFSpeechLanguageModelConfiguration? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<SFSpeechLanguageModelConfiguration> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selCustomizedLanguageModelXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<SFSpeechLanguageModelConfiguration> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selCustomizedLanguageModelXHandle))!;
+ }
+ return ret!;
+ }
+ [Introduced (PlatformName.MacOSX, 14,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 17,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setCustomizedLanguageModel:", ArgumentSemantic.Copy)]
+ set {
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetCustomizedLanguageModel_XHandle, value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetCustomizedLanguageModel_XHandle, value__handle__);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Deprecated (PlatformName.iOS, 15,0)]
[Deprecated (PlatformName.MacCatalyst, 15,0)]
public virtual string? InteractionIdentifier {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment