Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
saltlas committed Feb 2, 2024
1 parent a0e2746 commit 038a5cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:**

Expand Down
2 changes: 1 addition & 1 deletion commands/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 038a5cc

Please sign in to comment.