mattdiamond / Recorderjs

A plugin for recording/exporting the output of Web Audio API nodes
4.16k stars 1.46k forks source link

Recording Content with Frequencies > 15000 Hz #199

Open abx393 opened 4 years ago

abx393 commented 4 years ago

pixel_14000Hz pixel_16000Hz pixel_17000Hz

When recording a tone of constant frequency greater than 15000 Hz, the frequency resolution of the audio drops significantly. This issue occurs on the Google Pixel in the Google Chrome browser. I have tested that the phone's speaker and microphone through other apps (not web apps) and it is able to record content with frequencies up to 22000 Hz without a problem.

The above spectrograms represent audio clips in which a 14000Hz tone, a 16000 Hz tone, and a 17000 Hz tone are played, respectively. Any idea why frequency resolution is much lower for higher frequencies?