cmusphinx

Xcode compile error: Command Lex failed with a nonzero exit code

走远了吗. 提交于 2019-12-11 16:57:05
问题 I am getting an error message in Xcode for an iOS project during compile time pertaining to the file 6844.lm in my project that says: Command Lex failed with a nonzero exit code What is Xcode trying to do here with command Lex? The .lm file isn't even inteded by me to be compiled by Xcode. It needs to be used by a third party framework. Is there a way for me to tell Xcode not to try to perform that Lex command that is generating an error? I don't show my code because the error apparently

Setting Up PocketSphinx in Mac OS X

三世轮回 提交于 2019-12-11 11:24:42
问题 I am running Enthought Python 2.7 as well as default Python 2.7 , Xcode 4.5.1 in Mac OS 10.8.2 . I am trying to develop a speech to text converter in Python . I use Enthought Python as it allows me to record in 16000Hz, 1 Channel using pyaudio , which is needed for pocketsphinx to work. I am trying to setup pocketsphinx using brew install pocketsphinx . I get the following errors Even manual installation using make and using default python results in same errors Using brew doctor, I get How

Pocketsphinx recognizes random phrases in a silence

百般思念 提交于 2019-12-11 10:48:05
问题 I have a pocketsphinx installed on Raspberry Pi and a microphone connected to it. When i run pocketsphinx_continuous using command pocketsphinx_continuous -inmic yes -dict dict.dict -hmm /home/pi/zero_ru.cd_cont_4000 -jsgf mygrammar.gram it starts to recognize random phrases (but in most cases the same phrase) when I am not speaking. And when I do, result is the same. I use acoustic model for russian language. Please, need your help. 回答1: You need to use keyword spotting mode. Pocketsphinx

UnsupportedAudioFileException in LIUM Speaker Diarization

感情迁移 提交于 2019-12-11 09:58:31
问题 I'm running the LIUM 8.4.1 Jar with this command from the quickstart: java -Xmx2024m -jar ../diarization/lium_spkdiarization-8.4.1.jar --fInputMask=./pcd.wav --sOutputMask=./showName.seg --doCEClustering showName However, the program fails with the following Unsupported Audio File Exception. How does this error crop up and what am I missing to solve it? My set up has been to install cmusphinx4 from source, then download the lium jar. Diarization INFO | Diarization tuning {main() / 10}

Large vocabulary speech recognition in sphinx4

瘦欲@ 提交于 2019-12-11 09:48:08
问题 As far as I know till now, sphinx4 requires grammar to identify the words. Is there anyway to get the input without using grammar rules, that is not in the grammar, somewhat like I am dictating and it will write what I will say? 回答1: As far as I know till now, sphinx4 requires grammar to identify the words. No, sphinx4 supports large vocabulary speech recognition Is there anyway to get the input without using grammar rules, that is not in the grammar, somewhat like I am dictating and it will

Sphinx4 breaks on AWS Elastic Beanstalk, works on dev machine

房东的猫 提交于 2019-12-11 09:43:56
问题 I created a dummy Maven project that wraps CMU Sphinx4 in a servlet. The dependencies are sphinx4-core:1.0-SNAPSHOT and sphinx4-data:1.0-SNAPSHOT . When running locally (Eclipse) it works great, but then I deploy it to AWS Elastic Beanstalk and I get the following exception: Property exception component:'null' property:'null' - java.io.FileNotFoundException: JAR entry edu/cmu/sphinx/models/en-us/en-us//means not found in /var/lib/tomcat8/webapps/ROOT/WEB-INF/lib/sphinx4-data-1.0-SNAPSHOT.jar

Weird pocketsphinx accuracy degredation

别说谁变了你拦得住时间么 提交于 2019-12-11 09:35:51
问题 A little bit of context - I'm creating a pocketsphinx application for android, using jsgf grammars (though the problem persists with fsg grammars as well). My code is based on the pocketsphinx demo for android. Pocketsphinx is producing a bizarre issue where the accuracy appears to be degrading after only a couple of queries to the engine. The first query has near perfect accuracy - it can recognize relatively complicated and convoluted phrases without difficulty. However the second, and

How to change this app to disable input from command line?

[亡魂溺海] 提交于 2019-12-11 07:29:18
问题 This is the Original code: #include <stdio.h> #include <string.h> #include <assert.h> #if defined(_WIN32) && !defined(__CYGWIN__) #include <windows.h> #else #include <sys/select.h> #endif #include <sphinxbase/err.h> #include <sphinxbase/ad.h> #include "pocketsphinx.h" static const arg_t cont_args_def[] = { POCKETSPHINX_OPTIONS, /* Argument file. */ {"-argfile", ARG_STRING, NULL, "Argument file giving extra arguments."}, {"-adcdev", ARG_STRING, NULL, "Name of audio device to use for input."},

microphone not starting after one iteration in sphinx

无人久伴 提交于 2019-12-11 07:26:50
问题 I am using CMU sphinx library, but after successfully running one iteration, this error appears "Can't open microphone line with format PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, big-endian not supported." Cannot start microphone. When run on eclipse in ubuntu 12.10, code works fine for all iterations. Why is this error appearing when using eclipse in Windows 7 ? 回答1: If you have something like this in your config xml file: <component name="microphone" type="edu.cmu.sphinx.frontend

Does pocketsphinx flush stdout?

此生再无相见时 提交于 2019-12-11 05:17:19
问题 I have been tinkering around with the CMUSphinx/Pocketsphinx and Node.js. What I'd like to do is spawn pocketsphinx_continuous in the background and then use node as a traffic control layer on top. However, pocketsphinx seems to ignore stdout completely. Does anyone know if that is by design? If I run it via CLI I will see out put like: READY.... Listening... INFO: ngram_search.c(467): Resized score stack to 200000 entries INFO: ngram_search.c(459): Resized backpointer table to 10000 entries