pocketsphinx

Pocketsphinx install fail? Raspberry Pi Zero (Raspbian Jessie)

拟墨画扇 提交于 2019-12-03 23:24:33
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 Pocketsphinx requires Swig, and that utterly failed on the Windows 10 machine (I'm still working on that.) So, I moved over to my Raspberry Pi Zero, since that is where I will be looking to impliment the actual program anyways. I got Swig to install just fine. None of the problems that Windows 10 had. Then I tried to install Pocketsphinx and things

Define a new keyword in pocket sphinx

☆樱花仙子☆ 提交于 2019-12-02 16:26:33
问题 I am very new to this. What I want to do is: Get a user defined KEYWORD from the Speech To Text engine as it recognized, my app does something I read PocketSphinix and can't find mine, also I find it's difficult, therefore I prefer to change it and use the default one. Now my problem is: how can I define a new keyword "my phone" in the *.gram file? This is my code - I took it here: import android.app.Activity; import android.os.Bundle; import android.speech.RecognitionListener; import android

Define a new keyword in pocket sphinx

倖福魔咒の 提交于 2019-12-02 07:32:31
I am very new to this. What I want to do is: Get a user defined KEYWORD from the Speech To Text engine as it recognized, my app does something I read PocketSphinix and can't find mine, also I find it's difficult, therefore I prefer to change it and use the default one. Now my problem is: how can I define a new keyword "my phone" in the *.gram file? This is my code - I took it here : import android.app.Activity; import android.os.Bundle; import android.speech.RecognitionListener; import android.speech.SpeechRecognizer; import android.widget.TextView; import android.widget.Toast; import java.io

Interfacing LIVE SPEECH with Tkinter GUI

时光怂恿深爱的人放手 提交于 2019-12-02 06:35:43
问题 I want to interface pocketsphinx livespeech with Python tkinter GUI in such a way that GUI is visible on frontend and Livespeech works on Back-end.But when i merge tkinter code with livespeech code; livespeech code always runs first and GUI not shows till i stop the code;so i won't be able to perform my required task.., #*********************************** IMPORTING MODULES***************** import tkinter from tkinter import* import tkinter.messagebox import sqlite3 import os from

Interfacing LIVE SPEECH with Tkinter GUI

£可爱£侵袭症+ 提交于 2019-12-02 03:49:39
I want to interface pocketsphinx livespeech with Python tkinter GUI in such a way that GUI is visible on frontend and Livespeech works on Back-end.But when i merge tkinter code with livespeech code; livespeech code always runs first and GUI not shows till i stop the code;so i won't be able to perform my required task.., #*********************************** IMPORTING MODULES***************** import tkinter from tkinter import* import tkinter.messagebox import sqlite3 import os from pocketsphinx import LiveSpeech, get_model_path conn = sqlite3.connect('portal.db') c = conn.cursor() window =

Swig not found when installing pocketsphinx Python

∥☆過路亽.° 提交于 2019-11-29 11:07:09
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 swig.exe. When I cmd and type 'swig --help' it seems to be working. But when I go 'pip install pocketsphinx, it says 'error: command 'swig.exe failed: No such file or directory'. You should setup swig in Visual Studio instead of including its path in %PATH%. 来源: https://stackoverflow.com/questions/33745389/swig-not-found-when-installing-pocketsphinx

Python pocketsphinx RequestError: missing PocketSphinx module: ensure that PocketSphinx is set up correctly

折月煮酒 提交于 2019-11-28 23:43:48
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 downloaded PyAudio version 0.2.9, SpeechRecognition as well as PocketSphinx. I've installed them into a Conda environment. I have followed the instructions from this site to use brew install swig git python on my OS X, hoping it would help. This is my code: # Load packages import speech_recognition as sr import sphinxbase import pocketsphinx # obtain

Swig not found when installing pocketsphinx Python

大兔子大兔子 提交于 2019-11-28 04:33:26
问题 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 swig.exe. When I cmd and type 'swig --help' it seems to be working. But when I go 'pip install pocketsphinx, it says 'error: command 'swig.exe failed: No such file or directory'. 回答1: You should setup swig in Visual Studio instead of including its path

doing actions after sound recognization in android

旧城冷巷雨未停 提交于 2019-11-28 02:29:09
please give me suggestion about this condition. is it possible in android that the device waits for special sound, and after it recognizes it, some actions happens. please tell me about your ideas.Thanks for your help! UPDATE i try pocket sphinx and do lots of searches about 'defining new keyword", but i can't do it. I use this code: public class PracticeActivity extends Activity implements RecognitionListener, edu.cmu.pocketsphinx.RecognitionListener { // private static final String KWS_SEARCH = "wakeup"; // private static final String KEYPHRASE = "listen"; //adjust this keyphrase! //3-

Python LiveSpeech PocketSphinx

我的未来我决定 提交于 2019-11-28 02:22:01
问题 pocketsphinx_continuous -adcdev plughw:1,0 -inmic yes -dict 4711.dic -lm 4711.lm The above command works but the problem arises in running python code. from pocketsphinx import LiveSpeech for phrase in LiveSpeech(): print(phrase) the error that is displayed Error opening audio device (null) for capture: Connection refused Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/pocketsphinx/__init__.py", line 206, in __init__ self.ad