
    1hf                        S SK Jr  S SKJrJr  S SKJr  S SKJr  S SK	J
r
  S SKJr  \S   r " S S	\5      rS
S.       SS jjrg)    )annotations)Literal	TypedDict)Unpack)	AudioData)
SetupError)OpenAICompatibleRecognizer)whisper-large-v3-turbozwhisper-large-v3zdistil-whisper-large-v3-enc                  B    \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S	rg
)GroqOptionalParameters   zyGroq speech transcription's optional parameters.

https://console.groq.com/docs/speech-text#transcription-endpoint-usage
strpromptresponse_formatfloattemperaturelanguage N)__name__
__module____qualname____firstlineno____doc____annotations____static_attributes__r       g/var/www/auris/envauris/lib/python3.13/site-packages/speech_recognition/recognizers/whisper_api/groq.pyr   r      s    
 KMr   r   r
   )modelc                    SSK n[        UR	                  5       5      nUR
                  " X40 UD6$ ! [         a    [        S5      ef = f)a  Performs speech recognition on ``audio_data`` (an ``AudioData`` instance), using the Groq Whisper API.

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.

Detail: https://console.groq.com/docs/speech-text

Set environment variable ``GROQ_API_KEY``; otherwise groq library will raise a ``groq.GroqError``.
r   Nz:missing groq module: ensure that groq is set up correctly.)groqImportErrorr   r	   Groq	recognize)
recognizer
audio_datar   kwargsr    groq_recognizers         r   r#   r#      sS    
 1=O$$ZA&AA  
H
 	

s	   2 AN)r%   z'AudioData'r   	GroqModelr&   zUnpack[GroqOptionalParameters]returnr   )
__future__r   typingr   r   typing_extensionsr   speech_recognition.audior   speech_recognition.exceptionsr   /speech_recognition.recognizers.whisper_api.baser	   r(   r   r#   r   r   r   <module>r0      si    " % $ . 4
 N	
	Y 	  0	BB 	B
 -B 	Br   