Maui icon indicating copy to clipboard operation
Maui copied to clipboard

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

Open lostmsu opened this issue 1 year ago • 1 comments

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

  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

lostmsu avatar Jul 11 '24 21:07 lostmsu

Same problem

Metalvast avatar Jul 25 '24 20:07 Metalvast