Skip to content

Commit

Permalink
PEP8 code style update, remove broken recognize_att, remove outdated …
Browse files Browse the repository at this point in the history
…Python 2.6 support
  • Loading branch information
Uberi committed Nov 23, 2016
1 parent 01d030b commit 45d1937
Show file tree
Hide file tree
Showing 4 changed files with 229 additions and 216 deletions.
7 changes: 6 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/env bash

echo "if the following doesn't work, make sure you have your account set up properly with `python3 setup.py register`"
# set up bash to handle errors more aggressively - a "strict mode" of sorts
set -e # give an error if any command finishes with a non-zero exit code
set -u # give an error if we reference unset variables
set -o pipefail # for a pipeline, if any of the commands fail with a non-zero exit code, fail the entire pipeline with that exit code

echo "if the following doesn't work, make sure you have your account set up properly with 'python3 setup.py register'"

# make sure we use GnuPG 2 rather than GnuPG 1
sudo ln "$(which gpg2)" dist/gpg
Expand Down
2 changes: 1 addition & 1 deletion reference/library-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Phrase recognition uses the exact same mechanism as ``recognizer_instance.listen
The ``callback`` parameter is a function that should accept two parameters - the ``recognizer_instance``, and an ``AudioData`` instance representing the captured audio. Note that ``callback`` function will be called from a non-main thread.

``recognizer_instance.recognize_sphinx(audio_data, language = "en-US", keyword_entries = None, show_all = False)``
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------

Performs speech recognition on ``audio_data`` (an ``AudioData`` instance), using CMU Sphinx.

Expand Down
Loading

0 comments on commit 45d1937

Please sign in to comment.