[BUG] [Windows] SpeechToText.RecognitionResultCompleted never fires after StartListenAsync
Is there an existing issue for this?
- [X] I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
- [X] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
RecognitionResultCompleted never fires and handler breakpoint is never hit
Expected Behavior
RecognitionResultCompleted is fired after recognizer decides user stopped talking
Steps To Reproduce
- Open MAUI samples project
- Put a breakpoint on
HandleRecognitionResultCompletedmethod - Launch it on "Windows Machine"
- Open "Essentials" -> "SpeechToText"
- Click "StartListenAsync"
- Say "Hello"
- Wait
Link to public reproduction project repository
https://github.com/CommunityToolkit/Maui
Environment
- .NET MAUI CommunityToolkit: 9.0.2
- OS: Windows 11 23H2
- .NET MAUI: 8.0.70
Anything else?
No response
I added some logging around the state changed, it "hears me" but the result action never fires. ` CommunityToolkit.Maui.Media.SpeechToText.Default.StateChanged += async (sender, args) => { _log.LogInformation("STT State: " + args.State); if (args.State == SpeechToTextState.Stopped) {
// await STT.StartListenAsync(options, _cancellationToken);
}
};
SpeechRecognitionCommunity: Information: STT State: Listening
SpeechRecognitionCommunity: Information: STT State: Listening
SpeechRecognitionCommunity: Information: STT State: Listening
SpeechRecognitionCommunity: Information: STT State: Silence
SpeechRecognitionCommunity: Information: STT State: Listening
SpeechRecognitionCommunity: Information: STT State: Listening
SpeechRecognitionCommunity: Information: STT State: Stopped
SpeechRecognitionCommunity: Warning: Recognition completed failed? received NULLL!!!!!!!!!!!!!!!!
`
This used to work and Im not sure when it stopped. It basically hears me, but when the final analysis should occur when it takes my voice and turns it into text, it stops, sends null, and just is over. I had tried to restart within that failure but it didn't result in any messages being sent out.