<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 26 Apr 2018, at 12:13, Alex Tu <<a href="mailto:alex_tu@gmx.de" class="">alex_tu@gmx.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">Hey everyone,<br class="">I'm using the QAudioRecorder to record some audio to do some speech recognition.<br class="">The sample rate of the output should be 16kHz.<br class="">My settings look like this:<br class=""><br class="">        settings = QAudioEncoderSettings()<br class="">        settings.setCodec(self.supportedAudioCodecs()[0])<br class="">        settings.setBitRate(32000)<br class="">        settings.setSampleRate(16000)<br class="">        settings.setChannelCount(1)<br class="">        settings.setQuality(QMultimedia.VeryHighQuality)<br class="">        recorder.setAudioSettings(settings)<br class="">        // recorder.setEncodingSettings(self.settings) # Tried this as well, but no luck here either<br class=""><br class="">But checking the recorded .wav file with Audacity, the sample rate is always 96kHz and the bitrate is 192k instead of the 32k.<br class=""></div></div></blockquote><br class=""></div><div><font face="Courier New" class="">What happens if you add      settings.setEncodingMode(QMultimedia.ConstantBitRateEncoding)</font></div><div><font face="Courier New" class="">to your setup?</font></div><br class=""><div class="">— Colin</div></body></html>