Questions tagged [pocketsphinx-android]

PocketSphinx is a lightweight speech recognition engine, specifically tuned for handheld and mobile devices, though it works equally well on the desktop.

CMUSphinx is an open-source toolkit for speech recognition. Pocketsphinx is one of the decoders provided by CMUSphinx specifically targeted on mobile platforms like Android.

This tag is for questions related to problems running Pocketsphinx decoder on Android platform.

To get more information on pocketsphinx on android, see https://cmusphinx.github.io/wiki/tutorialandroid/.

109 questions
1
vote
0 answers

When using processRaw how does InSpeech get updated?

Trying edu.cmu.sphinx.pocketsphinx with processRaw to detect speech. 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…
1
vote
0 answers

PocketSphinx: How to recognize Keyword followed by dynamic word?

I have been working on PocketSphinx Android voice command project where the user can open application listed on their Android by use command "open xxx" (I made "open" as Keyword and xxx is application's name), but sadly it didn't work. My question…
1
vote
1 answer

hypothesis parameter pocketsphinx

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.…
1
vote
1 answer

How to release microphone from pocketsphynx in Android

I'm using pocketsphynx library on Android for keyword spotting, and it serves its purpose great. However, when I am trying to release microphone to make use of it in another component of the app, I am unable to do so. I get the following error in…
1
vote
1 answer

Error when using addWord method of the Decoder

After trying to run those lines: Decoder decoder = recognizer.getDecoder(); decoder.addWord("volip", "V AA L AH P",1); I got this error:Caused by: java.lang.RuntimeException: Decoder_addWord returned -1. I am trying adding a word to the dictionary…
adi181188
  • 23
  • 5
1
vote
2 answers

Pocketsphinx on android "LDA incompatible with multi-stream features" while speech recognizer setup

I faced a problem while trying to replace English accoustic model with Russian one here: recognizer = SpeechRecognizerSetup.defaultSetup() .setAcousticModel(new File(assetsDir, "ru")) The error is: "java.lang.ClassNotFoundException:…
1
vote
0 answers

CMUSphinx: Keyword is not recogninzed

I made speech recognition service a few days ago it worked fine but now when I running again in my phone, and when I say something its just "onstart" and "onend" and nothing recognized but sometimes its "onstart" and listened for the keyword takes…
blackHawk
  • 6,047
  • 13
  • 57
  • 100
1
vote
0 answers

Which continuous speech recognition service can I use for Xamarin.Android project?

I'm looking for a service that could record voice continuously for about 10 minutes (without any interruption). This service should be able to detect some keywords (mainly numbers). I'm currently using Android.Speech.SpeechRecognizer. It works well…
1
vote
0 answers

Android PocketSphinx : How to reset hypothesis.Hypstr()?

I want my device to continuously listen for a keyword. I am using PocketSphinx for this purpose.I found a demo project on github which makes PocketSphinx to continuously listen using Service. Here is the link to github project It works fine for the…
1
vote
1 answer

Unable to iterate over SegmentList while more than one match is found

I'm modifying the pocketsphinx android demo to test continuous keywords spotting based on a keywords list and relative thresholds. When the onResult method of my implementation of edu.cmu.pocketsphinx.RecognitionListener is called this…
1
vote
1 answer

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

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…
1
vote
0 answers

Pocketsphinx decoder fails to initialize

I am trying to implement a hotword in my app which will start the speech input using CMUSphinx. I copied the code from the tutorial, did some changes to start the speech input but it is not working. My mainActivity code for the recognition looks…
1
vote
1 answer

use speech recognition and visualizer at the same time

Currently I am using pocketsphinx for speech recognition & a visualizer to display my wave pattern of audio spoken into microphone However, I can only run one thing at a time. because the microphone will be used by visualizer and nothing happens in…
1
vote
1 answer

Having and as an output from android pocketsphinx

We're using pocketsphinx to help us convert .wav files into text files. We don't know why it gives us a strange output as it gives us only and after the conversion. We're using the default dictionary, langauge model and acoustic model given…
1
vote
1 answer

Pocketsphinx Android demo error: "Failed to init recognizer java.io.IOException: Failed to initialize recorder. Microphone might already be in use."

I have been using Pocketsphinx Android demo and get the error: "Failed to init recognizer java.io.IOException: Failed to initialize recorder. Microphone might already be in use." What does the error mean and what can I do to fix it ?