Skip to content

Conversation

@wronkiew
Copy link

Add a new 'params' parameter to the 'recognize_whisper_api' function, which allows the transcription prompt to be set by passing 'prompt='. This was implemented by passing the 'params' parameter to the Whisper speech recognition API.

which allows the transcription prompt to be set by passing
'prompt=<string>'. This was implemented by passing the 'params'
parameter to the Whisper speech recognition API.
@ericzakariasson
Copy link

Nice! This would also allow to set for the language parameter 🚀

ftnext added a commit to ftnext/speech_recognition that referenced this pull request Dec 7, 2024
@ftnext
Copy link
Collaborator

ftnext commented Dec 7, 2024

Thank you for the pull request.
**params is an awesome idea!

I introduced **kwargs for other feature development (bbf6753).
I couldn't merge this pull request, sorry.

@ftnext ftnext closed this Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants