本文介绍了语音识别不上网的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一些语音识别库,支持Android的,但他们没有的功能,而不调用服务器使用或不使用互联网。我的要求是,以检测某些特定的关键字,并相应地执行一些操作,而无需上网即:关键字分析应该在本地完成。那么,有没有语音识别库,它是有能力这样做。 CMU狮身人面像是别人说能做到这一点的唯一工具,但它仍然需要一个算法来找出在一次讲话中的关键词。

I have been looking for several voice recognition libraries that supports android but none of them functions without server call or without using internet. My requirement is to detect some particular keywords and perform some actions accordingly without internet i.e. the keyword analysis should be done locally. So is there any voice recognition library that is capable of doing so. CMU Sphinx is the only toolkit that people say can achieve this but it still needs an algorithm to spot a keyword in a speech.

推荐答案

您可以使用 Pocketsphinx 的或者是您可以在语料库反映了语言的用户有可能与您的应用程序发言,也可以定义一个JSGF语法所使用的语言明确定义为一组的情况下,无规则训练的统计模型。在这两种情况下,你需要有声学模型和注音符号来拼写单词的映射。该CMU狮身人面像的项目提供了这些资源,英语和一些其他语言。

You can use Pocketsphinx either with a statistical model which you can train on a corpus that reflects the language that the users are likely speak with your app, or you can define a JSGF grammar which explicitly defines the language as a set of context-free rules. In both cases you need to have the acoustic model and the mapping of phonetic symbols to orthographic words. The CMU Sphinx project provides these resources for English and a few other languages.

在演讲被认为是它成为一个简单的字符串,你可以使用任何你想申请发现关键字算法。

Once the speech is recognized it becomes a simple string to which you can apply any "spot the keyword" algorithm you wish to apply.

的Pocketsphinx为基础的Andr​​oid应用程序,使用JSGF为基础的语音识别的一个例子是 Inimesed

An example of a Pocketsphinx-based Android app that uses JSGF-based speech recognition is Inimesed.

这篇关于语音识别不上网的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 16:39