This PR adds sample rate and audio format conversion for VoiceProcessor and EchoProbe. This is necessary because the microphone or speakers may not have a 48kHz sampling rate. For example, on Bluetooth headphones on a Mac the sampling frequency is no longer 16 kHz, on Windows in wasapi it is 44.1 kHz. This will be useful to avoid any problems with unknown microphones and headphones.
This PR adds sample rate and audio format conversion for VoiceProcessor and EchoProbe. This is necessary because the microphone or speakers may not have a 48kHz sampling rate. For example, on Bluetooth headphones on a Mac the sampling frequency is no longer 16 kHz, on Windows in wasapi it is 44.1 kHz. This will be useful to avoid any problems with unknown microphones and headphones.