Flesh out test

This commit is contained in:
Michael Hansen
2024-02-19 14:20:57 -06:00
parent 70652bbea2
commit 36353ff03a
3 changed files with 145 additions and 74 deletions
+1 -12
View File
@@ -20,22 +20,11 @@ from wyoming_satellite import (
WakeStreamingSatellite,
)
from .shared import AUDIO_CHUNK
from .shared import MicClient
_LOGGER = logging.getLogger()
class MicClient(AsyncClient):
async def read_event(self) -> Optional[Event]:
# Send 30ms of audio every 30ms
await asyncio.sleep(AUDIO_CHUNK.seconds)
return AUDIO_CHUNK.event()
async def write_event(self, event: Event) -> None:
# Output only
pass
class WakeClient(AsyncClient):
def __init__(self) -> None:
super().__init__()