From a72e56bc450f208e75f343717acd8eb7c5402f39 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 6 Sep 2009 17:17:13 +0900 Subject: [PATCH] patch from saturnien, make mp3 encoding optional --- ankiqt/ui/sound.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ankiqt/ui/sound.py b/ankiqt/ui/sound.py index 7b3a9b350..743f5ecf4 100644 --- a/ankiqt/ui/sound.py +++ b/ankiqt/ui/sound.py @@ -8,7 +8,7 @@ import time from anki.sound import Recorder, play, generateNoiseProfile from ankiqt.ui.utils import saveGeom, restoreGeom -def getAudio(parent, string=""): +def getAudio(parent, string="", encode=True): "Record and return filename" # record first r = Recorder() @@ -34,7 +34,7 @@ def getAudio(parent, string=""): time.sleep(0.1) r.stop() # process - r.postprocess() + r.postprocess(encode) return r.file() def recordNoiseProfile(parent):