Skip to content
Discussion options

You must be logged in to vote

I've tried using the decode_audio function from faster_whisper to transcribe audio from a WebM file, and it worked. I'm not 100% sure if it's going to work with other video formats, but one thing is for sure: the decode_audio function uses FFmpeg and the av library to load audio files. You can still see the implementation of that function in case it doesn't work with other video formats.

from faster_whisper.audio import decode_audio

data = decode_audio(file)
model.transcribe(data)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ilyasbendev
Comment options

Answer selected by ilyasbendev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants