Skip to content
Snippets Groups Projects
Commit cab5a761 authored by Stephane Chavin's avatar Stephane Chavin
Browse files

add sr none default

parent 9f79d5de
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,8 @@ def process_recordings(data, img_per_rec, args):
try:
sig, fs = sf.read(filename, start=int(offset*fs), stop=int((offset+duration)*fs), always_2d=True)
sig = sig[:,0]
if not args.sr:
args.sr = fs
sig = signal_processing(sig, args.sr, fs, args.up, args.low)
create_spectrogram(sig, args.directory, filename, offset, duration, args.window, args.hop)
except Exception:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment