High-pitch chipmunk voice on recording from ADC #1178
-
Hi. I'm using example streams-i2s-webserver_wav but adopted it for analog microphone and AnalogAudioStream on input. Sketch is working, but recorded sound is distorted to high-pitch and high-speed, like chipmunk. I've tried to change sample rate but nothing cnahges. What options are useful for tuning voice pitch (or speed) when sampling an analog audio? AudioInfo _mainInfo(44100, 1, 16); // TRIED TO CHANGE THIS TO 8k, 22k, 32bit
AnalogAudioStream _inputStream;
auto inputCfg = _inputStream.defaultConfig(RX_MODE);
inputCfg.copyFrom(_mainInfo);
_inputStream.begin(inputCfg);
server.begin(_inputStream, _mainInfo); |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
Check in your log if you get some mixup between stereo and mono somewhere |
Beta Was this translation helpful? Give feedback.
-
I committed a correction which updates the audio information (incl. the channels) to the encoded audio stream in the audio server |
Beta Was this translation helpful? Give feedback.
-
I'm experiencing a similar issue with the audio being pitched up with an SI4703 connected to the ADC. Not sure there's any problem with the number of channels however. Sketch below any thoughts?
|
Beta Was this translation helpful? Give feedback.
-
The sketch looks right to me:
ps. In Switzerland the national FM radios have been switched off on the 1.st of January! |
Beta Was this translation helpful? Give feedback.
-
Yes or something close to that. |
Beta Was this translation helpful? Give feedback.
Check in your log if you get some mixup between stereo and mono somewhere