serenadeai / speech-recorder

speech-recorder is a node.js module for streaming audio from a device's microphone and filtering for speech.
MIT License
86 stars 19 forks source link

Audio details #14

Closed guiandrade2 closed 1 year ago

guiandrade2 commented 3 years ago

I have looked through the code trying to find the default parameters for the sounds recording (sampling rate, bit depth, channels, encoding) but the values I found as default there ( sampling rate = 44100 Khz, bit depth = 8 , channels = 2, encoding = ?) don't seem to add up when I run the raw audio through conversion processes. Is there a reliable way of checking these details?

tmacwill commented 1 year ago

apologies for the hugely delayed response here, but this library uses 16-bit, single-channel audio. the sample rate is 16000 unless otherwise specified in the constructor.