react-mic icon indicating copy to clipboard operation
react-mic copied to clipboard

How to specify the audio channel?

Open bonkeenu opened this issue 5 years ago • 1 comments

Hi. This library's default audio channel is "2". But I want to set audio channel 1. Can I do?

sox --i ./recorded.wav

Input File     : './recorded.wav'
Channels       : 2
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:00:21.41 = 944128 samples = 1605.66 CDDA sectors
File Size      : 3.78M
Bit Rate       : 1.41M
Sample Encoding: 16-bit Signed Integer PCM

bonkeenu avatar Feb 14 '20 14:02 bonkeenu

I know this is a really old issue but keeping it here for any developers checking it right now. So this library version uses vmsg as the basis of recording mp3 audio and vmsg has two parts vmsg.js and vsmg.wasm. And if you look at the source code of vmsg you can only define such things like channels, bit rate, type(CBR or VBR) etc. in there. So if you want to have that functionality you may need to change certain lines in the source of vmsg.

NegiBaba avatar Aug 25 '23 06:08 NegiBaba