community: add video transcript loaders using Whisper for enhanced video transcription #21426
+1,584
−380
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.
Description:
This pull request introduces six new loader classes to the
community
package, enhancing video processing capabilities across different environments using the Whisper model. These classes facilitate the transcription of video files into either segmented or paragraphed text formats. Each loader class returns comprehensive information about the transcription, including the source, start time, end time, and other relevant metadata. The classes are designed to cater to different setups: Azure, Local, and OpenAI platforms, each offering both paragraph and segment-based processing.New Classes:
AzureWhisperVideoParagraphLoader
: Processes video files into paragraphs using Azure's Whisper API.AzureWhisperVideoSegmentLoader
: Processes video files into segments using Azure's Whisper API.LocalWhisperVideoParagraphLoader
: Transcribes local video files into paragraphs using the local Whisper model.LocalWhisperVideoSegmentLoader
: Transcribes local video files into segments using the local Whisper model.OpenAIWhisperVideoParagraphLoader
: Utilizes OpenAI's cloud-based Whisper API to transcribe videos into paragraphs.OpenAIWhisperVideoSegmentLoader
: Utilizes OpenAI's cloud-based Whisper API to transcribe videos into segments.Dependencies: