Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EAGLE-5211] Refract openai whisper example #103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

luv-bansal
Copy link
Contributor

@luv-bansal luv-bansal commented Dec 5, 2024

What

  • Implemented stream generation of the output text from any audio files in the generate method i.e it will transcribe the the audio file in the stream way even though openai whisper API don't support streaming
  • corrected both generate and stream methods for batch requests
  • Refracted Openai whisper example, now the model.py code is more readable

How

We got the input audio in bytes, first split the original audio into chunks of audios, Each chunk is a valid WAV file with proper headers, allowing them to be processed independently, then run the whisper API for each audio WAV file also ensuring that batch requests also supported.

Test

Tested this model example locally using local dev runner

@luv-bansal luv-bansal changed the title Refract openai whisper example [EAGLE-5211] Refract openai whisper example Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant