Open sej69 opened 4 months ago
I moved off of the interface and went to directly accessing the class instead. And now, it appears to be reading one word at a time. I wonder if this was my issue with the events as well. I won't have a chance to look at that until next week now.
Describe the bug
iOS (iPAD 10)
There could be two issues here.
First, I don't know if it's a typo by Vladislav Antonyuk but on this page: https://devblogs.microsoft.com/dotnet/speech-recognition-in-dotnet-maui-with-community-toolkit/
It refers to using the listenAsync like this:
var recognitionResult = await SpeechToText.Default.ListenAsync( CultureInfo.GetCultureInfo("uk-ua"), new Progress(partialText => { RecognitionText += partialText + " "; }), cancellationToken);
The recognitionText += partialText + " ";
will duplicate the sentence / phrase being spoken. It's like it's meant to spit out word by word instead of repeating words.
And since the recognitionComplete event is not firing, I've reverted to using timers. But I noticed another weird issue. I have another open case on here regarding that. I can get the recognitionComplete to fire, only if I watch with a breakpoint on the recognitionUpdated event. But that's for the other bug report.
If I say one word like "test", or "one" the SpeechToText will fire off this word twice which is causing issues with my events handing the incoming test.
Regression
No response
Steps to reproduce
Expected behavior
Should only report once. I'm also thinking it should report the words as it sees, not the full sentence each time. And if it is supposed to be reporting the full sentence, then it should only report once.
Screenshots
No response
IDE and version
VS 2022
IDE version
17.9
Nuget packages
Nuget package version(s)
mvvm - 8.2.2, maui - 7.0.1
Additional context
No response
Help us help you
No, just wanted to report this