Skip to content

Commit 8c66e57

Browse files
committed
address comments
1 parent 0fc58ce commit 8c66e57

File tree

7 files changed

+27
-29
lines changed

7 files changed

+27
-29
lines changed

_contentTemplates/get-started.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ To visualize the Telerik controls, register them in the `MauiProgram.cs` file of
3737
.UseTelerik()
3838
<!-- Code omitted for brevity -->
3939
```
40+
4041
#end
4142

4243
#add-telerik-component

controls/bottomsheet/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ At the end, you will achieve the following result.
1818

1919
Before adding the BottomSheet, you need to:
2020

21-
1. [Set up your .NET MAUI application]({%slug maui-getting-started %}#step-1-set-up-your-net-maui-application).
21+
1. [Set up your .NET MAUI application]({%slug maui-getting-started%}#prerequisites).
2222

23-
1. [Download Telerik UI for .NET MAUI]({% slug maui-getting-started %}#step-2-download-telerik-ui-for-net-maui).
23+
1. [Download Telerik UI for .NET MAUI]({% slug maui-getting-started%}#step-0-start-your-free-trial).
2424

25-
1. [Install Telerik UI for .NET MAUI]({%slug maui-getting-started %}#step-3-install-telerik-ui-for-net-maui).
25+
1. [Install Telerik UI for .NET MAUI]({%slug maui-getting-started%}#step-3-add-the-telerik-nuGet-server).
2626

2727
## Define the Control
2828

controls/speechtotextbutton/getting-started.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ At the end, you will achieve the following result.
1818

1919
Before adding the SpeechToTextButton, you need to:
2020

21-
1. [Set up your .NET MAUI application]({%slug maui-getting-started %}#step-1-set-up-your-net-maui-application).
21+
1. [Set up your .NET MAUI application]({%slug maui-getting-started%}#prerequisites).
2222

23-
1. [Download Telerik UI for .NET MAUI]({% slug maui-getting-started %}#step-2-download-telerik-ui-for-net-maui).
23+
1. [Download Telerik UI for .NET MAUI]({% slug maui-getting-started%}#step-0-start-your-free-trial).
2424

25-
1. [Install Telerik UI for .NET MAUI]({%slug maui-getting-started %}#step-3-install-telerik-ui-for-net-maui).
25+
1. [Install Telerik UI for .NET MAUI]({%slug maui-getting-started%}#step-3-add-the-telerik-nuGet-server).
2626

2727
## Required Permissions
2828

29-
Before adding the contol, ensure that you have the required permissions set up in your project:
29+
Before adding the contol, ensure that you have the required permissions set up in your project.
3030

3131
### Android
3232

@@ -49,7 +49,7 @@ Add the `NSMicrophoneUsageDescription` and `NSSpeechRecognitionUsageDescription`
4949

5050
### WinUI
5151

52-
There are limitations when using the SpeechToTextButton on WinUI. When clicking on the control, the InvalidOperationException occurs.
52+
There are limitations when using the SpeechToTextButton on WinUI. When clicking on the control, the `InvalidOperationException` occurs.
5353

5454
To turn speech recognition on WinUI, review the [WinUI Support]({%slug speechtotextbutton-winui-support%}) article.
5555

controls/speechtotextbutton/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Overview
33
page_title: .NET MAUI SpeechToTextButton Documentation - Overview
4-
description: Try now the Telerik UI for .NET MAUI SpeechToTextButton control
4+
description: Learn how the Telerik UI for .NET MAUI SpeechToTextButton enables seamless speech-to-text conversion in your applications.
55
tags: speech to text for .net maui, .net maui, ui for .net maui, microsoft .net maui
66
position: 0
77
slug: speechtotextbutton-overview

controls/speechtotextbutton/states.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ slug: speechtotextbutton-states
99

1010
# .NET MAUI SpeechToTextButton Architecture and States
1111

12-
The SpeechTextButton control provides visual feedback and handle user interactions. The button uses a speech recognition service. The service provides per platform implementation or an AI agent conenction. Almost all operations are asynconous.
13-
14-
The SpeechToTextButton control in .NET MAUI has several states that reflect its current operation and user interaction.
12+
The SpeechTextButton control handles user interactions and provides visual feedback about its current state, for example, when it's listening or ready. The button uses a speech recognition service that varies by platform and also provides an AI agent connection. Almost all operations are asynchronous.
1513

1614
The image below explains how the control works and how the states are managed:
1715

controls/speechtotextbutton/visual-states.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ slug: speechtotextbutton-visual-states
99

1010
# .NET MAUI SpeechToTextButton Visual States
1111

12-
The SpeechToTextButton control provides visual states that allow you to customize its appearance based on different interaction and operational states. Visual states enable you to create responsive UI that provides clear feedback to users about the control's current status.
12+
The SpeechToTextButton control provides visual states that allow you to customize its appearance based on user interactions and operational states. Visual states enable you to create responsive UI that provides clear feedback to users about the control's current status.
1313

1414
You can use visual states to change the visual appearance of the control depending on its current state&mdash;whether it's disabled, pressed, listening for speech, or encountering an error.
1515

@@ -32,11 +32,11 @@ The SpeechToTextButton provides the following `CommonStates` visual states:
3232

3333
The SpeechToTextButton automatically transitions between visual states based on user interaction and speech recognition status:
3434

35-
- `Normal``Pressed`&mdash;When user starts pressing the button
36-
- `Pressed``Listening`&mdash;When speech recognition begins
37-
- `Listening``Normal`&mdash;When speech recognition completes successfully
38-
- Any State → `Error`&mdash;When an error occurs during operation
39-
- Any State → `Disabled`&mdash;When the control is programmatically disabled
35+
- `Normal``Pressed`&mdash;When the user presses the button.
36+
- `Pressed``Listening`&mdash;When speech recognition begins.
37+
- `Listening``Normal`&mdash;When speech recognition completes successfully.
38+
- Any State → `Error`&mdash;When an error occurs during operation.
39+
- Any State → `Disabled`&mdash;When the control is programmatically disabled.
4040

4141
## Using Visual States
4242

controls/speechtotextbutton/winui-support.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,25 @@ The Speech Recognizer uses platform-specific speech recognition services. By def
1414

1515
On WinUI, the `RadSpeechRecognizer` is not set to the `RadSpeechToTextButton`. When you click the control, an `InvalidOperationException` is thrown. The reason behind this is a limitation in the WinUI platform speech recognition service&mdash;[`Windows.Media.SpeechRecognition`](https://learn.microsoft.com/en-us/uwp/api/windows.media.speechrecognition?view=winrt-26100).
1616

17-
The `RadSpeechRecognizer` on WinUI utilizes the [`Windows.Media.SpeechRecognition`](https://learn.microsoft.com/en-us/uwp/api/windows.media.speechrecognition?view=winrt-26100). There are specific considerations when using the control on WinUI due to limitations in the `Windows.Media.SpeechRecognition` API.
17+
The `RadSpeechRecognizer` on WinUI utilizes the [`Windows.Media.SpeechRecognition`](https://learn.microsoft.com/en-us/uwp/api/windows.media.speechrecognition?view=winrt-26100). There are specific considerations when using the control on WinUI due to limitations in the `Windows.Media.SpeechRecognition` API. The app crashes when trying to close the application via the "X" button and the app is **Packaged**.
1818

19-
## Limitations in Windows.Media.SpeechRecognition
20-
21-
* 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)
19+
> See the following bug report for more details: [Application crashes after using SpeechRecognizer in a Packaged App](https://github.com/microsoft/microsoft-ui-xaml/issues/10697).
2220
2321
## Solutions
2422

25-
To use the SpeechToTextButton on WinUI, you can use one of the following approaches:
23+
To use the SpeechToTextButton on WinUI, you can use one of the following approaches described in the table below:
24+
25+
| Packaged Apps | Unpackaged Apps |
26+
| ------------- | --------------- |
27+
| Create a [custom recognizer]({%slug speechtotextbutton-custom-recognizer%}) | Create a [custom recognizer]({%slug speechtotextbutton-custom-recognizer%}) |
28+
| | Use the `RadSpeechRecognizer` |
2629

27-
* Set the `SpeechRecognizerCreator` property of the `RadSpeechToTextButton` to `RadSpeechRecognizer` for **Unpackaged** apps:
30+
If you want to use the `RadSpeechRecognizer` on WinUI, set the `SpeechRecognizerCreator` property of the `RadSpeechToTextButton` to `RadSpeechRecognizer`:
2831

29-
```csharp
32+
```C#
3033
this.speechToTextButton.SpeechRecognizerCreator = () => new RadSpeechRecognizer();
3134
```
3235

33-
* Create a [custom recognizer]({%slug speechtotextbutton-custom-recognizer%}) for **Packaged** and **Unpackaged** apps.
34-
35-
* Use an **Unpackaged** app deployment model.
36-
3736
### Configure Speech Recognition
3837

3938
Confirm the following are enabled in your WinUI app:

0 commit comments

Comments
 (0)