Skip to content

Commit 785da53

Browse files
Tsvetomir-Hrdimodi
authored andcommitted
docs(SpeechToTextButton): add limitation section
1 parent 76558da commit 785da53

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 component in the Edge browser or in a Blazor MAUI Hybrid APP WebView, the language for speech recognition is not detected automatically. To ensure correct behavior, it is required to set the `Lang` parameter explicitly. 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)