drmfinlay / sphinxwrapper Goto Github PK
View Code? Open in Web Editor NEWSimplified Python API for recognising speech with CMU Pocket Sphinx
License: MIT License
Simplified Python API for recognising speech with CMU Pocket Sphinx
License: MIT License
The upstream project (Pocket Sphinx) was updated recently, so I'd like to update this project in turn. The notable changes to be made are as follows:
Since there have been many breaking changes to Pocket Sphinx, I will not be updating the project to use version 5. I may do this at some point in the future.
I've started a new project to allow the standard US English CMU Pocket Sphinx models and dictionaries to be used with non-US variants of English by using GNU Aspell to localise words. The idea is to be able to write grammars and have key phrase searches in say, Australian English, and receive output words in Australian English without having to make your own model(s).
This functionality will be optional through use of the setuptools extras_require
parameter in order to keep sphinxwrapper portable. So if the aspell
package isn't available, everything will still work.
If you want to use sphinxwrapper with other languages, this could provide spell checking support for grammar / key phrase searches if the language is supported by GNU aspell and you have the dictionary installed.
I've come across this rather unhelpful error that gets raised sometimes:
Traceback (most recent call last):
File "examples/recognise_forever.py", line 28, in <module>
main()
File "examples/recognise_forever.py", line 25, in main
time.sleep(0.1)
TypeError: expected string or Unicode object, NoneType found
I've commented out time.sleep(0.1)
in the examples for now which stops this from happening, but it isn't ideal because we can't stop hogging the CPU from Python with this bug.
I believe it has something to do with the multi-threaded audio implementations in sphinxbase
. I've tried manipulating Python's Global Interpreter Lock following the Python 2.7 docs on this, but either I'm not doing it correctly or the issue is elsewhere. I know that this didn't happen before commit c344210.
There are docstrings for everything available through the Python help function using help(sphinxwrapper)
or similar in the interpreter. I'm not quite sure how to get a documentation engine like Sphinx (lol) to pull the Python docstrings in the module into an easy to access format like HTML or markdown.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.