mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
add timestamp to recording files
This commit is contained in:
parent
6f10c588f6
commit
a18abb0f97
1 changed files with 3 additions and 1 deletions
|
@ -324,7 +324,9 @@ class PyAudioRecorder(_Recorder):
|
||||||
|
|
||||||
def file(self):
|
def file(self):
|
||||||
if self.encode:
|
if self.encode:
|
||||||
return processingDst
|
tgt = "rec%d.mp3" % time.time()
|
||||||
|
os.rename(processingDst, tgt)
|
||||||
|
return tgt
|
||||||
else:
|
else:
|
||||||
return recFiles[1]
|
return recFiles[1]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue