Hi all,
I’m looking for recommendation to capture microphone audio with the following properties:
- sample rate: 16000 Hz
- single channel (mono)
I was able to use the AudioCapture
component to record microphone audio into a .wav file. I was able to achieve the desired sample rate by changing the target platform setting (e.g. Platforms - Windows
→ Audio Mixer Sample Rate
). However, it’s my understanding that this setting affect all audio streams, which is not ideal as I don’t want to downgrade all audio to 16000 Hz.
I also figured out how to read the .wav file into an array and convert it from stereo to mono (thanks to Zexus_ in this post). However, I would like to eliminate this post-processing step if possible.
Is there any way I can capture microphone audio with a specific sample rate and channel settings directly in Blueprint or c++?