make all transports read/write functions async

This commit is contained in:
Aleix Conchillo Flaqué
2024-05-30 16:28:17 -07:00
parent 219af71227
commit 7a6136fa9d
12 changed files with 195 additions and 282 deletions

View File

@@ -31,7 +31,12 @@ logger.add(sys.stderr, level="DEBUG")
async def main():
async with aiohttp.ClientSession() as session:
transport = WebsocketServerTransport(params=WebsocketServerParams(add_wav_header=True))
transport = WebsocketServerTransport(
params=WebsocketServerParams(
audio_out_enabled=True,
add_wav_header=True
)
)
vad = SileroVAD(audio_passthrough=True)