Fix Speex buffer loop before send over websocket