{ "info": { "author": "Dane Finlay", "author_email": "Danesprite@posteo.net", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Multimedia :: Sound/Audio :: Speech", "Topic :: Software Development :: Libraries" ], "description": "============\nIntroduction\n============\n\nAlternative Python API for recognising speech with CMU Pocket Sphinx\n\nThis package aims to provide a simple API for recognising speech using the\nPocket Sphinx API. Pocket Sphinx is an open source, lightweight speech\nrecognition engine. You can read more about the CMU Sphinx speech\nrecognition projects `here `__.\n\nThere are some usage examples in the repository's `examples folder`_.\n\n\nInstallation & dependencies\n---------------------------\n\nTo install this package via pip, run the following command:\n\n.. code:: shell\n\n pip install sphinxwrapper\n\nIf you are installing in order to *develop* sphinxwrapper, clone/download\nthe repository, move to the root directory and run:\n\n.. code:: shell\n\n pip install -e .\n\nEither of the above commands will also install the required\n`pocketsphinx-python`_ package.\n\nThe usage examples for ``sphinxwrapper`` require the cross-platform\n`pyaudio`_ Python package. It can be installed by running the following:\n\n\n.. code:: shell\n\n pip install pyaudio\n\nUsage example\n-------------\n\nThe following is a simple usage example showing how to use the\n``sphinxwrapper`` package to make Pocket Sphinx continuously recognise\nspeech from the microphone using the default decoder configuration.\n\n.. code:: python\n\n import time\n\n from pyaudio import PyAudio, paInt16\n\n from sphinxwrapper import PocketSphinx\n\n # Set up a Pocket Sphinx decoder with the default config\n ps = PocketSphinx()\n\n # Set up and register a callback function to print Pocket Sphinx's\n # hypothesis for recognised speech\n def print_hypothesis(hyp):\n # Get the hypothesis string from the Hypothesis object or None, then\n # print it\n speech = hyp.hypstr if hyp else None\n print(\"Hypothesis: %s\" % speech)\n\n ps.hypothesis_callback = print_hypothesis\n\n # Decode from the default audio input device continously.\n p = PyAudio()\n stream = p.open(format=paInt16, channels=1, rate=16000, input=True,\n frames_per_buffer=2048)\n while True:\n ps.process_audio(stream.read(2048))\n time.sleep(0.1)\n\n\n\nPython versions\n---------------\n\nThis package has been written for Python 2.7 and above. It should work\nexactly the same way for each supported version. please file an issue if you\ncome across any problems that are specific to the Python version you're\nusing.\n\nFuture CMU Sphinx API changes\n-----------------------------\n\nAs the CMU Sphinx libraries are pre-alpha, there may be future changes that\nbreak this package in some way. I'm happy to fix any such issues, just file\nan issue.\n\nDocumentation\n-------------\n\nThe documentation for this project is written in `reStructuredText`_ and\nbuilt using the `Sphinx documentation engine`_.\n\nRun the following in the repository folder to build it locally::\n\n cd docs\n pip install -r requirements.txt\n make html\n\n\n.. Links.\n.. _Sphinx documentation engine: http://www.sphinx-doc.org/en/stable\n.. _examples folder: https://github.com/Danesprite/sphinxwrapper/tree/master/examples\n.. _pocketsphinx-python: https://github.com/bambocher/pocketsphinx-python\n.. _pyaudio: http://people.csail.mit.edu/hubert/pyaudio/\n.. _reStructuredText: http://docutils.sourceforge.net/rst.html\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Danesprite/sphinxwrapper", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "sphinxwrapper", "package_url": "https://pypi.org/project/sphinxwrapper/", "platform": "", "project_url": "https://pypi.org/project/sphinxwrapper/", "project_urls": { "Homepage": "https://github.com/Danesprite/sphinxwrapper" }, "release_url": "https://pypi.org/project/sphinxwrapper/1.2.0/", "requires_dist": [ "pocketsphinx" ], "requires_python": "", "summary": "Alternative Python API for recognising speech with CMU Pocket Sphinx", "version": "1.2.0" }, "last_serial": 5434852, "releases": { "1.2.0": [ { "comment_text": "", "digests": { "md5": "f92ef49a006728cb52e2c940a4fa83da", "sha256": "bb894192f1795565acf451e1fb22ac6df83e99e87ae4d63750c1875a51a5971c" }, "downloads": -1, "filename": "sphinxwrapper-1.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "f92ef49a006728cb52e2c940a4fa83da", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 9499, "upload_time": "2019-06-22T14:45:41", "url": "https://files.pythonhosted.org/packages/3f/96/585789f9f4dd1bc7a0e9b1e915d46acba6c5b349396185bf08fdbca41633/sphinxwrapper-1.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d348f18a0354cf183e6d92973a9f3363", "sha256": "c03f57098c25744074c5f34d0506776877b3c4902c4b5e5d57ce538d4d1839bd" }, "downloads": -1, "filename": "sphinxwrapper-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d348f18a0354cf183e6d92973a9f3363", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9498, "upload_time": "2019-06-22T14:45:43", "url": "https://files.pythonhosted.org/packages/26/03/3c5f1ccbe4837cda3700596bbd169f17760432a5f9b1ba1a12770b151952/sphinxwrapper-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a46a99e5360dfbaf7a1c86ac3274733d", "sha256": "484a3c4fbaaec092ebc96566606cd77502f2d454bb296d51e83a03455dbd206c" }, "downloads": -1, "filename": "sphinxwrapper-1.2.0.tar.gz", "has_sig": false, "md5_digest": "a46a99e5360dfbaf7a1c86ac3274733d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6519, "upload_time": "2019-06-22T14:45:45", "url": "https://files.pythonhosted.org/packages/d5/30/e61a8dd2a64fa7e138ead869ab1cb2bbeccd0cc48b85b61e5e22771d4aed/sphinxwrapper-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f92ef49a006728cb52e2c940a4fa83da", "sha256": "bb894192f1795565acf451e1fb22ac6df83e99e87ae4d63750c1875a51a5971c" }, "downloads": -1, "filename": "sphinxwrapper-1.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "f92ef49a006728cb52e2c940a4fa83da", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 9499, "upload_time": "2019-06-22T14:45:41", "url": "https://files.pythonhosted.org/packages/3f/96/585789f9f4dd1bc7a0e9b1e915d46acba6c5b349396185bf08fdbca41633/sphinxwrapper-1.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d348f18a0354cf183e6d92973a9f3363", "sha256": "c03f57098c25744074c5f34d0506776877b3c4902c4b5e5d57ce538d4d1839bd" }, "downloads": -1, "filename": "sphinxwrapper-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d348f18a0354cf183e6d92973a9f3363", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9498, "upload_time": "2019-06-22T14:45:43", "url": "https://files.pythonhosted.org/packages/26/03/3c5f1ccbe4837cda3700596bbd169f17760432a5f9b1ba1a12770b151952/sphinxwrapper-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a46a99e5360dfbaf7a1c86ac3274733d", "sha256": "484a3c4fbaaec092ebc96566606cd77502f2d454bb296d51e83a03455dbd206c" }, "downloads": -1, "filename": "sphinxwrapper-1.2.0.tar.gz", "has_sig": false, "md5_digest": "a46a99e5360dfbaf7a1c86ac3274733d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6519, "upload_time": "2019-06-22T14:45:45", "url": "https://files.pythonhosted.org/packages/d5/30/e61a8dd2a64fa7e138ead869ab1cb2bbeccd0cc48b85b61e5e22771d4aed/sphinxwrapper-1.2.0.tar.gz" } ] }