Speech Recognition in Windows Phone 8

Next This is a tutorial. I am making an example speech recognition program in WP8.I code, for example:

public async void SpeechToText_Click(object sender, RoutedEventArgs e) { SpeechRecognizerUI speechRecognition=new SpeechRecognizerUI(); SpeechRecognitionUIResult recoResult=await speechRecognition.RecognizeWithUIAsync(); if (recoResult.ResultStatus == SpeechRecognitionUIStatus.Succeeded) { MessageBox.Show(string.Format("You said {0}.", recoResult.RecognitionResult.Text)); } } 

After starting the program, I always come across the message “ We are sorry, but we can’t access the network right now ,” the voice said.
Is an internet connection required? I am checking my internet connection, but that’s good, so the problem is there, can anyone explain? Is there an emulator problem or is something missing?

+7
c # speech-recognition windows-phone-8
source share
3 answers

Speech recognition requires access to Microsoft cloud services. Many people have problems so that their emulator works well with Internet applications. This MSDN article addresses this issue. If I were you, I would confirm that you really can access the Internet on the emulator using a simple WebBrowser and try to go to your chosen site. If you cannot access the external site, voice recognition will not work on your emulator.

+3
source share

You might want to check voice recognition on the emulator as you start it on a regular phone. Just click and hold the mouse button over the Windows button located at the bottom of the emulator.

In a recently launched emulator, this should lead to a “license agreement” and instructions for using voice commands, which the user must accept / reject the license agreement.

You can then test the recognized voice recognition through the system to see if something is wrong in your application or on the phone / system.

It doesn't seem like this is your problem, but in my relationship with WP8 speech recognition, this “first licensed message” may cause some problems with your application. This license notice will appear even if you are not using the WP dialog for voice recognition. You especially see this on the emulator, because every time you launch it, it is, in fact, a “new phone”, requiring the user to accept a license.

+1
source share

Make sure you have a link to the AppResLib.dll file in your project. (For example, if you are trying to localize an application) There is a known problem when this will generate an error message if a localized version of the Dll file cannot be found.

Here is the best link I know about the problem:

http://dotnet-redzone.blogspot.com/2012/12/windows-phone-8speech-recognition.html

0
source share

All Articles