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: blazor/speech-to-text/accessibility.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ control: SpeechToText
7
7
documentation: ug
8
8
---
9
9
10
-
# Accessibility in Blazor SpeechToText component
10
+
# Accessibility in Blazor SpeechToText Component
11
11
12
12
The SpeechToText component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
13
13
@@ -37,26 +37,26 @@ The accessibility compliance for the SpeechToText component is outlined below.
37
37
38
38
<div><imgsrc="https://cdn.syncfusion.com/content/images/documentation/not-supported.png"alt="No"> - The component does not meet the requirement.</div>
39
39
40
-
## WAI-ARIA attributes
40
+
## WAI-ARIA Attributes
41
41
42
42
The following ARIA attributes are used in the SpeechToText component:
43
43
44
-
|Attributes| Purpose |
45
-
| ------------|----------------------- |
46
-
|`aria-label`| Provides an accessible name for the SpeechToText button. |
44
+
|Attribute| Purpose |
45
+
|:--- |:--- |
46
+
|`aria-label`| Provides an accessible name for the SpeechToText button, clearly identifying its function to screen readers. |
47
47
48
-
## Keyboard interaction
48
+
## Keyboard Interaction
49
49
50
-
The following keyboard shortcuts are supported by the SpeechToText component.
50
+
Users can interact with the SpeechToText component using the following keyboard shortcuts.
51
51
52
-
| Windows | Mac |Actions|
53
-
| --- | --- | --- |
54
-
| <kbd>Enter</kbd>/<kbd>Space</kbd> | <kbd>Enter</kbd>/<kbd>Space</kbd> | When the SpeechToText button has focus, pressing the enter/space key changes the state of the button. |
52
+
| Windows & Linux | Mac |Action|
53
+
|:--- |:--- |:--- |
54
+
| <kbd>Enter</kbd> / <kbd>Space</kbd> | <kbd>Enter</kbd> / <kbd>Space</kbd> | When the SpeechToText button is focused, this key combination starts or stops the speech recognition process. |
55
55
56
-
## Ensuring accessibility
56
+
## Ensuring Accessibility
57
57
58
58
The Blazor SpeechToText component's accessibility levels are ensured through an [axe-core](https://www.npmjs.com/package/axe-core) software tool during automated testing.
59
59
60
-
## See also
60
+
## See Also
61
61
62
62
*[Accessibility in Syncfusion<supstyle="font-size:70%">®</sup> components](../common/accessibility)
Copy file name to clipboardExpand all lines: blazor/speech-to-text/appearance.md
+35-41Lines changed: 35 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,37 +7,31 @@ control: SpeechToText
7
7
documentation: ug
8
8
---
9
9
10
-
# Appearance in Blazor SpeechToText component
10
+
# Appearance in Blazor SpeechToText Component
11
11
12
-
## Customizing the button
13
-
14
-
You can use the [ButtonSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfSpeechToText.html#Syncfusion_Blazor_Inputs_SfSpeechToText_ButtonSettings) property to customize the appearance of the start and stop buttons in the speech to text conversion.
15
-
16
-
### Setting start content
17
-
18
-
You can use the [Text](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextButtonSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextButtonSettings_Text) property to define text content for the listening start state in the SpeechToText button.
12
+
This guide explains how to customize the visual appearance of the Blazor SpeechToText component.
19
13
20
-
### Setting stop content
14
+
##Customizing the button
21
15
22
-
You can use the [StopStateText](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextButtonSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextButtonSettings_StopStateText) property to define text content for the listening stop state in the SpeechToText button.
16
+
The [ButtonSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfSpeechToText.html#Syncfusion_Blazor_Inputs_SfSpeechToText_ButtonSettings) property allows for detailed customization of the start and stop buttons.
23
17
24
-
### Setting iconcss
18
+
### Text content
25
19
26
-
You can use the [IconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextButtonSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextButtonSettings_IconCss) property to apply a CSS class to customize the icon appearance for the listening start state.
20
+
Define the text for the button's start and stop states using the [Text](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextButtonSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextButtonSettings_Text) and [StopStateText](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextButtonSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextButtonSettings_StopStateText) properties.
27
21
28
-
### Setting stop iconcss
22
+
### Icon
29
23
30
-
You can use the [StopIconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextButtonSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextButtonSettings_StopIconCss)property to apply a CSS class to customize the icon appearance for the listening stop state.
24
+
Set a custom icon for the button's start and stop states by applying CSS classes to the [IconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextButtonSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextButtonSettings_IconCss) and [StopIconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextButtonSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextButtonSettings_StopIconCss)properties.
31
25
32
-
### Setting icon position
26
+
### Icon position
33
27
34
-
You can display the icon on the top, bottom, left, or right side of the button text content using the [IconPosition](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextButtonSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextButtonSettings_IconPosition) property.
28
+
Use the [IconPosition](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextButtonSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextButtonSettings_IconPosition) property to display the icon at the top, bottom, left, or right of the button's text.
35
29
36
-
### Setting primary
30
+
### Primary button
37
31
38
-
You can use the [IsPrimary](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextButtonSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextButtonSettings_isPrimary) property to configure the button as a primary action button.
32
+
Configure the button as a primary action button by setting the [IsPrimary](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextButtonSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextButtonSettings_IsPrimary) property to `true`.
39
33
40
-
Below code sample demonstrates how to configure the button with above mentioned properties.
34
+
The following example demonstrates how to configure these button settings.
41
35
42
36
{% tabs %}
43
37
{% highlight razor %}
@@ -81,21 +75,17 @@ Below code sample demonstrates how to configure the button with above mentioned
81
75
82
76
## Customizing the tooltips
83
77
84
-
You can use the [TooltipSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfSpeechToText.html#Syncfusion_Blazor_Inputs_SfSpeechToText_TooltipSettings) property to customize the content and positions of the tooltip.
78
+
The [TooltipSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfSpeechToText.html#Syncfusion_Blazor_Inputs_SfSpeechToText_TooltipSettings) property allows customization of the tooltip's content and position.
85
79
86
80
### Setting start content
87
81
88
-
You can use the [Text](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextTooltipSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextTooltipSettings_Text) property to customize the content to be displayed in the tooltip when the speech recognition begins.
89
-
90
-
### Setting stop content
91
-
92
-
You can use the [StopStateText](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextTooltipSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextTooltipSettings_StopStateText) property to customize the stop button tooltip text which is displayed on-hover.
82
+
Use the [Text](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextTooltipSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextTooltipSettings_Text) and [StopStateText](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextTooltipSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextTooltipSettings_StopStateText) properties to set the content for the start and stop state tooltips.
93
83
94
-
### Setting tooltip position
84
+
### Tooltip position
95
85
96
-
You can use the [Position](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextTooltipSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextTooltipSettings_Position) property to determine the placement of tooltips relative to the button.
86
+
Determine where the tooltip appears relative to the button using the [Position](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SpeechToTextTooltipSettings.html#Syncfusion_Blazor_Inputs_SpeechToTextTooltipSettings_Position) property.
97
87
98
-
Below code sample demonstrates how to configure the tooltip settings with above mentioned properties.
88
+
This example shows how to configure the tooltip settings.
99
89
100
90
{% tabs %}
101
91
{% highlight razor %}
@@ -133,24 +123,28 @@ Below code sample demonstrates how to configure the tooltip settings with above
Customize the appearance of the SpeechToText component by applying predefined styles or creating custom styles using the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfSpeechToText.html#Syncfusion_Blazor_Inputs_SfSpeechToText_CssClass) property.
129
+
130
+
### Predefined styles
137
131
138
-
The SpeechToText component supports the following predefined styles that can be defined using the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfSpeechToText.html#Syncfusion_Blazor_Inputs_SfSpeechToText_CssClass) property. You can customize by adding the cssClass property with the below defined class.
132
+
The component supports several built-in styles for common use cases.
139
133
140
-
| CssClass | Description |
141
-
|--------|--------|
142
-
|`e-primary`|Used to represent a primary action. |
143
-
|`e-outline`|Used to represent an appearance of button with outline. |
144
-
|`e-info`| Used to represent an informative action. |
145
-
|`e-success`|Used to represent a positive action. |
146
-
|`e-warning`|Used to represent an action with caution. |
147
-
|`e-danger`| Used to represent a negative action. |
|`e-outline`|Renders the button with an outline style. |
138
+
|`e-info`| Represents an informative action. |
139
+
|`e-success`|Represents a positive action. |
140
+
|`e-warning`|Represents an action that requires caution. |
141
+
|`e-danger`| Represents a negative or destructive action.|
148
142
149
-
##Setting cssclass
143
+
### Custom styles
150
144
151
-
You can use the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfSpeechToText.html#Syncfusion_Blazor_Inputs_SfSpeechToText_CssClass) property to customize the appearance of the SpeechToText component.
145
+
Custom CSS rules can be applied by assigning a class name to the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfSpeechToText.html#Syncfusion_Blazor_Inputs_SfSpeechToText_CssClass) property, enabling tailored styling for the component.
152
146
153
-
Below code sample demonstrates how to configure cssclass and customize the button.
147
+
The following example demonstrates how to apply a custom CSS class to change the button's background color, text color, and border radius.
Copy file name to clipboardExpand all lines: blazor/speech-to-text/events.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,17 @@ control: SpeechToText
7
7
documentation: ug
8
8
---
9
9
10
-
# Events in Blazor SpeechToText component
10
+
# Events in Blazor SpeechToText Component
11
11
12
-
This section describes the SpeechToText events that will be triggered when appropriate actions are performed. The following events are available in the SpeechToText component.
12
+
The Blazor SpeechToText component provides a set of events that are triggered when specific actions occur during its lifecycle and operation. The following events are available:
13
13
14
14
|Name|Args|Description|
15
15
|---|---|---|
16
-
|Created|EventCallback|Triggers when the SpeechToText component's rendering is fully completed|
17
-
|SpeechRecognitionStarted|SpeechRecognitionStartedEventArgs|Triggers when speech recognition begins|
18
-
|SpeechRecognitionStopped|SpeechRecognitionStoppedEventArgs|Triggers when speech recognition stops|
19
-
|SpeechRecognitionError|SpeechRecognitionErrorEventArgs|Triggers when an error occurs during speech recognition or while listening. For list of possible errors, refer to the [Error handling](./speech-recognition#error-handling) section.|
20
-
|TranscriptChanging|TranscriptChangeEventArgs|Triggers when a transcription change occurs during the speech recognition.|
16
+
|Created|EventCallback|Triggers when the SpeechToText component's rendering is fully completed.|
17
+
|SpeechRecognitionStarted|SpeechRecognitionStartedEventArgs|Triggers when speech recognition begins.|
18
+
|SpeechRecognitionStopped|SpeechRecognitionStoppedEventArgs|Triggers when speech recognition stops.|
19
+
|SpeechRecognitionError|SpeechRecognitionErrorEventArgs|Triggers when an error occurs during speech recognition or while listening. For a list of possible errors, refer to the [Error handling](./speech-recognition#error-handling) section.|
20
+
|TranscriptChanging|TranscriptChangeEventArgs|Triggers when a transcription change occurs during speech recognition.|
21
21
22
22
The following example demonstrates how to configure the Blazor SpeechToText events.
0 commit comments