Python decoding example

Python programming language is getting amazing popularity recently due to the elegance of the language, wide range of tools for scientific computing including scipy and NLTK and the immediacy of a “scripting” style language. We often get request to explain how to decode with pocketsphinx and Python.

Another interesting activity going around CMUSphinx is an updated acoustic model for German language. A frequent updates are posted on Voxforge website by Guenter, please check his new very much improved German models here: http://goofy.zamia.org/voxforge/de/. With the new improvements like audio aligner tool you can build a very accurate model for almost any language in a week or so.

To summarize these new features, one of our users, Matthias provided a nice tutorial on how to start with Pocketsphinx and Python and German models. With the new SWIG-based API we increased support for decoder features available in Python, now you can do from Python almost the same things you can do from C. If you are interested, please check his blog post here:

https://mattze96.safe-ws.de/blog/?p=640

If you have issues with Python API or want to help with your language, let us know.

3 Responses to “Python decoding example”

  1. Anonymous says:

    What was the problem with the GStreamer approach?

  2. admin says:

    There is no big reason to use gstreamer if you don’t need transcoding or video processing.

  3. Anonymous says:

    Uhm, GStreamer is a Multimedia Framework, transcoding and video are only one part. It makes it much easier to select e.g. a different audio source or to share your mic with other elements.