Click here to Skip to main content
15,887,374 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
In my project i just record the tamil voice with microphone and save it as wave file.
and what i want now is i want to display the recorded voice content in richtextbox or listbox .i
can able to do it in english .but i cna't able to display it in tamil.here is my code for
displaying the recorded content.
C#
private void button1_Click(object sender, EventArgs e)
{
    //RegisterNamibianCulture();
    using (OpenFileDialog openFileDialog = new OpenFileDialog())
    {
        openFileDialog.Multiselect = false;
        openFileDialog.Filter = "Wav audio file|*.wav";
        openFileDialog.Title = "Open a Wav audio File";
        if (openFileDialog.ShowDialog() == DialogResult.OK)
        {
            //System.Globalization.CultureInfo culture = new System.Globalization.CultureInfo("ta-IN");
            //SpeechRecognitionEngine recognizer = new SpeechRecognitionEngine(culture );
            recognizer.SetInputToWaveFile(openFileDialog.FileName);
            recognizer.LoadGrammar(new DictationGrammar());

            RecognitionResult Result = recognizer.Recognize();
            if (Result != null)
            {
                foreach (RecognizedWordUnit Word in Result.Words)
                {
                    //InputLanguage lang = GetArabicLang();
                    //if (lang == null)
                    //    throw new NotSupportedException("tamil language keybord is not installed.");
                    ////Set the current language of the system to 
                    ////the InputLanguage instance you need. 
                    //InputLanguage.CurrentInputLanguage = lang;
                    InputLanguage lan;
                    richTextBox1.Text = Convert.ToString(Word.Text, System.Globalization.CultureInfo.CreateSpecificCulture("ta-IN"));                    
                    textBox1.Text = Convert .ToString (Word.Text,System.Globalization.CultureInfo.CreateSpecificCulture("ta-IN"));
                    listBox1.Items.Add(textBox1.Text);
                }
            }           
        }
    }
}

I tried perform loclisation still i can't able to find a solution.if anyone have any idea what
I am doing wrong in this code help me.

Thanks in advance
Posted
Updated 3-Jun-13 20:10pm
v3

 
Share this answer
 
Comments
Maciej Los 4-Jun-13 2:01am    
Please, read question carefuly. It's wrong answer.
You need a Speech Recognition engine for your language! And that will give you the text in an appropriate encoding. I doubt that a recognizer for Tamil is available - Tamil is an agglutinating language, and thus likely too complicated for today's statistical methods of speech recognition.
 
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