oops
This commit is contained in:
parent
59d0f08244
commit
a16e6b150f
|
@ -485,11 +485,8 @@ def prepare_dataset( files, outdir ):
|
||||||
|
|
||||||
transcription = []
|
transcription = []
|
||||||
for segment in result['segments']:
|
for segment in result['segments']:
|
||||||
start = int(segment['start'] * sampling_rate)-1
|
start = int(segment['start'] * sampling_rate)
|
||||||
end = int(segment['end'] * sampling_rate)+1
|
end = int(segment['end'] * sampling_rate)
|
||||||
|
|
||||||
print(segment['start'], segment['end'])
|
|
||||||
print(start, end)
|
|
||||||
|
|
||||||
sliced_waveform = waveform[:, start:end]
|
sliced_waveform = waveform[:, start:end]
|
||||||
sliced_name = f"{pad(idx, 4)}.wav"
|
sliced_name = f"{pad(idx, 4)}.wav"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user