Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushMalaker committed Jan 13, 2025
1 parent 79482b6 commit 4650cbe
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions wyoming_openwakeword/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def init_model(self):
self.model = Model(
wakeword_models=wakeword_models,
inference_framework="tflite",
melspec_model_path=openwakeword.FEATURE_MODELS[
"melspectrogram"
]["model_path"],
melspec_model_path=openwakeword.FEATURE_MODELS["melspectrogram"][
"model_path"
],
embedding_model_path=openwakeword.FEATURE_MODELS["embedding"][
"model_path"
],
Expand Down Expand Up @@ -113,7 +113,6 @@ async def handle_event(self, event: Event) -> bool:
_LOGGER.debug("Sent info to client: %s", self.client_id)
return True


if Detect.is_type(event.type):
detect = Detect.from_event(event)
if detect.names:
Expand Down Expand Up @@ -143,7 +142,6 @@ async def handle_event(self, event: Event) -> bool:
self.reset_model()
assert self.model is not None


chunk = self.converter.convert(AudioChunk.from_event(event))
self.last_timestamp = chunk.timestamp

Expand Down

0 comments on commit 4650cbe

Please sign in to comment.