mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
explicitly set sample rate and channels
Windows sounds awful by default on a machine here.
This commit is contained in:
parent
3a250f5238
commit
cd31780668
1 changed files with 4 additions and 1 deletions
|
@ -544,8 +544,11 @@ class RecordDialog(QDialog):
|
|||
# start recording
|
||||
self._recorder = QAudioRecorder(self._parent)
|
||||
self._output = namedtmp("rec.wav")
|
||||
audio = self._recorder.audioSettings()
|
||||
audio.setSampleRate(44100)
|
||||
audio.setChannelCount(1)
|
||||
self._recorder.setEncodingSettings(
|
||||
self._recorder.audioSettings(),
|
||||
audio,
|
||||
self._recorder.videoSettings(),
|
||||
"audio/x-wav",
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue