CommunityToolkit / Maui

The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier
https://learn.microsoft.com/dotnet/communitytoolkit/maui
MIT License
2.19k stars 375 forks source link

[BUG] [Windows] SpeechToText stops listening after switching windows #2017

Open lostmsu opened 1 month ago

lostmsu commented 1 month ago

Is there an existing issue for this?

Did you read the "Reporting a bug" section on Contributing file?

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

  1. Open MAUI samples project
  2. Launch it on "Windows Machine"
  3. Open "Essentials" -> "SpeechToText"
  4. Click "StartListenAsync"
  5. Say "Hello" - text appears under Language Output
  6. Switch to Visual Studio (or anywhere else)
  7. Say "Is it me you're looking for?" - nothing appears in the sample app window
  8. Switch back to the sample app
  9. Say "Is it me you're looking for?" - still nothing
  10. 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

Metalvast commented 1 month ago

Same problem