31950: Stream - Protocol - Malformed Message
VOICE
WARNING
Twilio couldn't decode a message sent on the Media Streams WebSocket connection. Twilio sends this warning once per Stream.
- Your WebSocket server sent a message in binary format.
- Your application sent raw audio bytes directly over the WebSocket instead of sending a text message that matches the Media Streams message format.
- Send Media Streams messages as text WebSocket messages. Do not use binary frames.
- If you send audio to Twilio on a bidirectional Stream, send a
mediamessage with amedia.payloadvalue instead of sending raw binary audio. - Encode audio in
media.payloadas base64audio/x-mulawaudio at 8000 Hz. - Review the supported WebSocket message formats for
media,mark, andclearmessages.