Skip to content

Add ffmpeg fallback for Whisper audio decoding - #161

Open
jeffreywangcf wants to merge 1 commit into
SearchSavior:mainfrom
jeffreywangcf:user/jwang/ffmpeg_fallback
Open

Add ffmpeg fallback for Whisper audio decoding#161
jeffreywangcf wants to merge 1 commit into
SearchSavior:mainfrom
jeffreywangcf:user/jwang/ffmpeg_fallback

Conversation

@jeffreywangcf

Copy link
Copy Markdown

No description provided.

@jeffreywangcf

jeffreywangcf commented Sep 2, 2026

Copy link
Copy Markdown
Author

Adds ffmpeg fallback for Whisper audio decoding in src/engine/ov_genai/whisper.py:

  • Retry once with FFmpeg when librosa raises LibsndfileError for containers such as WebM or MP4
  • ffmpeg will not be a required dependency. The fallback will just fail if ffmpeg not installed (in user's environment or container). User have to install it manually.

Verified locally: built and ran the Battlemage container with FFmpeg 6.1.1 and loaded whisper-large-v3 successfully on GPU. Tried tts/stt with no issue.

Resolve #150

@jeffreywangcf
jeffreywangcf marked this pull request as ready for review September 2, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant