Add cloud-based Whisper support for transcription #111
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for OpenAI's cloud-based Whisper API as an alternative to the local Whisper model. This enhancement provides several benefits:
Key Features:
Implementation Details:
use_cloud_whisper
flag to enable cloud-based transcriptionmanim_cloud_whisper.py
) for easy usageSpeechService
class to handle cloud-based transcriptionUsage:
Users can enable cloud-based Whisper in three ways:
python manim_cloud_whisper.py
MANIM_VOICEOVER_USE_CLOUD_WHISPER=1
use_cloud_whisper=True
in OpenAIServiceExample:
Added a comprehensive linear regression demo showcasing the cloud-based Whisper functionality with synchronized voiceovers and animations.
Note: Requires OpenAI API key to be set in environment variables.