Long audio file, need help,. #726
artyomboyko
started this conversation in
General
Replies: 1 comment 7 replies
-
I haven't had to do this myself, but you could identify periods of silence and split at those times, using for example ffmpeg directly or a library like pydub. Would that work for your audio? How long is it? See for example |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all. I'm new to audio and Whisper. Can anyone give me some pointers. How to process a long audio file in parts? Is there any mechanism that allows slicing audio in Python code (something like batches)?
As I understand it, this piece of code trims the audio to a length of 30 seconds:
``python
audio = whisper.pad_or_trim(audio)
Beta Was this translation helpful? Give feedback.
All reactions