use unicode when recording

This commit is contained in:
Damien Elmes 2013-09-23 15:13:46 +09:00
parent d348179ad4
commit d36655a8c7

View File

@ -24,8 +24,8 @@ def hasSound(text):
##########################################################################
processingSrc = "rec.wav"
processingDst = "rec.mp3"
processingSrc = u"rec.wav"
processingDst = u"rec.mp3"
processingChain = []
recFiles = []
@ -291,7 +291,7 @@ class PyAudioRecorder(_Recorder):
def file(self):
if self.encode:
tgt = "rec%d.mp3" % time.time()
tgt = u"rec%d.mp3" % time.time()
os.rename(processingDst, tgt)
return tgt
else: