mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
use unicode when recording
This commit is contained in:
parent
d348179ad4
commit
d36655a8c7
1 changed files with 3 additions and 3 deletions
|
@ -24,8 +24,8 @@ def hasSound(text):
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
processingSrc = "rec.wav"
|
processingSrc = u"rec.wav"
|
||||||
processingDst = "rec.mp3"
|
processingDst = u"rec.mp3"
|
||||||
processingChain = []
|
processingChain = []
|
||||||
recFiles = []
|
recFiles = []
|
||||||
|
|
||||||
|
@ -291,7 +291,7 @@ class PyAudioRecorder(_Recorder):
|
||||||
|
|
||||||
def file(self):
|
def file(self):
|
||||||
if self.encode:
|
if self.encode:
|
||||||
tgt = "rec%d.mp3" % time.time()
|
tgt = u"rec%d.mp3" % time.time()
|
||||||
os.rename(processingDst, tgt)
|
os.rename(processingDst, tgt)
|
||||||
return tgt
|
return tgt
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue