简体   繁体   中英

speech recognition not working in raspberry pi 3(windows iot core) using UWP

 var speechRecognizer = new SpeechRecognizer();
            await speechRecognizer.CompileConstraintsAsync();
            var webSearchGrammar = new Windows.Media.SpeechRecognition.SpeechRecognitionTopicConstraint
                (Windows.Media.SpeechRecognition.SpeechRecognitionScenario.WebSearch, "webSearch");
            speechRecognizer.Constraints.Add(webSearchGrammar);
            await speechRecognizer.CompileConstraintsAsync();
            SpeechRecognitionResult speechRecognitionResult = await speechRecognizer.RecognizeWithUIAsync();
            var question = speechRecognitionResult;

This is the code i am using to recognize speech in uwp, the solution is working in local but when deployed in raspberry pi, it's not able to recognize the speech. I also updated the latest version of windows10 iot core. Before updating windows 10 iot core it worked in raspberry pi but after updation it's not able to recognize(it's an observation)

You should check if the upgraded device has provided Voice Permission from Cortana. If not, you need to launch cortana on your device, please refer to this document about Cortana On IoT . When using Speech recognition , we should ensure that device has a microphone or the equivalent, and provides the Privacy for Speech, inking, and typing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM