语音识别器 - 如何以特定语言显示识别的单词? [英] Voice recognizer - How to display recognized words in specific language?

查看:146
本文介绍了语音识别器 - 如何以特定语言显示识别的单词?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的项目中,我只是用麦克风录制泰米尔语音并将其保存为波形文件。

和我现在想要的是我想要显示在richtextbox或listbox中录制的语音内容.i

可以用英语完成。但是我无法在泰米尔语中显示它。我的代码是

显示录制的内容。

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.

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



我尝试过执行loclisation仍然无法进行找到一个解决方案。如果有人知道什么

我在这段代码中做错了帮助我。



提前谢谢


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

推荐答案

请尝试此链接

http://msdn.microsoft.com/en-us/library/y99d1cd3(VS.80).aspx [ ^ ]



http://www.mastercsharp.com/Article / 79 / windows-forms-in-c-with-vs-net [ ^ ]



<小时ef =http://www.dotnetcurry.com/ShowArticle.aspx?ID=174> http://www.dotnetcurry.com/ShowArticle.aspx?ID=174 [ ^ ]



希望这有帮助
Please try this links
http://msdn.microsoft.com/en-us/library/y99d1cd3(VS.80).aspx[^]

http://www.mastercsharp.com/Article/79/localization-of-windows-forms-in-c-with-vs-net[^]

http://www.dotnetcurry.com/ShowArticle.aspx?ID=174[^]

Hope this helps


我认为你不能使用全球化来做到这一点。在逐字显示之前,您需要识别特定语言的每个单词。

看看这里:

[ ^ ]

http://sympletech.com/using-c-to-do-voice-识别 - 使用内置语音识别引擎类/ [ ^ ]

http://stackoverflow.com/questions/2906778/c-sharp-speech-recognition [ ^ ]



其他有用资源:

C#语言翻译器 [ ^ ]

http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/f10a05a6-549f-432c-b311 -f098e89d93a2 [ ^ ]

http://www.c-sharpcorner.com/blogs/7582/word-translator-in-c-sharp.aspx [ ^ ]
I think you can't do it using Globalization. You need to recognize each word in specific language before displaying word by word.
Have a look here:
Speech recognition, speech to text, text to speech, and speech synthesis in C#[^]
http://sympletech.com/using-c-to-do-voice-recognition-using-the-built-in-speechrecognitionengine-class/[^]
http://stackoverflow.com/questions/2906778/c-sharp-speech-recognition[^]

Other useful resources:
C# Language Translator[^]
http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/f10a05a6-549f-432c-b311-f098e89d93a2[^]
http://www.c-sharpcorner.com/blogs/7582/word-translator-in-c-sharp.aspx[^]


您的语言需要语音识别引擎!这将以适当的编码为您提供文本。我怀疑泰米尔语的识别器是否可用 - 泰米尔语是一种凝聚语言,因此对于今天的语音识别统计方法而言可能过于复杂。
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.


这篇关于语音识别器 - 如何以特定语言显示识别的单词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆