-
Notifications
You must be signed in to change notification settings - Fork 197
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
Support for Initial Prompt and Hotwords in WhisperPipeline (similar to faster-whisper) #1150
Comments
Hello, thanks for a request! I'll review it. |
#1378) Adds: * `initial_prompt` parameter ([faster_whisper reference](https://github.com/SYSTRAN/faster-whisper/blob/203dddb047fd2c3ed2a520fe1416467a527e0f37/faster_whisper/transcribe.py#L732)) - injects initial prompt tokens as a previous transcription into the first processing window * `hotwords` parameter ([faster_whisper reference](https://github.com/SYSTRAN/faster-whisper/blob/203dddb047fd2c3ed2a520fe1416467a527e0f37/faster_whisper/transcribe.py#L768)) - injects hotwords tokens as a previous transcription into the all processing windows * Whisper pipeline usage notes in samples Closes #1150 Ticket: 156888
…s (#1378) Adds: * `initial_prompt` parameter ([faster_whisper reference](https://github.com/SYSTRAN/faster-whisper/blob/203dddb047fd2c3ed2a520fe1416467a527e0f37/faster_whisper/transcribe.py#L732)) - injects initial prompt tokens as a previous transcription into the first processing window * `hotwords` parameter ([faster_whisper reference](https://github.com/SYSTRAN/faster-whisper/blob/203dddb047fd2c3ed2a520fe1416467a527e0f37/faster_whisper/transcribe.py#L768)) - injects hotwords tokens as a previous transcription into the all processing windows * Whisper pipeline usage notes in samples Closes openvinotoolkit/openvino.genai#1150 Ticket: 156888
Thank you so much for resolving this issue! I deeply respect and appreciate your effort in resolving this. I’m looking forward to the release of the prebuilt binary that includes your changes. Additionally, I’m hopeful for the resolution of issue #1164 as well. |
You could already try this changes using nightly package, installation instructions: https://docs.openvino.ai/2024/get-started/install-openvino.html?PACKAGE=OPENVINO_GENAI&VERSION=NIGHTLY&OP_SYSTEM=LINUX&DISTRIBUTION=PIP I will give you an update when I get more news regarding Beam Search for the Whisper pipeline. |
Hello OpenVINO team,
I'm currently using the WhisperPipeline in openvino.genai and would like to request a feature similar to that of faster-whisper (CTranslate2), where users can provide an initial_prompt or specify hotwords to influence the transcription process.
This feature would be particularly useful in cases where we want to improve transcription accuracy for specific terms or in domain-specific contexts.
Feature Request:
Is there any existing workaround or plan to incorporate these features in openvino.genai?
Thank you for considering this feature request!
The text was updated successfully, but these errors were encountered: