Sometimes , we don't want to type some words by keyboard in the App , if you got tired and you want just speech so here is the solution.
Using the code
First of all , you need to add the Capability
ID_CAP_SPEECH_RECOGNITION on the Manifest file.
we create an instance of SpeechRecognitionResult.
SpeechRecognitionResult recoResult = await myRecognizer.RecognizeAsync();
The speech will be Translated by bing. if it recognise what you said as the correct language it will return it as a Text else it will return an erreur.
if (recoResult.TextConfidence == SpeechRecognitionConfidence.Rejected)
test = "Sorry, didn't catch that. \n\nSay again.";
else if (recoResult.TextConfidence == SpeechRecognitionConfidence.Low)
test = "Not sure what you said. \n\nSay again.";
else if (recoResult.TextConfidence == SpeechRecognitionConfidence.High ||
recoResult.TextConfidence == SpeechRecognitionConfidence.Medium)
catch (Exception ee)
You just implement this code , you should change the language on the Settings on you device.
You can know create many usefull Apps , what are you waiting for !