Sample project, receiving Twilio Media Stream via Websockets. Data is buffered, converted into an Audio file and uploaded to Azure Storage.
This code is supported by a full article which can be found here:
https://blogs.siliconorchid.com/post/coding-inspiration/twilio-mediastreams/