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
32
votes
3 answers
How do I stop hogging the microphone
TL;DR: My app is hogging the user's microphone. Can I turn it off automatically whenever another app needs to use the mic?
I have an Android app that has some really cool microphone functionality, similar to Amazon Alexa, that stays on all the time…

Ruchir Baronia
- 7,406
- 5
- 48
- 83
25
votes
6 answers
Python pocketsphinx RequestError: missing PocketSphinx module: ensure that PocketSphinx is set up correctly
I am trying to make a Python app that can record audio and translate it into english text using PyAudio, SpeechRecognition and PocketSphinx. I'm running on a Mac OS X El Capitan, version 10.11.2.
Following a tutorial like this one and others, I've…

cheevahagadog
- 4,638
- 3
- 15
- 15
24
votes
12 answers
Installing pocketsphinx python module: command 'swig.exe' failed
I'm getting something like this. Can anyone please tell me how to fix this.
C:\Users\krush\Documents\ML using Python>pip install pocketsphinx
Collecting pocketsphinx
Using cached pocketsphinx-0.1.3.zip
Building wheels for collected packages:…

Krushi Raj
- 528
- 1
- 4
- 14
18
votes
2 answers
Pocketsphinx install fail? Raspberry Pi Zero (Raspbian Jessie)
This will probably get tagged as a duplicate, but I haven't had any luck, so here we go.
I'm trying to develop a "Jarvis" like setup with Python2.7. I', looking to use Pocketsphinx as part of that. I tried to do this on my Windows 10 machine, but…

Bugiroff
- 215
- 2
- 7
14
votes
3 answers
CMake Error: Could NOT find SWIG (missing: SWIG_DIR)
I wanted to test out Pocketsphinx in Node.JS. It says I need to install Swig version 3.0.7 or above.
I think I installed all the other dependencies correctly. I can even type Swig commands in the Terminal now, but I keep getting this error whenever…

MysteryPancake
- 1,365
- 1
- 18
- 47
14
votes
1 answer
Live speech recognition
I have a Python script using the speech_recognition package to recognize speech and return the text of what was spoken. The transcription has a few seconds delay, however. Is there another way to write this script to return each word as it is…

Christopher Costello
- 1,186
- 2
- 16
- 30
9
votes
4 answers
Python pip3 pocketsphinx installation error
I am having this problem while installing pocketsphinx in python3
I'm using anaconda3, windows 10 .
pip install --upgrade pocketsphinx
Below is the error which I got while installing pocketsphinx.
Collecting pocketsphinx
Using cached…
user7125048
7
votes
2 answers
Pocketsphinx VS Google Speech Recognition API
I am building a speech recognition android app that will act as a virtual personal assistant with tasks such as:
Make appointments/Reminders
Weather Info
General queries to Wolfram|Alpha / Wikipedia - (i.e Who directed Ghostbusters, whats the £-$…

Aphire
- 1,621
- 25
- 55
6
votes
2 answers
Steps to create a pocketsphinx wrapper in C#
pocketsphinx has a SWIG interface "pocketsphinx.i" to generate wrappers in multiple language and one of them is C#.
It is not clear how to run the swig command in Windows and how to use the resulting library in a NetCore C# project.
What are the…

Pedro Lima
- 93
- 2
- 5
6
votes
1 answer
In Clojure, how do I send an exit command to a process created by Clojure.java.shell/sh
I am trying to run pocketsphinx from clojure. I have written the following .sh script
unbuffer pocketsphinx_continuous -innmic yes > pipe and I want to call this process using (shell/sh).
Unbuffer allows pocketsphinx to properly flush its data out…

Collin Bell
- 585
- 4
- 12
5
votes
1 answer
Phonetisaurus dependency issue
I am trying to install Phonetisaurus (using the Jasper installation instructions here). Unfortunatly I've run into a dependency issue I haven't been able to solve.
When I run the command sudo apt-get -t experimental install phonetisaurus m2m-aligner…

K G
- 65
- 1
- 6
5
votes
2 answers
Pocketsphinx: Capturing real-time output of -inmic yes to .txt
I'm using pocketsphinx_continuous on Windows. Redirecting output to a text file works with the "-infile" argument, but fails with "-inmic yes".
As noted in the question Does pocketsphinx flush stdout? pocketsphinx ignores stdout (at least when using…

sjw
- 228
- 1
- 4
- 8
5
votes
1 answer
How can we convert .wav file to text by using pocketsphinx?
I installed pocketsphinx in my Linux machine correctly, and now I want to convert an audio file (.wave) to text by using pocketsphinx,how can i do that? is there any clear command and short command to do that? somthing like this command:
…

Ali
- 602
- 6
- 18
4
votes
0 answers
Can't import pocketsphinx after successful installation with conda
I'm using conda to roll back my python env to version 3.5 so that I can install pocketsphinx.
I used conda install -c conda-forge pocketsphinx outlined here https://anaconda.org/conda-forge/pocketsphinx
It seemed to install properly with no…

Null Salad
- 765
- 2
- 16
- 31
4
votes
2 answers
TLSphinx cmusphinx pocketsphinx Hypothesis result text empty string score negative (-) number
I ran the sample code in the readme file at tryolabs/TLSphinx README.md, and the result of the text property of the Hypothesis is whitespace, while the score property is a negative number of -4420.
Why am I not getting good results in the text…

daniel
- 1,446
- 3
- 29
- 65