From a16e6b150f5c2b180b39978ef855bc7f95794a36 Mon Sep 17 00:00:00 2001 From: mrq Date: Fri, 17 Feb 2023 06:11:04 +0000 Subject: [PATCH] oops --- src/utils.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/utils.py b/src/utils.py index b8170ed..0f1fbb3 100755 --- a/src/utils.py +++ b/src/utils.py @@ -485,11 +485,8 @@ def prepare_dataset( files, outdir ): transcription = [] for segment in result['segments']: - start = int(segment['start'] * sampling_rate)-1 - end = int(segment['end'] * sampling_rate)+1 - - print(segment['start'], segment['end']) - print(start, end) + start = int(segment['start'] * sampling_rate) + end = int(segment['end'] * sampling_rate) sliced_waveform = waveform[:, start:end] sliced_name = f"{pad(idx, 4)}.wav"