Click here to Skip to main content
15,913,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
through windows application i saved a wave file.now i want to display the saved wave file
speech inside textbox in tamil letters. i can able to display the values in english letters
but i can't able to display it in tamil. i tried globlization and localization still
i can't able to do it.


if anyone have any idea about this help me
thanks in advance
Posted
Comments
Prasad Khandekar 3-Jun-13 9:04am    
Hello Prabhakar,

Windows Forms applications are entirely Unicode-enabled, meaning that each character is represented by a unique number, no matter what the platform, program, or language. (http://msdn.microsoft.com/en-us/library/401dkz3c.aspx). So I am suspecting that there is a problem in the way you are reading or getting this tamil text.

Regards,
Bernhard Hiller 3-Jun-13 9:13am    
I do not understand what you are talking about. What is "saved wave file
speech"? Do you try to do "Speech Recognition"?
prabhakar78 3-Jun-13 9:14am    
hi i send the code to you if you i need any modifications then tell me

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);
}
}

}
}
prabhakar78 3-Jun-13 9:22am    
no it's not a speech recoginsation. i am just talking in the microphone in tamil
and save it as a wave file and i just want to display that speech in textformat using richtextbox
which should be displayed using tamil letters

1 solution

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