Add 2mic example service

This commit is contained in:
Michael Hansen
2023-12-11 14:28:04 -06:00
parent b1cc6da8f5
commit da1c134f8b
4 changed files with 288 additions and 6 deletions
@@ -4,13 +4,11 @@ import asyncio
import logging
import time
from functools import partial
from pathlib import Path
from wyoming.event import Event
from wyoming.server import AsyncEventHandler, AsyncServer
_LOGGER = logging.getLogger()
_DIR = Path(__file__).parent
async def main() -> None:
@@ -52,8 +50,6 @@ class ExampleEventHandler(AsyncEventHandler):
self.cli_args = cli_args
self.client_id = str(time.monotonic_ns())
self.is_running = True
_LOGGER.debug("Client connected: %s", self.client_id)
async def handle_event(self, event: Event) -> bool: