Reputation:
I am using Windows IOT (Windows Universal App) on a dragonboard along with Windows.Media.SpeechSynthesis and Windows.Media.SpeechRecognition.
The problem I am facing is that the Speech Synthesis is picked up by the SpeechRecognition of the system.
I do not want to disable the recognition while the text to speech is running since I have to keep the system in an 'always listening state', so I can accept commands even while it is talking.
Is there any Windows IOT class etc. that would prevent such a conflict? Or are there any other solutions that I could employ?
Thank you.
Upvotes: 2
Views: 672
Reputation: 127
I create programs in winforms c#. When I use System.Speech, I always define System.Speech.Recognition and System.Speech.Synthesis. I have not tried it on a universal side. However, the only problem I have come to use example, Alexis.SpeakAsync("....."); Alexis is the name of one of my programs. I have never had any conflict between Recognition and Synthesis cross over.. This is an idea you can try if you have the System.Speech reference.
(add) you can always add a small piece of code I always use that mutes the microphone after so many seconds and you say a keyword for it to listen to commands.. This helpful when your talking to some one, the system will listen for the keyword then listen for commands.
Upvotes: 0