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/31dbb8991620928fd664fc1be4879d9d to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/31dbb8991620928fd664fc1be4879d9d to your computer and use it in GitHub Desktop.
previous-api-comparison/diff/dotnet/Microsoft.MacCatalyst.Ref/ref/net8.0/Microsoft.MacCatalyst.md

API diff: Microsoft.MacCatalyst.dll

Microsoft.MacCatalyst.dll

Namespace Speech

Type Changed: Speech.SFSpeechRecognitionRequest

Added property:

public virtual SFSpeechLanguageModelConfiguration CustomizedLanguageModel { get; set; }

New Type: Speech.SFAnalysisContextTag

public class SFAnalysisContextTag {
	// constructors
	public SFAnalysisContextTag ();
	// properties
	public static Foundation.NSString LeftContext { get; }
	public static Foundation.NSString RightContext { get; }
	public static Foundation.NSString SelectedText { get; }
}

New Type: Speech.SFSpeechErrorCode

[Serializable]
public enum SFSpeechErrorCode {
	InternalServiceError = 1,
	MalformedSupplementalModel = 8,
	UndefinedTemplateClassName = 7,
}

New Type: Speech.SFSpeechErrorCodeExtensions

public static class SFSpeechErrorCodeExtensions {
	// methods
	public static Foundation.NSString GetDomain (this SFSpeechErrorCode self);
}

New Type: Speech.SFSpeechLanguageModel

public class SFSpeechLanguageModel : Foundation.NSObject {
	// constructors
	protected SFSpeechLanguageModel (Foundation.NSObjectFlag t);
	protected SFSpeechLanguageModel (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	// methods
	public static void PrepareCustomModel (Foundation.NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, System.Action<Foundation.NSError> completion);
	public static void PrepareCustomModel (Foundation.NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache, System.Action<Foundation.NSError> completion);
	public static System.Threading.Tasks.Task PrepareCustomModelAsync (Foundation.NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration);
	public static System.Threading.Tasks.Task PrepareCustomModelAsync (Foundation.NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache);
}

New Type: Speech.SFSpeechLanguageModelConfiguration

public class SFSpeechLanguageModelConfiguration : Foundation.NSObject, Foundation.INSCopying, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public SFSpeechLanguageModelConfiguration ();
	protected SFSpeechLanguageModelConfiguration (Foundation.NSObjectFlag t);
	public SFSpeechLanguageModelConfiguration (Foundation.NSUrl languageModel);
	protected SFSpeechLanguageModelConfiguration (ObjCRuntime.NativeHandle handle);
	public SFSpeechLanguageModelConfiguration (Foundation.NSUrl languageModel, Foundation.NSUrl vocabulary);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual Foundation.NSUrl LanguageModel { get; }
	public virtual Foundation.NSUrl Vocabulary { get; }
	// methods
	public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment