use unicode when recording
This commit is contained in:
parent
d348179ad4
commit
d36655a8c7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user