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
3
votes
1 answer
Missing acoustic model definition (mdef) with pocketsphinx-python
I have recently installed pocketsphinx-python on Lubuntu 15.10 and am wanting to do speech recognition on an audio file (preferably of 8kH). I am getting an error message though that I don't understand, because I have a file called mdef in my folder…

Ingrid
- 516
- 6
- 18
3
votes
2 answers
How to use pocketsphinx (5prealpha) with gstreamer-1.0 in python?
I am trying to create a small Python script that will receive an audio stream over the network, feed it through pocketspinx to translate speech to text and run some commands depending on the output of pocketsphinx.
I've installed sphinxbase and…

Nico
- 45
- 6
3
votes
2 answers
PocketSphinx for an Android dictation app
I'm trying to implement a "dictation" feature using the PocketSphinx on Android in conjunction with one of Keith Vertanen's language models. I've modified the sample to look like this:
private void setupRecognizer(File assetsDir) throws…

Michiyo
- 1,161
- 1
- 14
- 33
3
votes
1 answer
Import grammar rules from string-based grammar
I'm using pocketsphinx in Android. And I've been able to import rules in one .gram file to another .gram file, and I've been able to use rules by specifying a String, but can't seem to be able to combine the two. That is, I can't import a file-based…

frozenkoi
- 3,228
- 22
- 33
3
votes
1 answer
what is the correct import query for pocketsphinx ?
I cant use pocketsphinx api
while compiling decoder_test.py:
from pocketsphinx.pocketsphinx import *
ImportError: No module named pocketsphinx
I have installed pocketsphinx and sphinxbase correctly as mentioned in documentation
import pocketsphinx…

Sudhin
- 57
- 7
3
votes
1 answer
gi._glib.GError: no element "pocketsphinx" error on running livedemo
I am using ubuntu 14.04
I am trying to get a python program to get speech to text from microphone.
For this, I have installed sphinxbase and pocketsphinx. pocketsphinx_continuous works.
thekindlyone@deepthought:.../lib$ pocketsphinx_continuous…

thekindlyone
- 509
- 1
- 6
- 21
3
votes
1 answer
How to retrieve the rule names of words using a jsgf grammar file with pocketsphinx in Python?
I am using pocketpshinx in python for speech recognition using a JSGF grammar file. The grammar is composed of rules, and speech is matched to those rules to be recognized.
The recognition works well, but I can´t seem to find how to retrieve the…

Enaid
- 305
- 1
- 18
3
votes
1 answer
Does a JSGF file only use one public rule?
I use the following JSGF file with pocketsphinx (in french sorry):
#JSGF V1.0;
/**
* JSGF Grammar for music
*/
grammar music;
= lance | ouvre;
= commence | débute | démarre; …

Jérémy Pouyet
- 1,989
- 6
- 28
- 55
3
votes
1 answer
The range of variation for each parameter for pocketsphinx_continuous app
I found that there are so many parameters to tune up speech recognition( for example input parameters in pocketsphinx_continuous app). Many parameters are enumerations, other are floating values. Where can I find the range of variation for each…

BrettWatts
- 87
- 9
3
votes
0 answers
pocketsphinx error in adapt the acoustic model
I want to create a voice recognition application using the pocketsphinx-android-demo-5prealpha. I only need this app to work with Spanish.
I replaced the default acoustic and language models with the Spanish packet of voxforge…

IvanTorres
- 53
- 1
- 4
3
votes
2 answers
Error when running pocketsphinx_continuous: Acoustic model definition is not specified
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…

NJP
- 815
- 1
- 7
- 20
2
votes
0 answers
How can I use the PocketSphinx library in my C++ project?
I'm trying to use the PocketSphinx speech to text library in my project as a Git submodule. So, I added the submodule to my dependency folder and I added the following code to my MakeFile:
add_subdirectory(dependencies/pocketsphinx)
But, when I'm…

Aniket Sharma
- 21
- 2
2
votes
1 answer
Python Speech Recognition - Sphinx
I am make a simple speech recognition program that will enable me to control my robot with voice command. I only want the program to look for certain words and be relatively fast. My project is based on Micheal Reeves 'I made a robot that shines a…

Colby Grieves
- 43
- 1
- 6
2
votes
1 answer
Python Pocketsphinx: Keyword isn't recognised when using Decoder class
I'm trying to detect a keyword from a .wav file using Pocketsphinx, specifically with the decoder class. When I give it this .wav file and print what it detects it isnt even close. Here is the code:
import pocketsphinx as ps
import requests
import…

Jack Johns
- 59
- 7
2
votes
1 answer
Python pocketsphinx 0.1.15 configuration versus pocketsphinx_continuous.exe configuration
I have a solution (jsgf, dict, hmm), that works well with:
pocketsphinx_continuous -hmm zero_ru.cd_cont_4000 -dict vocabular.dict -jsgf calc.jsgf -inmic yes
Now I am trying to port it to Python pocketsphinx 0.1.15…

Arthur
- 3,253
- 7
- 43
- 75