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: controls/speechtotextbutton/winui-support.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,23 +2,23 @@
2
2
title: WinUI Support
3
3
page_title: .NET MAUI SpeechToTextButton Documentation - WinUI Support
4
4
description: Review what are the options and limitations using the .NET MAUI SpeechToTextButton on WinUI.
5
-
position: 3
5
+
position: 1
6
6
slug: speechtotextbutton-winui-support
7
7
---
8
8
9
9
# .NET MAUI SpeechToTextButton WinUI Support Specifics
10
10
11
11
The Telerik UI for .NET MAUI SpeechToTextButton control is designed to work seamlessly across all supported platforms, including WinUI.
12
12
13
-
The Speech Recognizer uses platform-specific speech recognition services. On WinUI, it relies on the [`Windows.Media.SpeechRecognition`](https://learn.microsoft.com/en-us/uwp/api/windows.media.speechrecognition?view=winrt-26100). However, there are specific considerations when using the control on WinUI due to platform limitations.
13
+
The Speech Recognizer uses platform-specific speech recognition services. On WinUI, it relies on the [`Windows.Media.SpeechRecognition`](https://learn.microsoft.com/en-us/uwp/api/windows.media.speechrecognition?view=winrt-26100). However, there are specific considerations and limitations when using the control on WinUI due to known platform issues.
14
14
15
15
## Limitations in Windows.Media.SpeechRecognition
16
16
17
17
* The app crashes when trying to close the application via the "X" button and the app is **Packaged**. There is an open bug report: [Application crashes after using SpeechRecognizer in a Packaged App](https://github.com/microsoft/microsoft-ui-xaml/issues/10697)
18
18
19
-
* Based on this issue, the SpeechToTextButton control is not fully supported on WinUI. When you click the control, an `InvalidOperationException`is thrown.
19
+
* Based on this issue, the SpeechToTextButton control is not fully supported on WinUI. When you click the control, an `InvalidOperationException`occurs.
20
20
21
-
## Solution
21
+
## Solutions
22
22
23
23
To use the SpeechToTextButton on WinUI, you can use one of the following approaches:
24
24
@@ -32,13 +32,9 @@ this.speechToTextButton.SpeechRecognizerCreator = () => new RadSpeechRecognizer(
32
32
33
33
* Use an **Unpackaged** app deployment model.
34
34
35
-
## Configure Speech Recognition
36
-
37
-
Confirm that **Online speech recognition** (Settings -> Privacy -> Speech) is enabled.
38
-
39
35
## Language Support
40
36
41
-
When setting the `RadSpeechToTextButton.LanguageTag` property to a specific value, ensure that the language is supported by the `Windows.Media.SpeechRecognition.SpeechRecognizer` on WinUI.
37
+
When setting the `LanguageTag` to a specific value, ensure that the language is supported by the `Windows.Media.SpeechRecognition.SpeechRecognizer` on WinUI.
42
38
43
39
For more details, review the [Microsoft documentation](https://learn.microsoft.com/en-us/windows/apps/design/input/speech-recognition#predefined-grammars).
0 commit comments