master #3
@ -119,7 +119,7 @@ def chunk(outfolder, length):
|
|||||||
samplerate*length+samplerate*length]
|
samplerate*length+samplerate*length]
|
||||||
|
|
||||||
time_file = datetime.strptime(time, "%Y%m%d_%H%M%S") + timedelta(seconds = 5 * i)
|
time_file = datetime.strptime(time, "%Y%m%d_%H%M%S") + timedelta(seconds = 5 * i)
|
||||||
time_file = str(time_file.time().__format__("%Y%m%d_%H%M%S"))
|
time_file = str(time_file.__format__("%Y%m%d_%H%M%S"))
|
||||||
filename = infile.replace(f'{time}.wav', f'{time_file}_000.wav')
|
filename = infile.replace(f'{time}.wav', f'{time_file}_000.wav')
|
||||||
try:
|
try:
|
||||||
sf.write(filename, temp, samplerate)
|
sf.write(filename, temp, samplerate)
|
||||||
|
Loading…
Reference in New Issue
Block a user