YZarytskyi / react-voice-visualizer

React library for audio recording and visualization using the Web Audio API
https://www.npmjs.com/package/react-voice-visualizer
MIT License
95 stars 22 forks source link

All recorded audio is in mono. Is there a way to record in stereo? #11

Open Johnrobmiller opened 4 months ago

Johnrobmiller commented 4 months ago

When I record audio using this library and download it, I see that the audio is in mono. Below is a screenshot of the audio in Audacity where you can see that it is mono.

Note, this could not be a hardware issue. I have a mic that records in stereo, tested that it indeed is recording in stereo using Audacity, but I can't get any stereo recordings from this library using that mic.

Would adding channelCount somewhere in here fix it? https://github.com/YZarytskyi/react-voice-visualizer/blob/main/src/hooks/useVoiceVisualizer.tsx#L139

image