SOLVED: OHF-Voice/speech-to-phrase container error "MESSAGE_TOO_BIG" on start

I’m attempting to use speech-to-phrase, which I understand to be the successor of rhasspy-speech.

But when starting the container, it comes back with this error at the end of the backtrace:

File "/usr/src/.venv/lib/python3.11/site-packages/aiohttp/client_ws.py", line 386, in receive_str
    raise WSMessageTypeError(
aiohttp.client_exceptions.WSMessageTypeError: Received message 258:WebSocketError(<WSCloseCode.MESSAGE_TOO_BIG: 1009>, 'Message size 4497432 exceeds limit 4194304') is not WSMsgType.TEXT

I tried reducing the numbers of entities exposed.

EDIT: SOLVED: Message contains all entities, not just exposed entities. I had lots of old/broken entities. Deleted some of them, that allowed me to get under the current limit of speech-to-phrase.

This should be fixed in the 1.3.0 version of the add-on when it’s released: Bump speech-to-phrase to 1.3.0 by synesthesiam · Pull Request #3940 · home-assistant/addons · GitHub