读英文单词 [英] Reading an English Word

查看:79
本文介绍了读英文单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我想制作一个实时读取给定英语单词的程序。

我有2个想法制作它,但我需要一些指导扔掉它们



1)是建立一个包含所有英文单词和每个单词发音的数据库,所以给出一个单词我将不得不在数据库中查找它并播放单词



我面临的问题:

A)我找不到一个数据库所有的英语单词发音

B)我担心在这样的数据库中搜索需要很长时间才能成为一个实时程序,但它不应该那么糟糕,因为最大数量的单词会大约450,000字。





2)每个字母都有一个发音(可能存储在数据库中),每个字母都有具有不同发音的字母组合,如''oo''和''o'等...

问题:

A)同样的第一个问题,是吗这样的DB ??

B)这种方式会有很好的表现吗?



提前谢谢,

Hello,

I want to make a program that reads a given English word in real time.
I have 2 ideas to make it but I need some guidance threw them

1) is to make have a database with all the English words and a pronunciation for each word, so given a word I will have to look for it in the DB and play the word

Problems that I face:
A) I cant find a DB with all the pronunciation of English words
B) I am afraid that searching in such DB would take long time to be a Real Time Program, but it shouldn''t be that bad as maximum number of words would be around 450,000 words.


2) is to have a pronunciation for each alphabetical letter (maybe stored in a DB) and for each combination of letters that have different pronunciation like ''oo'' and ''o'' etc...
Problems:
A) The same first problem, is there such a DB ??
B) will this way work with good performance ??

Thanks in advance,

推荐答案

具有所有英语单词发音的DB确实存在(好吧,所有单词都会夸张:-))。它被称为 DictationGrammar

http://msdn.microsoft.com/en-us/library/system.speech.recognition.dictationgrammar.aspx [ ^ ]。



现在,麻烦来了:我用 SpeechRecognizer SpeechRecognitionEngine 尝试了它(请参阅 http://msdn.microsoft.com/en-us/library/ms554855.aspx [<一个在Windows 7上,href =http://msdn.microsoft.com/en-us/library/ms554855.aspxtarget =_ blanktitle =新窗口> ^ ])应用语法工作得相当好,大型语法会带来麻烦,而且听写的识别质量很差,不值得付出努力。试试看。



据说,存在具有良好听写质量的识别引擎,但可下载的Windows看起来像腐烂好。它只适用于简单的识别工作,而不是听写。可惜。







回答后续问题:



现在,相反:没什么可寻求的:使用相同的程序集和对等命名空间: System.Speech.Synthesis

http://msdn.microsoft.com/en -us / library / system.speech.synthesis.aspx [ ^ ]。



显然,这更容易。 :-)



-SA
The "DB with all the pronunciation of English words" does exist (well, "all words" would be some exaggeration :-)). It is called DictationGrammar:
http://msdn.microsoft.com/en-us/library/system.speech.recognition.dictationgrammar.aspx[^].

Now, here is the trouble: I tried it with both SpeechRecognizer and SpeechRecognitionEngine (please see http://msdn.microsoft.com/en-us/library/ms554855.aspx[^]), on Windows 7. Small per-application grammars work fairly well, large grammars cause trouble, and the quality of recognition with dictation is so poor that it does not worth the effort. Try it to see.

Reportedly, recognitions engines with decent dictation quality exist, but the one downloadable for Windows looks like rotten good. It''s good only for simple recognition chores, not dictation. Pity.



In response to the follow-up question:

Now, the opposite: nothing much to seek for: use the same assembly and the peer namespace: System.Speech.Synthesis:
http://msdn.microsoft.com/en-us/library/system.speech.synthesis.aspx[^].

Apparently, this is much easier. :-)

—SA






对不起你的第一个答案,希望第一个解决方案可以帮助你。



对于你的第二个问题,你可以按照它们的频率对每个单词进行评分。使用。通过这种方式,您可以过滤出租用的常用单词。所以你不需要从数据库中获取450000个单词。虽然我从来没有尝试过这样尝试,但不要忘记发表您的评论。



希望这些信息可以帮助您。
Hi

sorry for your first answer, Hope first solution helps you in that.

For your second question, you can rate each word by their frequency of use. by that way you can filter out lease frequently used words. so you do not need to fetch 450000 words from the database. Although i have never try so try from your side and don''t forget to post your review.

hope this information helps you.

这篇关于读英文单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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