Hi,
I'm trying to load a .WAV file with offset as float value (ex: 1.6 seconds) and duration also being float value.
X, sample_rate = librosa.load(audioFile, res_type='kaiser_fast',offset = start_time, duration=duration_seconds,sr=22050*2)
It (correctly?) fails at
# Construct the stream
if offset:
start = int(offset * sr)
else:
start = 0
if duration:
frames = int(duration * sr)
in
But as per documentation I can use float value for both. I'm using python 3.
Please confirm if I can use float offset and duration while loading WAV file.
Thanks
Ishwar