Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I am new to windows phone app development. I am trying to build a simple speech recognition app using SpeechRecognizerUI class. But the problem is whenever i try to debug the app in my Lumia 520 device(working on 8.1 platform), it load the listener as usual and then debugger stopped automatically at the same time it load within a second, don't allow me sufficient time to speak even a single word. I am googling since 2 days but got nothing helpful. I have provided a single button on "MainPage.xml" of my app for which i have given the following code.

C#
namespace Kundali
    {
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();  
        }
        private async void button_Click(object sender, RoutedEventArgs e)
        {
            SpeechRecognizerUI sprec = new SpeechRecognizerUI();
            SpeechRecognitionUIResult result = await sprec.RecognizeWithUIAsync();
            MessageBox.Show(string.Format("You said {0} ", result.RecognitionResult.Text));  
        }
    }




When i tried to handle the exception in catch handler it shows the exception "The text associated with this error code could not be found" not even listening the single text. Some one please help me.
Posted
Updated 17-Jan-15 20:23pm
v2

1 solution

I have the same issue

HResult = -2147199556

System.Exception

The text associated with this error code could not be found.
The requested language is not supported.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900