cmusphinx

Pocketsphinx + Gstreamer Race Condition? Pocketsphinx can't listen to audio + record from it at the same time in Python script?

一世执手 提交于 2019-12-11 04:57:38
问题 Overview: So this is a follow up to my last problem (here). I will be posting a full answer on that very soon. I'm able to get pocketsphinx to recognize audio input from my PS3 Eye in Python via Gstreamer. By specifying the correct alsa device ( hw:1 in my case ). ISSUE: My next issue seems to involve a tiny race condition involving my Microphone already being in use and needing to be able to record something. Imagine the following: I start up my python daemon, and it's currently listening. I

How to setup tresholds to spot keywords from a list in pocketsphinx-android?

夙愿已清 提交于 2019-12-11 04:57:06
问题 I would like my Android application to do continuous keywords spotting. I'm modifying the pocketsphinx android demo to test how I can do it. I wrote this list in a file named en-keywords.txt picking words from cmudict-en-us.dict : rainbow /1e-50/ about /1e-50/ blood /1e-50/ energies /1e-50/ In setupRecognizer method I removed every search and added to the recognizer only this keyword search: File keywords= new File(assetsDir, "en-keywords.txt"); recognizer.addKeywordSearch(KWS_SEARCH,

Using Sphinx4.0 to build a speech recog. Android application

試著忘記壹切 提交于 2019-12-11 02:24:23
问题 I have been creating a java application for speech recognition using Sphinx4 in eclipse IDE and it worked out good! But now, i have an idea of turning the project to work on android platform. The code came out well for the sphinx4 demo speech recog. program in Android, But it crashes when i try to run it on a device! saying it has "Stopped Unexpectedly!" (Force closed) From my Survey in the internet, i've heard that Sphinx configures microphone in a way thats not compatible with dalvik. SO is

Error when running pocketsphinx_continuous: Acoustic model definition is not specified

好久不见. 提交于 2019-12-10 21:22:40
问题 When I run pocketsphinx_continuous -inmic yes , I get this error: ERROR: "acmod.c", line 85: Acoustic model definition is not specified neither with -mdef option nor with -hmm . I've already read the information in this StackOverflow question as well as the Pocketsphinx FAQ, and neither of those helped. Here's the full stack trace: INFO: cmd_ln.c(691): Parsing command line: pocketsphinx_continuous \ -inmic yes Current configuration: [NAME] [DEFLT] [VALUE] -adcdev -agc none none -agcthresh 2.0

CMU Sphinx4 phoneme dictation

无人久伴 提交于 2019-12-10 20:51:44
问题 How can I configure sphinx4 to be able to detect only phonemes in a dictation? I've already read about partial results "You can control how often the result listener is fired by setting the configuration variable 'featureBlockSize' in the decoder." But my problem is that there are always a grammar needed, like hello.gram in the helloworld example. I need to be able to detect and recognize phoneme from a continuous speech. 回答1: This is what Sphinx has to say about it: Phoneme Recognition

CMU Sphinx 4 - 5 pre alpha install guide

核能气质少年 提交于 2019-12-10 19:56:46
问题 Are there any good, preferably step by step install guides for CMU Sphinx 4 -5prealpha(latest version)? I couldn't find any and the official guide is outdated. I've been trying to follow the steps but after i'm done i'm missing 2 jars(jsapi and tags) and if i try to get them from the version before eclipse doesn't find any of the classes. I haven't had too much experience with seting up such projects for eclipse, all i did before was maybe create some custom libraries so that's why i'm asking

Connecting to CMU Sphinx using PHP

扶醉桌前 提交于 2019-12-10 18:43:17
问题 I have been looking into Speech Recognition and ways in which this can be implemented into a website. I have found many examples on using it with Python and even one with Node.js but I want to be able to use PHP with this. Is there any way I can access CMUSphinx on a Linux server using PHP to process my inputs? Thanks 回答1: Can be done but to use asterisks as the audio capture and processing engine. See http://www.voip-info.org/wiki/view/Sphinx Example code below after your server has been

AndroidPocketSphinx: How does the system know which recognizer is invoked?

爷,独闯天下 提交于 2019-12-10 17:34:37
问题 I am studying the source code of TestPocketSphinxAndAndroidASR.java and the first thing that is not so clear to me is how the system knows which recognizer (i.e. Google or CMUSphinx) to invoke. I can see that the recognition activity is started by: Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE); but as far as I

Getting WAV file transcription to work with Sphinx4

蓝咒 提交于 2019-12-10 11:17:37
问题 I've got Sphinx-4 installed on my windows XP system and JSAPI set up. I'd like to transcribe an English spoken WAV (or MP3) file to text. When I run the "WavFile" demo - it runs successfully. java -jar WavFile.jar But, when I pass my own wav file like this: java -jar WavFile.jar c:\test.wav I get: Loading Recognizer as defined in 'jar:file:/C:/sphinx4-1.0beta3-bin/sphinx4-1.0beta3/bin/WavFile.jar!/edu/cmu/sphinx/demo/wavfile/config.xml'... Decoding jar:file:/C:/sphinx4-1.0beta3-bin/sphinx4-1

Python having trouble accessing usb microphone using Gstreamer to perform speech recognition with Pocketsphinx on a Raspberry Pi

不打扰是莪最后的温柔 提交于 2019-12-08 17:11:32
问题 So python is acting like acting like it can't hear ANYTHING from my microphone at all. Here's the problem. I have a Python ( 2.7 ) script that is suppose to be using Gstreamer to access my microphone and do speech recognition for me via Pocketsphinx . I'm using Pulse Audio and my device is a Raspberry Pi . My microphone is a Playstation 3 Eye . Now off the bat, I have already gotten pocketsphinx_continuous to run correctly and recognize the words I have defined in my .dict and .lm files. The