-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a base_url parameter to the recognize_whisper_api function. #794
Labels
Comments
Groq provides whisper models. I see... |
Yes, exactly. That's why i need the base_url parameter. To use groq i need to put their url there and their api key. |
Hey, could you merge the PR #795 ? |
Merged
@amosdevstudio Try SpeechRecognition 3.12.0, which supports Groq.
>>> # NOTICE: export GROQ_API_KEY before launching Python interpreter
>>> import speech_recognition as sr
>>> r = sr.Recognizer()
>>> with sr.AudioFile("english.wav") as source:
... audio = r.record(source)
>>>
>>> r.recognize_groq(audio)
' One, two, three.' |
Great! I love to see this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just that. I would like to use the Groq API (https://groq.com/), but to do that I had to change the library's code. It's a simple fix, actually.
The text was updated successfully, but these errors were encountered: