remotion icon indicating copy to clipboard operation
remotion copied to clipboard

Add whisper max-length parameter

Open josefbender opened this issue 2 years ago β€’ 8 comments

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.

josefbender avatar Apr 09 '24 08:04 josefbender

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

JonnyBurger avatar Apr 09 '24 08:04 JonnyBurger

πŸ’Ž $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

algora-pbc[bot] avatar Apr 09 '24 08:04 algora-pbc[bot]

/attempt

Options

josefbender avatar Apr 09 '24 11:04 josefbender

@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.

algora-pbc[bot] avatar Apr 09 '24 11:04 algora-pbc[bot]

@youssefbenlemlih Cool you give it a try yourself! Good luck!

JonnyBurger avatar Apr 10 '24 08:04 JonnyBurger

πŸ’‘ @youssefbenlemlih submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] avatar Apr 11 '24 15:04 algora-pbc[bot]

@youssefbenlemlih: You've been awarded a $100 bounty by remotion! πŸ‘‰ Complete your Algora onboarding to collect the bounty.

algora-pbc[bot] avatar Apr 11 '24 15:04 algora-pbc[bot]

πŸŽ‰πŸŽˆ @youssefbenlemlih has been awarded $100! 🎈🎊

algora-pbc[bot] avatar Apr 12 '24 10:04 algora-pbc[bot]