You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `Whisper API <https://platform.openai.com/docs/guides/speech-to-text>`__
42
+
* `OpenAI Whisper API <https://platform.openai.com/docs/guides/speech-to-text>`__
43
+
* `Groq Whisper API <https://console.groq.com/docs/speech-text>`__
43
44
44
45
**Quickstart:** ``pip install SpeechRecognition``. See the "Installing" section for more details.
45
46
@@ -96,7 +97,8 @@ To use all of the functionality of the library, you should have:
96
97
* **FLAC encoder** (required only if the system is not x86-based Windows/Linux/OS X)
97
98
* **Vosk** (required only if you need to use Vosk API speech recognition ``recognizer_instance.recognize_vosk``)
98
99
* **Whisper** (required only if you need to use Whisper ``recognizer_instance.recognize_whisper``)
99
-
* **openai** (required only if you need to use Whisper API speech recognition ``recognizer_instance.recognize_whisper_api``)
100
+
* **openai** (required only if you need to use OpenAI Whisper API speech recognition ``recognizer_instance.recognize_whisper_api``)
101
+
* **groq** (required only if you need to use Groq Whisper API speech recognition ``recognizer_instance.recognize_groq``)
100
102
101
103
The following requirements are optional, but can improve or extend functionality in some situations:
102
104
@@ -171,15 +173,24 @@ Whisper is **required if and only if you want to use whisper** (``recognizer_ins
171
173
172
174
You can install it with ``python3 -m pip install SpeechRecognition[whisper-local]``.
173
175
174
-
Whisper API (for Whisper API users)
175
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
176
+
OpenAI Whisper API (for OpenAI Whisper API users)
177
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
176
178
177
-
The library `openai <https://pypi.org/project/openai/>`__ is **required if and only if you want to use Whisper API** (``recognizer_instance.recognize_whisper_api``).
179
+
The library `openai <https://pypi.org/project/openai/>`__ is **required if and only if you want to use OpenAI Whisper API** (``recognizer_instance.recognize_whisper_api``).
178
180
179
181
If not installed, everything in the library will still work, except calling ``recognizer_instance.recognize_whisper_api`` will raise an ``RequestError``.
180
182
181
183
You can install it with ``python3 -m pip install SpeechRecognition[whisper-api]``.
182
184
185
+
Groq Whisper API (for Groq Whisper API users)
186
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
187
+
188
+
The library `groq <https://pypi.org/project/groq/>`__ is **required if and only if you want to use Groq Whisper API** (``recognizer_instance.recognize_groq``).
189
+
190
+
If not installed, everything in the library will still work, except calling ``recognizer_instance.recognize_groq`` will raise an ``RequestError``.
191
+
192
+
You can install it with ``python3 -m pip install SpeechRecognition[groq]``.
Performs speech recognition on ``audio_data`` (an ``AudioData`` instance), using the Groq Whisper API.
40
+
41
+
This function requires login to Groq; visit https://console.groq.com/login, then generate API Key in `API Keys <https://console.groq.com/keys>`__ menu.
42
+
43
+
Detail: https://console.groq.com/docs/speech-text
44
+
45
+
Raises a ``speech_recognition.exceptions.SetupError`` exception if there are any issues with the groq installation, or the environment variable is missing.
0 commit comments