pocketsphinx

How should I set “bw” options for acoustic model adaption?

戏子无情 提交于 2019-12-25 17:18:00
问题 In tutorials it has written this command: ~~~ ./bw \ -hmmdir en-us \ -moddeffn en-us/mdef.txt \ -ts2cbfn .ptm. \ -feat 1s_c_d_dd \ -svspec 0-12/13-25/26-38 \ -cmn current \ -agc none \ -dictfn cmudict-en-us.dict \ -ctlfn arctic20.fileids \ -lsnfn arctic20.transcription \ -accumdir . ~~~ But I checked my feat.params and it has this content: ~~~ -lowerf 130 -upperf 6800 -nfilt 25 -transform dct -lifter 22 -feat 1s_c_d_dd -svspec 0-12/13-25/26-38 -agc none -cmn current -varnorm no -model ptm

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

Pocketsphinx decoder initialization returns -1

我的未来我决定 提交于 2019-12-17 14:59:02
问题 I use the raspberry pi with pocketsphinx python and I found an example here. From that script I use the same path as described in the script. When I try to run this script it give me an error: ERROR: "acmod.c", line 83: Folder 'deps/pocketsphinx/model/en-us/en-us' does not contain acoustic model definition 'mdef' Traceback (most recent call last): File "test.py", line 15, in <module> decoder = ps.Decoder(config) File "/usr/local/lib/python2.7/dist-packages/pocketsphinx/pocketsphinx.py", line

How do I turn off info logs in pocketsphinx-python

你离开我真会死。 提交于 2019-12-12 04:06:30
问题 For example, running the example.py script of the cmusphinx/pocketsphinx-python package outputs a whole bunch of info to the terminal. How do I switch it off? 回答1: Add config.set_string('-logfn', '/dev/null') 来源: https://stackoverflow.com/questions/30734860/how-do-i-turn-off-info-logs-in-pocketsphinx-python

Sending data to PocketSphinx for Windows desktop in Java

末鹿安然 提交于 2019-12-12 03:33:58
问题 Here is my thread function public void run() { recorder.start(); d.startUtt(); d.setRawdataSize(300000); byte[] b = new byte[4096]; // Skip the first buffer, usually zeroes recorder.read(b, 0, b.length); while ((!interrupted())) { int nbytes; short[] s = null; nbytes = recorder.read(b, 0, b.length); ByteBuffer bb = ByteBuffer.wrap(b, 0, nbytes); s = new short[nbytes/2]; bb.asShortBuffer().get(s); d.processRaw(s, nbytes/2, false, false); if (nbytes > 0) { d.processRaw(s, nbytes, false, false);

Google recognizer and pocketsphinx in two different classes, how to loop them?

你。 提交于 2019-12-12 01:42:20
问题 Yesterday i ask a simplified question of my problem, but think its too simplified. What my programm should do, is to hear a keyword and when he hear it, he should listen to what i said. (like if you told to siri or google now, by saying siri or ok google). I'm using pocketsphinx for the keyword and the google speechrecognizer for the longer parts. It works, but only for one time. The pocketsphinx is in the MainActivity and the google recognizer is in an extra class (Jarvis). The programm

PocketSphinx - How to understand when getHypstr() returns empty yet getInSpeech() returns True?

萝らか妹 提交于 2019-12-11 17:09:07
问题 Trying edu.cmu.sphinx.pocketsphinx with processRaw to detect silence. Using the following config: en-us.lm.bin language model en-us-ptm acoustic model cmudict-en-us.dict dictionary also setting remove_noise to True and samprate to 8000 I want to do a Ngram Search. When the While loop calling processRaw finishes I call both hypothesis.getHypstr() and decoder.getInSpeech() Why does getHypstr returns empty but getInSpeech returns True while actually there is no speech in the input argument given

How to find if espeak ended the speech?

偶尔善良 提交于 2019-12-11 16:57:26
问题 I want to use espeak in my program. I'd like to know when espeak stops speaking. Are there any flags or functions to check? Let's consider this is my program: Line 1 espeak Line 2 When I execute this code, espeak starts to say "hello, this is espeak" but before it ends, Line 2 of code is executed, and I don't like this. I am looking for a way to pause the program until espeak ends the speaking! EDIT: This is my complete code, I use pocketsphinx to recognize what the user say, then save it

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

hypothesis parameter pocketsphinx

泄露秘密 提交于 2019-12-11 09:48:46
问题 I use Pocketsphinx in my Android app. I recognize speech using addGrammarSearch (String name, File file). When there is noise around, then Pocketsphinx catches it and recognizes it as a word or phrase from the grammar. But the word was not uttered. Is there any parameter in the hypothesis, which shows how much the recognized sound is like a word from a grammar? What method can I get this parameter? I want to filter out the recognized sound, which has a low value, that is, it does not look