语音到文本在Android定制不同寻常的词语匹配 [英] Speech to Text on Android with custom unusual word matching

查看:201
本文介绍了语音到文本在Android定制不同寻常的词语匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够使用Android的语音到文本引擎识别各种不寻常的词语的句子。

I would like to be able to use Android's Speech-To-Text engine to recognize a variety of unusual words in sentences.

要举个例子,守信用脑波出来STT作为电子供应曲线图。当我使用探测法或音位比较所说的是什么到硬codeD值,该值似乎永远不会匹配或随机匹配。如果我使用一个阈值(Math.abs(str1.compareTo(STR2))< = 1,例如),然后匹配变得非常松散,几乎所有的东西将匹配

To give an example, the word "electroencephalograph" comes out of STT as "electronics supply graph". When I use Soundex or Metaphone to compare what is spoken to a hard-coded value, the value seem to never match or randomly match. If I use a threshold (Math.abs(str1.compareTo(str2)) <= 1, for example), then the matching becomes very loose and almost anything will match.

在本质上,我想要做的是类似查找从报价数据库报价由背诵的报价。这个问题似乎更在使用谷歌的语音到文本引擎有限wordset。

In essence, what I would like to do is similar to looking up quotes from a quote-database by reciting the quote. The problem seems to be more in the limited wordset used by Google's Speech-To-Text engine.

任何想法?

推荐答案

您可以尝试 CMUSphinx 带或不带基于语法的语音识别。

You could try CMUSphinx with or without grammar-based speech recognition.

看那 Inimesed 的应用程序。这是一个开源的Andr​​oid应用程序,它不使用CMUSphinx JSGF为基础的语音识别。在这种情况下,语法编译的用户的地址簿的基础上。你可以简单地抛出这部分,有一个固定的语法,它包含所有的短语。

Look at the Inimesed app. This is an open-source Android app which does JSGF-based speech recognition using CMUSphinx. In this case the grammar is compiled on the basis of the user's address book. You could simply throw out this part and have a fixed grammar that contains all your phrases.

如果问题比较,你必须包含偶尔的不寻常的词,然后基于语法的语音识别可能无法正常工作的自由形式的句子。在这种情况下,认识到与所述n-gram语言模型,但包括所有的不寻常的词语的词典。

If the problem is more that you have free-form sentences which contain occasional unusual words then grammar-based speech recognition might not work. In this case recognize with the n-gram language model but include all the unusual words in the dictionary.

这篇关于语音到文本在Android定制不同寻常的词语匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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