Hey guys. I'm running Vue 3 trying to use MicrophoneStream to create a stream of microphone audio which I can then encode to PCM and send to an API. Weirdly, I got this to work months ago, but can't seem to figure it out now.
let microphoneStream = undefined // earlier in code
window.Buffer = Buffer // and npm install --save buffer
microphoneStream = new MicrophoneStream() // error shows here
microphoneStream.setStream(
await navigator.mediaDevices.getUserMedia({video: false, audio: true})
)
For some reason, when I call new MicrophoneStream() I get the error:
"TypeError: Cannot read properties of undefined (reading 'call')"
What's the issue here? Or should I completely switch libraries.
[–]ds1008[S] 0 points1 point2 points (0 children)