I wrote code on pyqt5 to record audio files in PCM codec to wav format. And it is fine on PC, but on android it is always write mp4 files with amr codec. How can i fix it?
Here is the code
recorder=QAudioRecorder(w)
audioSettings=QAudioEncoderSettings()
audioSettings.setCodec("audio/PCM")
audioSettings.setSampleRate(16000)
recorder.setAudioSettings(audioSettings);
recorder.setContainerFormat("wav");
recorder.setOutputLocation(QUrl.fromLocalFile("/sdcard/test"))
(Pyqt5 installed from pip in Pydroid 2 app on android, qt5 from Ministro II app)
Unfortunately, I don't solve the problem with QAudioRecorder. I find the way to write headerless signed-int 16bit 16khz little endian PCM with QAudioInput: