Skip to content

Commit

Permalink
Fix README.
Browse files Browse the repository at this point in the history
  • Loading branch information
Uberi committed Nov 2, 2015
1 parent b376fe0 commit 79b70ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ If you want to use audio input from microphones, `PyAudio <http://people.csail.m

The installation instructions are quite good as of PyAudio v0.2.9. For convenience, they are summarized below:

* On Windows, install PyAudio using [Pip](https://pip.readthedocs.org/): `pip install pyaudio`.
* On Debian and Debian-based Linux distributions like Ubuntu, install PyAudio using [APT](https://wiki.debian.org/Apt): execute `sudo apt-get install python-pyaudio python3-pyaudio` in a terminal, which will install PyAudio for both Python 2 and Python 3.
* On OS X, install PortAudio using [Homebrew](http://brew.sh/): `brew install portaudio`. Then, install PyAudio using [Pip](https://pip.readthedocs.org/): `pip install pyaudio`.
* On other POSIX-based systems, install the `portaudio19-dev` and `python-all-dev` using a package manager of your choice, and then install PyAudio using [Pip](https://pip.readthedocs.org/): `pip install pyaudio`.
* On Windows, install PyAudio using `Pip <https://pip.readthedocs.org/>`__: ``pip install pyaudio``.
* On Debian and Debian-based Linux distributions like Ubuntu, install PyAudio using `APT <https://wiki.debian.org/Apt>`__: execute ``sudo apt-get install python-pyaudio python3-pyaudio`` in a terminal, which will install PyAudio for both Python 2 and Python 3.
* On OS X, install PortAudio using `Homebrew <http://brew.sh/>`__: ``brew install portaudio``. Then, install PyAudio using `Pip <https://pip.readthedocs.org/>`__: ``pip install pyaudio``.
* On other POSIX-based systems, install the ``portaudio19-dev`` and ``python-all-dev`` using a package manager of your choice, and then install PyAudio using `Pip <https://pip.readthedocs.org/>`__: ``pip install pyaudio``.

FLAC (for some systems)
~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -157,7 +157,7 @@ The program doesn't run when compiled with `PyInstaller <https://github.com/pyin

As of PyInstaller version 3.0, SpeechRecognition is supported out of the box. If you're getting weird issues when compiling your program using PyInstaller, simply update PyInstaller.

You can easily do this by running `pip install --upgrade pyinstaller`.
You can easily do this by running ``pip install --upgrade pyinstaller``.

On Ubuntu/Debian, I get errors like "jack server is not running or cannot be started" or "Cannot lock down [...] byte memory area (Cannot allocate memory)".
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -212,7 +212,7 @@ Instances of this class are context managers, and are designed to be used with `
``WavFile(filename_or_fileobject)``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Creates a new ``WavFile`` instance given a WAV audio file `filename_or_fileobject`. Subclass of ``AudioSource``.
Creates a new ``WavFile`` instance given a WAV audio file ``filename_or_fileobject``. Subclass of ``AudioSource``.

If ``filename_or_fileobject`` is a string, then it is interpreted as a path to a WAV audio file (mono or stereo) on the filesystem. Otherwise, ``filename_or_fileobject`` should be a file-like object such as ``io.BytesIO`` or similar.

Expand Down
2 changes: 1 addition & 1 deletion speech_recognition/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""Library for performing speech recognition with support for Google Speech Recognition, `Wit.ai <https://wit.ai/>`__, `IBM Speech to Text <http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/speech-to-text.html>`__, and `AT&T Speech to Text <http://developer.att.com/apis/speech>`__."""

__author__ = "Anthony Zhang (Uberi)"
__version__ = "3.1.1"
__version__ = "3.1.2"
__license__ = "BSD"

import io, os, subprocess, wave, base64
Expand Down

0 comments on commit 79b70ec

Please sign in to comment.