Or to do keyword search: from pocketsphinx import LiveSpeech speech = LiveSpeech ( keyphrase = 'forward', kws_threshold = 1e-20 ) for phrase in speech : print ( phrase. Kind of US English) model: from pocketsphinx import LiveSpeech for phrase in LiveSpeech (): print ( phrase ) For example, to do speech-to-text with the default (some It also mostly supports the same APIs as the previousĪn iterator class for continuous recognition or keyword search from a See the examples directory for a number of examples of Libportaudio2 package: sudo apt-get install libportaudio2 On Debian-like systems this can be achieved by installing the On GNU/Linux and maybe other platforms, you must haveĬlass to work (we may add a fall-back to sox in the near future). ~/ve_pocketsphinx with the virtual environment you wish to create),įrom the top level directory: python3 -m venv ~/ve_pocketsphinx Suggest doing this in a virtual environment (replace Versions of Python: pip3 install pocketsphinxĪlternately, you can also compile it from the source tree. You should be able to install this with pip for recent platforms and Please see the LICENSE file for terms of use. That people are using called 5prealpha, and we will use proper The version number is strangely large because there was a "release" It, and there are a number of historical errors in the build system I am making a release, because people are nonetheless using Has largely ceased and it has become very, very far from the state of Vocabulary, speaker-independent continuous speech recognition engines.Īlthough this was at one point a research system, active development This is PocketSphinx, one of Carnegie Mellon University's open source large
0 Comments
Leave a Reply. |