Giter Club home page Giter Club logo

Comments (8)

mbait avatar mbait commented on July 19, 2024

That is the outdated version, you should install pocketsphinx manually -
https://github.com/cmusphinx/pocketsphinx-python

On Thu, Apr 28, 2016 at 2:48 PM, Tobi [email protected] wrote:

When trying to run the basic usage example shown in the readme, it throws
an error already on importing:

from pocketsphinx.pocketsphinx import *
File "sphinxbase.pxd", line 150, in init pocketsphinx (pocketsphinx.c:7935)
ValueError: PyCapsule_GetPointer called with invalid PyCapsule object

-- has been installed from the repos (Ubuntu 14.04),
pip version info:
pip show pocketsphinx

Name: PocketSphinx
Version: 0.8
Location: /usr/lib/python2.7/dist-packages


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#15

Sincerely, Alexander

from pocketsphinx-python.

TobiasWeis avatar TobiasWeis commented on July 19, 2024

Well then I think it would be cool to change the Readme, I am sure more people have that error as long as the package in the repos is outdated. An unrelated question (sorry for that): is there a way to use this python-module to perform continuous speech recog?

from pocketsphinx-python.

nshmyrev avatar nshmyrev commented on July 19, 2024

https://github.com/cmusphinx/pocketsphinx/blob/master/swig/python/test/continuous_test.py

from pocketsphinx-python.

TobiasWeis avatar TobiasWeis commented on July 19, 2024

What is your suggestion on using actual microphone input? What sample-rate, etc.? Is there some code or clear explanation for that?

from pocketsphinx-python.

nshmyrev avatar nshmyrev commented on July 19, 2024
import pyaudio
p = pyaudio.PyAudio()
stream = p.open(format=pyaudio.paInt16, channels=1, rate=16000, input=True)
stream.start_stream()

from pocketsphinx-python.

TobiasWeis avatar TobiasWeis commented on July 19, 2024

Thanks a lot! Got it to work!

from pocketsphinx-python.

TobiasWeis avatar TobiasWeis commented on July 19, 2024

And regarding the readme, please excuse, fault was totally on my side (surprise!), it got too late last night. I misread the readme and installed with apt-get (this package in the repos seems to be broken?) instead of pip/git.

from pocketsphinx-python.

nshmyrev avatar nshmyrev commented on July 19, 2024

No problem, let us know if you have any issues.

from pocketsphinx-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.