SpeechToTextButton crashes

1 Answer 10 Views
SpeechToTextButton
Robbe
Top achievements
Rank 1
Robbe asked on 29 Aug 2025, 07:41 PM

This happens in your samples using the Windows Machine option to launch the app.  In your samples, it does a really good job of translating the voice and putting it in the textbox but ultimately crashes with unhandled exceptions and VS.NET tries to bring up its own debugger.

 

Robbe
Top achievements
Rank 1
commented on 30 Aug 2025, 09:05 PM

I found the documentation where it mentions this is going to happen on windows.  In Android, it works just fine.  I don't intend to support Windows in production.  Hopefully, this can get resolved but not mission critical.

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 01 Sep 2025, 06:49 AM

Hello Robbe,

In general the behavior on WinUI is expected. Here is the official documentation for SpeechToTextButton setup on WinUI: 

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—Windows.Media.SpeechRecognition. There is a bug report opened for this: Application crashes after using SpeechRecognizer in a Packaged App. The issue happens only for packaged apps.

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Robbe
Top achievements
Rank 1
commented on 02 Sep 2025, 05:34 PM

Is it possible to force Android to use the Telerik icon and button for the microphone?  It puts its own circular button in there in both your samples and my app.  Screws up my layout.
Didi
Telerik team
commented on 03 Sep 2025, 08:08 AM

I am not sure I understand this scenario. Send images of the current look and the exact look you want to achieve. 

In general you can style the button, this is described here: https://docs.telerik.com/devtools/maui/controls/speechtotextbutton/styling also you can use the exposed visual states: https://docs.telerik.com/devtools/maui/controls/speechtotextbutton/visual-states 

 

Tags
SpeechToTextButton
Asked by
Robbe
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or