PocketSphinx is a lightweight version of the CMU Sphinx open source cross-platform speech recognition system, optimized for mobile and handheld devices.
Questions tagged [pocketsphinx]
459 questions
4
votes
0 answers
LiveSpeech iterator returns no errors and no results on macOS
I've installed the Python interface to pocketsphinx in a virtual environment using venv on macOS:
pip3 install --upgrade pip setuptools wheel
pip3 install --upgrade pocketsphinx
but when I run the basic example:
from pocketsphinx import…

Naftali Beder
- 1,066
- 1
- 10
- 27
4
votes
3 answers
Parameters for configuring the decoder in pocketsphinx
I began to study the pocketsphinx.
I have a list of possible parameters for configuring the decoder. But there is no explanation of which parameter is responsible for which configuring. In the tutorial CMUSphinx there is only a small part of them.…

valentina-g
- 51
- 3
4
votes
1 answer
speech recognition python3.4 with pocketsphinx
i just following this >> steps << and works well,
now, how do i get started with python?
i tried this code:
import speech_recognition as sr
# obtain audio from the microphone
r = sr.Recognizer()
with sr.Microphone() as source:
print("Say…

허민선
- 57
- 1
- 8
4
votes
2 answers
Swig not found when installing pocketsphinx Python
I would like to convert grapheme to phoneme. And I want to pip install pocketsphinx to do that. One of its dependency is swig, so I downloaded and placed it in a directory and go to the environment path variable and add the path that leads to…

KubiK888
- 4,377
- 14
- 61
- 115
3
votes
0 answers
How to Change Model Pocket Sphinx
I have set up pocket sphinx in linux and am trying to generate custom language model. I tried to generate my custom language model using this link: http://www.speech.cs.cmu.edu/tools/lmtool-new.html
The code I used to work with provided model works…

Tayyab
- 1,207
- 8
- 29
3
votes
2 answers
pocketsphinx can't efficiently recognize words (commands) recorded via mic
I compiled this example C code of speech recognition librry pocketsphinx on my debian 9 system.
I recorded a sample audio in a file called goforward.raw which has the command: "go forward" in it.
Neither the pockesphinx_continuous programs…

shinwari_afg
- 104
- 11
3
votes
1 answer
Python 3 and Pocket Sphinx
I am attempting to create a simple music player for my grandfather who has trouble with buttons by programming an audio-controlled music player. I'm using a Raspberry Pi 3 with Python 3 and Pocket Sphinx. Because Pocket Sphinx does not require the…

Laura Jacob
- 33
- 1
- 3
3
votes
0 answers
Xamarin.Android Got a SIGSEGV while executing native code
Im currently creating my app while using Pocketsphinx with it. But lately there is this annoying "Error":
I couln´t find anything about this particular one on the internet. Thanks in advance
EDIT, I needed to put my code in:
public void…

HknCore
- 143
- 15
3
votes
2 answers
Python linking using – LDFLAGS doesn't work
I'm having the trouble: "Could not link test program to Python."
I have versions 2.7+ installed in /Library/Frameworks/.
I've tried this solution, but because it was posted more than 6 years ago it doesn't consider SIP (System Integrity Protection),…

yeeeeee
- 163
- 3
- 16
3
votes
1 answer
Pocketsphinx - perfecting hot-word detection
I've revisited CMU Sphinx recently and attempted to set up a basic hot-word detector for Android, starting from the tutorial and adapting the sample application.
I'm having various issues, which I've been unable to resolve, despite delving deep…

brandall
- 6,094
- 4
- 49
- 103
3
votes
1 answer
pocketsphinx - how to switch from keyword spotting to grammar mode
I'm using pocketsphinx with raspberry pi for home automation. I've written a simple JSGF grammar file with the supported commands. Now, I want to use an activation phrase such as "hey computer" prior to the commands, to avoid false detections and…

jotadepicas
- 2,389
- 2
- 26
- 48
3
votes
1 answer
Installing pocketsphinx - pulseaudio development package
In the instructions for setting up pocketsphinx, one of the dependencies is pulseaudio development package. What exactly is this? Where should I download it?

Adam_G
- 7,337
- 20
- 86
- 148
3
votes
0 answers
How to run pocketsphinx from Windows CMD
I am currently following the tutorial on cmusphinx.sourceforge.net to install pocketsphinx for Windows. Admittedly I only have experience in C#, and I'm not at all familiar with DOS commands.
My problem: When I try to run pocketsphinx_continuous,…

anesthetic
- 193
- 2
- 18
3
votes
1 answer
cmusphinx in android-java.lang.RuntimeException: Decoder_setKeyphrase returned -1
I am using cmusphinx in android. First of all i executed demo project downloaded from Github. When i built my own dictionary created own keyPhrase it gives the following execption
FATAL EXCEPTION: AsyncTask #1
Process: edu.cmu.sphinx.pocketsphinx,…

Mansuu....
- 1,206
- 14
- 27
3
votes
1 answer
Why is python pocketsphinx giving TypeError?
I am using the Python pocket sphinx tutorial, according to
https://metakermit.com/2011/python-speech-recognition-helloworld/
(complete code here):
import sys,os
def decodeSpeech(hmmd,lmdir,dictp,wavfile):
"""
Decodes a speech file
"""
try:
…

Hugo
- 1,558
- 12
- 35
- 68