how to transcribe hundreds of local audio files once?

#114
by myspace-ai - opened

how to transcribe hundreds of local audio files once? i got hundreds of files,
result = pipe("audio.mp3")
what should i do?

Hey @myspace-ai , you can pass a list of audio files and set the batch size parameter to control how many you transcribe in parallel:

result = pipe(["audio_1.mp3", "audio_2.mp3"], batch_size=16)

You can also set chunk_length_s=30.0 to enable chunking of large audio files for faster long-form audio transcription:

result = pipe(["audio_1.mp3", "audio_2.mp3"], batch_size=16, chunk_length_s=30.0)

Hope that helps!

Sign up or log in to comment