← Back to the chapter · Previous detail
Technical detail · TinyML on Microcontrollers
Why the audio buffer cannot hold raw sound
A 16 kHz, 16-bit mono stream produces 32,000 bytes/s. An 8 kB buffer (using 8192 bytes here) therefore holds only 4096 samples, or 256 ms, even though the 8 kHz Nyquist limit easily covers 4 kHz speech. Bit depth also moves the ideal quantisation ceiling from 49.9 dB at 8 bits to 98.1 dB at 16 bits. Sampling, precision, and memory must fit together before inference begins.