oops x2
This commit is contained in:
parent
a16e6b150f
commit
8482131e10
|
@ -471,6 +471,7 @@ def prepare_dataset( files, outdir ):
|
|||
|
||||
idx = 0
|
||||
results = {}
|
||||
transcription = []
|
||||
|
||||
for file in files:
|
||||
print(f"Transcribing file: {file}")
|
||||
|
@ -483,7 +484,6 @@ def prepare_dataset( files, outdir ):
|
|||
waveform, sampling_rate = torchaudio.load(file)
|
||||
num_channels, num_frames = waveform.shape
|
||||
|
||||
transcription = []
|
||||
for segment in result['segments']:
|
||||
start = int(segment['start'] * sampling_rate)
|
||||
end = int(segment['end'] * sampling_rate)
|
||||
|
|
Loading…
Reference in New Issue
Block a user