cmusphinx

Android offline voice recognition

前提是你 提交于 2020-01-01 19:22:56
问题 I already use HTK (Hidden Markov Model Tool Kit) for recognizing specific commands used to control my Android application, but in this case I need to pass some voice data to a server and that may consume more time. To prevent this latency, I am thinking about using pocketsphinx to recognize the voice data locally with the Android application so that I won't need to pass that audio to the server. If this is a good idea, is it easy to learn pocketsphinx from scratch? Also, what are advantages

Disable console mess in CMUSphinx4

帅比萌擦擦* 提交于 2019-12-31 02:32:08
问题 I'm trying CMUSphinx but I'm having a hard time. I have included core and data jars to the project in Eclipse which I have downloaded from here I tried to do Live speech recognition as mentioned in the tutorial but when I try to run it, the console is filled with some kind of errors like The dictionary is missing a phonetic transcription for the word '....' and many. Code: import edu.cmu.sphinx.api.Configuration; import edu.cmu.sphinx.api.LiveSpeechRecognizer; import edu.cmu.sphinx.api

Cant start service? (Speech recog)

与世无争的帅哥 提交于 2019-12-28 02:18:32
问题 I want to listen for the word hello using pocketsphinx in a service continuously I get the error. Here is the full stack trace. Here is a small portion of it. Unable to create service curlybrace.ruchir.myApp.MyService: java.lang.RuntimeException: new_Decoder returned -1 It is caused by this: setupRecognizer(assetDir); //SETUP and this: .getRecognizer(); In my onCreate : Log.v(TAG, "Voice recognition activated!"); //Register voice recog listener :) Assets assets = null; try { assets = new

Use multiple dictionaries for cmu sphinx

不羁岁月 提交于 2019-12-24 21:33:20
问题 For my project the default dictionary provided by the Sphinx is not sufficient. I need to use another custom dictionary along with the provided dictionary. Now my question is that is there any way of specifying multiple dictionary files to Sphinx or do I need to combine both the dictionaries into a single big dictionary file? Thanks in advance :) 回答1: You have to combine dictionaries into single one. 回答2: If you want multiple dictionaries with Sphinx, what I did was to make my program delete

CMU Sphinx4 - Custom Language Model

和自甴很熟 提交于 2019-12-24 11:27:30
问题 I have a very specific requirement. I am working on an application which will allow users to speak their employee number which is of the format HN56C12345 (any alphanumeric characters sequence) into the app. I have gone through the link: http://cmusphinx.sourceforge.net/wiki/tutoriallm but I am not sure if that would work for my usecase. So my question is three-folds : Can Sphinx4 actually recognize an alphanumeric sequence with high accuracy like an emp number in my case? If yes, can anyone

CMU-Sphinx : NullPointerException at recognizer.allocate()

霸气de小男生 提交于 2019-12-24 00:48:27
问题 I've been trying to set up CMU-Sphinx4 on my PC in order to make an application using speech Recognition. I was able to setup most of the parts and configuration and trying to run the HelloWorld application provided by Sphinx, but stuck with NullPointerExcetption at recognizer.allocate(); . Complete Stack Trace : 12:34:45.501 WARNING dictionary Missing word: <sil> 12:34:45.517 WARNING jsgfGrammar Can't find pronunciation for <sil> 12:34:45.517 WARNING dictionary Missing word: <sil> 12:34:45

Python Speech Compare

人盡茶涼 提交于 2019-12-23 09:57:02
问题 I have two .wav files that I need to compare and decide if they contain the same words (same order too). I have been searching for the best method for a while now. I can't figure out how to have pyspeech use a file as input. I've tried getting the CMU sphinx project working but I cant seem to get GStreamer to work with Python 27 let alone their project. I've messed around with DragonFly as well with no luck. I am using Win7 64bit with Python27. Does anyone have any ideas? Any help is greatly

CMUSphinx for web application

拟墨画扇 提交于 2019-12-23 04:40:49
问题 I'm trying to create an speech reconigtion based web. Afer some searching, i found that cmusphinx is a library quite good for speech reconigtion application. And my problem is how can communicate between cmusphinx and web ? Sorry if this is a silly question. Thanks for all your help ! 回答1: In general, you need a web framework to marshal web requests to the Java or C code, then you just need to implement required speech-to-text methods with CMUSphinx API. Here is the JAX-RS tutorial: http:/

Training acoustic model for CMU Sphinx using Finite state grammar (JSGF)

随声附和 提交于 2019-12-23 02:21:16
问题 I need to train my own acoustic model. On the official wiki, this process is described for ngramm models in DMP format, but I need to use a (grammar) language model provided in JSGF format. Is there a such possibility? And if so, could you give a tutorial on this subject? 回答1: Modifications are minimial. Open psdecode.pl script in the installed location or in scripts and change -lm => $ST::DEC_CFG_LANGUAGEMODEL, to -jsgf => "/full/path/to/jsgf/file", 来源: https://stackoverflow.com/questions

I want to incorporate continuous (hands free) voice command recognition in my app for home automation

情到浓时终转凉″ 提交于 2019-12-22 17:52:19
问题 I have created a simple android app for controlling a relay connected to my Raspberry Pi. I have used buttons as well as basic voice recognition to trigger those buttons and switch on/off the corresponding relay channel. As of now the voice recognition part is handled by a RecognizerIntent, wherein I need to press a button on my app to open a Google voice prompt which listens to my voice command and activates/deactivates the corresponding button which controls the relay switches. I want to do