namesdanax.blogg.se

Python library reference 2.7 pdf
Python library reference 2.7 pdf









  1. Python library reference 2.7 pdf install#
  2. Python library reference 2.7 pdf windows#

third-party/WHEEL_FILENAME (replace pip with pip3 if using Python 3) in the SpeechRecognition folder.

Python library reference 2.7 pdf install#

To install, simply run pip install wheel followed by pip install.

Python library reference 2.7 pdf windows#

PocketSphinx-Python wheel packages for 64-bit Python 2.7, 3.4, and 3.5 on Windows are included for convenience, under the third-party/ directory. PocketSphinx-Python is required if and only if you want to use the Sphinx recognizer ( recognizer_instance.recognize_sphinx). third-party/WHEEL_FILENAME (replace pip with pip3 if using Python 3) in the repository root directory. PyAudio wheel packages for common 64-bit Python versions on Windows and Linux are included for convenience, under the third-party/ directory in the repository root.

  • On other POSIX-based systems, install the portaudio19-dev and python-all-dev (or python3-all-dev if using Python 3) packages (or their closest equivalents) using a package manager of your choice, and then install PyAudio using Pip: pip install pyaudio (replace pip with pip3 if using Python 3).
  • Then, install PyAudio using Pip: pip install pyaudio.
  • On OS X, install PortAudio using Homebrew: brew install portaudio.
  • If the version in the repositories is too old, install the latest release using Pip: execute sudo apt-get install portaudio19-dev python-all-dev python3-all-dev & sudo pip install pyaudio (replace pip with pip3 if using Python 3).
  • On Debian-derived Linux distributions (like Ubuntu and Mint), install PyAudio using APT: execute sudo apt-get install python-pyaudio python3-pyaudio in a terminal.
  • On Windows, install PyAudio using Pip: execute pip install pyaudio in a terminal.
  • The installation instructions on the PyAudio website are quite good - for convenience, they are summarized below: If not installed, everything in the library will still work, except attempting to instantiate a Microphone object will raise an AttributeError. PyAudio version 0.2.11+ is required, as earlier versions have known memory management bugs when recording from microphones in certain situations. PyAudio is required if and only if you want to use microphone input ( Microphone). The following sections go over the details of each requirement.
  • If using CMU Sphinx, you may want to install additional language packs to support languages like International French or Mandarin Chinese.
  • On Python 2, and only on Python 2, some functions (like recognizer_instance.recognize_bing) will run slower if you do not have Monotonic for Python 2 installed.
  • The following requirements are optional, but can improve or extend functionality in some situations:
  • FLAC encoder (required only if the system is not x86-based Windows/Linux/OS X).
  • Google API Client Library for Python (required only if you need to use the Google Cloud Speech API, recognizer_instance.recognize_google_cloud).
  • PocketSphinx (required only if you need to use the Sphinx recognizer, recognizer_instance.recognize_sphinx).
  • PyAudio 0.2.11+ (required only if you need to use microphone input, Microphone).
  • To use all of the functionality of the library, you should have:











    Python library reference 2.7 pdf