From eb3130d2831091b9a62fec47174b297366bc63c1 Mon Sep 17 00:00:00 2001 From: Tsvetomir Hristov <106250052+Tsvetomir-Hr@users.noreply.github.com> Date: Fri, 29 Aug 2025 09:32:44 +0300 Subject: [PATCH 1/2] docs(SpeechToTextButton): add limitation section --- components/speechtotextbutton/overview.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/components/speechtotextbutton/overview.md b/components/speechtotextbutton/overview.md index e07277703..148866c76 100644 --- a/components/speechtotextbutton/overview.md +++ b/components/speechtotextbutton/overview.md @@ -40,8 +40,8 @@ The SpeechToTextButton component exposes several public methods that you can cal >caption Example of Calling a Method by Reference -
-````RAZOR + +````RAZOR.skip-repl @code { @@ -52,6 +52,14 @@ The SpeechToTextButton component exposes several public methods that you can cal } ```` +## Limitations + +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). + +````RAZOR.skip-repl + +```` + ## Supported Browsers 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). From b6734190ed6ff24e5a5a8b32d1eee9f4c808f84d Mon Sep 17 00:00:00 2001 From: Tsvetomir Hristov <106250052+Tsvetomir-Hr@users.noreply.github.com> Date: Fri, 29 Aug 2025 09:56:15 +0300 Subject: [PATCH 2/2] Update components/speechtotextbutton/overview.md Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com> --- components/speechtotextbutton/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/speechtotextbutton/overview.md b/components/speechtotextbutton/overview.md index 148866c76..f08bb0e5d 100644 --- a/components/speechtotextbutton/overview.md +++ b/components/speechtotextbutton/overview.md @@ -54,7 +54,7 @@ The SpeechToTextButton component exposes several public methods that you can cal ## Limitations -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). +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). ````RAZOR.skip-repl