diff --git a/README.md b/README.md index 28b12a1..44ac9fb 100644 --- a/README.md +++ b/README.md @@ -67,9 +67,9 @@ Example: "ws://localhost:8001" - wrong_words_allowed -The number of wrong word you want to allow between keywords of a command (e.g. given a command "put that there", "put that over there" would not work with wrong_words_allowed = 0 but will work with wrong_words_allowed = 1) +The number of wrong words in a row you want to allow between keywords of a command (e.g. given a command "put that there", "put that over there" would not work with wrong_words_allowed = 0 but will work with wrong_words_allowed = 1) -example: 1 +Example: 1 **Example `config.json`:** diff --git a/commands/command.py b/commands/command.py index b61e620..c311a08 100644 --- a/commands/command.py +++ b/commands/command.py @@ -24,7 +24,7 @@ def __init__(self, keywords, progress=0, finishable=False): # generate unique session ID at command beginning using UUID 4 self.session_id = str(uuid.uuid4()) - def action(self, timestamp, keyword): + def action(self, timestamp, keyword): """action to take based on keyword spoken. not relevant to current implementation but in some cases could specifically send diff --git a/requirements.txt b/requirements.txt index b63f627..6562923 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ pyaudio==0.2.14 rel==0.4.9.5 websocket_client==1.7.0 websockets==12.0 +google-cloud-speech==2.23.0