whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

Add `params.initial_prompt` to set an initial prompt string

Open sindresorhus opened this issue 2 years ago • 1 comments

It would be useful if the API had an initial_prompt parameter to set a string as the initial prompt. The OpenAI docs recommend always setting it to fix punctation, so it's quite a common need: https://platform.openai.com/docs/guides/speech-to-text/prompting

I'm aware I could already do something like this, but I don't think it makes sense for everyone to re-implement that logic.

sindresorhus avatar Mar 21 '23 12:03 sindresorhus

Agree, that option will be very useful!

I did the same in https://github.com/mybigday/whisper.rn/pull/8, I think it can be built directly into the whisper.cpp. Maybe I will try to send a PR later.

jhen0409 avatar Mar 22 '23 00:03 jhen0409

I also would appreciate this

User1231300 avatar Mar 28 '23 14:03 User1231300