truncating to 30 seconds
Browse files- ultravox_processing.py +0 -1
ultravox_processing.py
CHANGED
@@ -234,7 +234,6 @@ class UltravoxProcessor(transformers.ProcessorMixin):
|
|
234 |
audio,
|
235 |
sampling_rate=sampling_rate,
|
236 |
padding="longest",
|
237 |
-
max_length=audio_len, # The whisper audio_processor can handle audio lengths longer than 30 seconds
|
238 |
return_attention_mask=True,
|
239 |
**kwargs,
|
240 |
)
|
|
|
234 |
audio,
|
235 |
sampling_rate=sampling_rate,
|
236 |
padding="longest",
|
|
|
237 |
return_attention_mask=True,
|
238 |
**kwargs,
|
239 |
)
|