Skip to content

Commit

Permalink
A bit of naming :)
Browse files Browse the repository at this point in the history
  • Loading branch information
mchilvers committed May 21, 2024
1 parent 66daf16 commit 605dbbe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/invent/speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def say(text):
synth.speak(utterance)


class RecognitionStatus:
"""A class to encapsulate the status of speech recognition."""
class SpeechRecognitionStatus:
"""Encapsulates the status of a speech recognition operation."""

def __init__(self):
self.done = False
Expand All @@ -98,8 +98,7 @@ async def listen():
"""

recognition = SpeechRecognition.new()

status = RecognitionStatus()
status = SpeechRecognitionStatus()

def on_result(event):
status.transcript = event.results.item(0).item(0).transcript
Expand Down

0 comments on commit 605dbbe

Please sign in to comment.