zackees / transcribe-anything

Input a local file or url and this service will transcribe it using Whisper AI. Completely private and Free 🤯🤯🤯
MIT License
419 stars 34 forks source link

Support for Whisper initial_prompt? #3

Closed trbielec closed 1 year ago

trbielec commented 1 year ago

Does this project have support for Whisper's initial_prompt?

I wonder if automatically using any of the YouTube title, description, and/or tags could be useful for transcription accuracy since they are likely to be spoken in the audio but are not being used for context.

zackees commented 1 year ago

I've fixed this by parsing all unknown arguments and passing them to whisper ai. Confirmed it's fixed by the unit test https://github.com/zackees/transcribe-anything/blob/5a00e1e2660a687eb75cc1549a371f86ce14ac17/tests/test_transcribe_anything.py#L43

It will be present in v2.1.0 and above.