TypeError: readableStream.on is not a function
at <anonymous> (c:\Users\Lenovo\Desktop\TwilioAccessToken\app.ts:148:20)
at new Promise (<anonymous>)
at streamToArrayBuffer (c:\Users\Lenovo\Desktop\TwilioAccessToken\app.ts:145:10)
at WebSocket.<anonymous> (c:\Users\Lenovo\Desktop\TwilioAccessToken\app.ts:120:40)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
I'm using this code (https://elevenlabs.io/docs/api-reference/integrating-with-twilio) for Twilio-Elevanlabs. I'm facing the below error, while I have correctly setup my twilio account and use the same code that is provided in blog.
How can I fix it?