oops
This commit is contained in:
parent
712ce4af5d
commit
67a9401cce
@ -298,6 +298,9 @@ def process(
|
|||||||
if waveform is None:
|
if waveform is None:
|
||||||
waveform, sample_rate = load_audio( inpath )
|
waveform, sample_rate = load_audio( inpath )
|
||||||
|
|
||||||
|
if max_duration and waveform.shape[-1] / sample_rate > max_duration:
|
||||||
|
continue
|
||||||
|
|
||||||
jobs.append(( outpath, waveform, sample_rate, text, language ))
|
jobs.append(( outpath, waveform, sample_rate, text, language ))
|
||||||
else:
|
else:
|
||||||
i = 0
|
i = 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user