Add whisper max-length parameter
Feature Request ποΈ
It would be practical to have the option to omit (don't pass any) or set the max-length parameter passed to whisper.cpp in the transcribe function.
https://github.com/remotion-dev/remotion/blob/main/packages/install-whisper-cpp/src/transcribe.ts
This would make it possible to easily generate sentence transcription: Each transcription would contain multiple tokens instead of one, which is whisper.cpp's default behavior.
Use Case
Create movie-style subtitles for a video, using whisper.cpp's default token grouping.
Possible Solution
Add an optional parameter tokens per transcript, with a default of 1 (backwards compatibility). If set to null then don't pass any value to the whisper command.
Option 2: add an optional argument processArgs that applies changes to the args passed to whispercpp.
Great idea! I like it. I'm gonna put a bounty on it!
##Β Acceptance criteria
Add a new maxLength option to transcribe() which controls this option.
If left out, the current behavior should be kept.
It should be documented in transcribe.mdx and being marked as available for the next patch version.
/bounty 100
π This issue has a bounty on it!
Read our contributing guidelines:
- How to contribute: https://www.remotion.dev/docs/contributing/
- Implementing a new feature: https://www.remotion.dev/docs/contributing/feature
- Implementing a new option: https://www.remotion.dev/docs/contributing/option
- Write documentation: https://www.remotion.dev/docs/contributing/docs
- Bounty information: https://www.remotion.dev/docs/contributing/bounty
π $100 bounty created by remotion
π If you'd like to work on this issue, comment /attempt below to get assigned
π Once assigned, you can claim the bounty by using the /claim #3688 command in the PR body
π Before proceeding, please make sure you can receive payouts in your country
π΅ Payment arrives in your account 2-5 days after the bounty is rewarded
π― You keep 100% of the bounty award
π Thank you for contributing to remotion-dev/remotion!
π Add a bounty β’ Share on socials
@youssefbenlemlih: The Remotion team prefers to assign a single contributor to the issue rather than let anyone attempt it right away. We recommend waiting for a confirmation from a member before getting started.
@youssefbenlemlih Cool you give it a try yourself! Good luck!
π‘ @youssefbenlemlih submitted a pull request that claims the bounty. You can visit your bounty board to reward.
@youssefbenlemlih: You've been awarded a $100 bounty by remotion! π Complete your Algora onboarding to collect the bounty.