Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 1.0.1

add shutdown stop the mic process so on clinet startup we can start it again
else have to recycle the mic-external process/container

change to wyoming 1.6.0

## 1.0.0

- Initial release
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
wyoming==1.2.0
wyoming==1.6.0
18 changes: 15 additions & 3 deletions wyoming_mic_external/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,22 @@ async def run_mic(self) -> None:
audio=audio_bytes,
timestamp=time.monotonic_ns(),
)
await self.write_event(chunk.event())
except Exception:
_LOGGER.exception("Unexpected error in run_mic")
try:
await self.write_event(chunk.event())
except:
pass
break
except:
pass
_LOGGER.exception("Unexpected error in run_mic")
try:
proc.terminate()
except:
pass


async def disconnect(self) -> None:
_LOGGER.debug("Client disconnected: %s", self.client_id)

# -----------------------------------------------------------------------------

Expand Down