我可以在语音到文本程序中使用类似字典的东西吗? [英] Can I Use Something Like A Dictionary In My Speech To Text Program?

查看:91
本文介绍了我可以在语音到文本程序中使用类似字典的东西吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将我创建的sList替换为更大词汇的东西?



Is it possible to replace the sList i created to something with a bigger vocab?

private void button2_Click(object sender, EventArgs e)
        {
            button2.Enabled = false;
            button3.Enabled = true;
            Choices sList = new Choices();
            sList.Add(new string[] { "hello", "test", "it works", "how", "are", "you", "today", "i", "am", "fine", "exit", "close" });
            Grammar gr = new Grammar(new GrammarBuilder(sList));
            try
            {
                sRecognize.RequestRecognizerUpdate();
                sRecognize.LoadGrammar(gr);
                sRecognize.SpeechRecognized +=sRecognize_SpeechRecognized;
                sRecognize.SetInputToDefaultAudioDevice();
                sRecognize.RecognizeAsync(RecognizeMode.Multiple);
           
            }



感谢您的帮助。


Thank you for any help.

推荐答案

spacemonki写道:
spacemonki wrote:



我希望能够发一篇文章并让程序拿起它并将其显示为文本。目前它只收录我作为演示列出的单词。我想知道是否有办法获得每一个单词而没有列出英语中的每个单独的单词。


I want to be able to speak an essay and for the program to pick it up and display it as text. at the moment it only picks up the words ive listed as a demo. i was wondering if there was a way to get every single word without listing each seperate word in the english language.

有了这样的拼写,很难希望得到好的东西。 :-)

而且我不是在开玩笑:每个人在提问时都可以使用拼写检查。我认为这是一个纯粹礼貌的问题。



现在,您可以使用 System.Speech.Recognition.DictationGrammar

https://msdn.microsoft.com/en-us/library/system.speech.recognition.dictationgrammar%28v=vs.110%29.aspx [ ^ ]。



但是,不要屏住呼吸 - 它可能会使识别质量极差。难怪,这么多单词在发音上如此相似。我尝试了一些更好的引擎(例如在Android上),但到目前为止我在Windows上尝试的所有免费引擎都太糟糕了,不能认真对待。试试看吧。



-SA

With such spelling as yours, it's hard to hope for something good. :-)
And I'm not quite joking: everyone can use spell checker when asking question. I think this is a matter of pure politeness.

Now, you can use System.Speech.Recognition.DictationGrammar:
https://msdn.microsoft.com/en-us/library/system.speech.recognition.dictationgrammar%28v=vs.110%29.aspx[^].

However, don't hold your breath — it can make the quality of recognition prohibitively poor. No wonder, so many words are so similar in pronunciation. I tried some better engines (on Android, for example), but all free-of-charge engines I tried on Windows so far was too bad to take seriously. Just give it a try though.

—SA


这篇关于我可以在语音到文本程序中使用类似字典的东西吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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