Skip to content

Commit d421190

Browse files
github-actions[bot]Tsvetomir-Hrdimodi
authored
Merge sttb-limitation-3203 into production (#3205)
* docs(SpeechToTextButton): add limitation section * Update components/speechtotextbutton/overview.md Co-authored-by: Dimo Dimov <[email protected]> --------- Co-authored-by: Tsvetomir Hristov <[email protected]> Co-authored-by: Dimo Dimov <[email protected]>
1 parent 76558da commit d421190

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

components/speechtotextbutton/overview.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ The SpeechToTextButton component exposes several public methods that you can cal
4040

4141
>caption Example of Calling a Method by Reference
4242
43-
<div class="skip-repl"></div>
44-
````RAZOR
43+
44+
````RAZOR.skip-repl
4545
<TelerikSpeechToTextButton @ref="speechToTextButtonRef" />
4646
4747
@code {
@@ -52,6 +52,14 @@ The SpeechToTextButton component exposes several public methods that you can cal
5252
}
5353
````
5454

55+
## Limitations
56+
57+
When you use the SpeechToTextButton in the Edge browser or in a Blazor MAUI Hybrid App, the spoken language is not detected automatically. To ensure correct behavior, you must set the SpeechToTextButton `Lang` parameter. This is required because these environments do not follow the automatic language resolution described in the [MDN Web Speech API documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/lang).
58+
59+
````RAZOR.skip-repl
60+
<TelerikSpeechToTextButton Lang="en-US" />
61+
````
62+
5563
## Supported Browsers
5664

5765
The SpeechToTextButton component relies on the Web Speech API. For a list of supported browsers, refer to the [Web Speech API documentation](https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API#browser_compatibility).

0 commit comments

Comments
 (0)