Maui
Maui copied to clipboard
[BUG] [Windows] SpeechToText stops listening after switching windows
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
App stops listening after switching windows (even if switched back later)
Expected Behavior
App should continue listening in background
Or at least resume listening when reactivated
Steps To Reproduce
- Open MAUI samples project
- Launch it on "Windows Machine"
- Open "Essentials" -> "SpeechToText"
- Click "StartListenAsync"
- Say "Hello" - text appears under Language Output
- Switch to Visual Studio (or anywhere else)
- Say "Is it me you're looking for?" - nothing appears in the sample app window
- Switch back to the sample app
- Say "Is it me you're looking for?" - still nothing
- Repeat 4 - 9 but this time don't switch windows - you will see all the text recognized
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
Same problem