lmnt: don't send "eof" before closing the socket

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-24 14:37:37 -08:00
parent 5b637bd826
commit 408270b647

View File

@@ -150,8 +150,9 @@ class LmntTTSService(InterruptibleTTSService):
if self._websocket: if self._websocket:
logger.debug("Disconnecting from LMNT") logger.debug("Disconnecting from LMNT")
# Send EOF message before closing # NOTE(aleix): sending EOF message before closing is causing
await self._websocket.send(json.dumps({"eof": True})) # errors on the websocket, so we just skip it for now.
# await self._websocket.send(json.dumps({"eof": True}))
await self._websocket.close() await self._websocket.close()
self._websocket = None self._websocket = None