Add 2mic example service
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user