You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/maui/essentials/speech-to-text.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,9 @@ Add permissions to `tizen-manifest.xml`:
59
59
60
60
The `SpeechToText` can be added to a .NET MAUI application in the following way.
61
61
62
+
> [!NOTE]
63
+
> The methods in this API accept a `CancellationToken` to cancel asynchronous operations. A `CancellationToken` can be obtained by creating a [`CancellationTokenSource`](/dotnet/api/system.threading.cancellationtokensource) and accessing its `.Token` property. You can also use `CancellationToken.None` if you don't need to cancel the operation. For more detail on how to provide a `CancellationToken` refer to the [Microsoft documentation](/dotnet/standard/threading/cancellation-in-managed-threads).
64
+
62
65
### Request permissions
63
66
64
67
Developers must manually request Permissions.Microphone and also call ISpeechToText.RequestPermissions():
@@ -197,6 +200,7 @@ Now you can inject the service like this:
0 commit comments