Ë
    Fü´jP  ã                  ó  — d dl mZ ddlmZmZmZmZmZmZ ddl	m
Z
 ddlmZmZ ddlmZmZmZmZmZmZ ddlmZmZmZmZmZmZ d	d
gZ G d„ d	e«      Z G d„ d
e«      Z G d„ d«      Z G d„ d«      Z  G d„ d«      Z! G d„ d«      Z"y)é    )Úannotationsé   )ÚSpeechÚAsyncSpeechÚSpeechWithRawResponseÚAsyncSpeechWithRawResponseÚSpeechWithStreamingResponseÚ AsyncSpeechWithStreamingResponseé   )Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)ÚTranslationsÚAsyncTranslationsÚTranslationsWithRawResponseÚ AsyncTranslationsWithRawResponseÚ!TranslationsWithStreamingResponseÚ&AsyncTranslationsWithStreamingResponse)ÚTranscriptionsÚAsyncTranscriptionsÚTranscriptionsWithRawResponseÚ"AsyncTranscriptionsWithRawResponseÚ#TranscriptionsWithStreamingResponseÚ(AsyncTranscriptionsWithStreamingResponseÚAudioÚ
AsyncAudioc                  óf   — e Zd Zedd„«       Zedd„«       Zed	d„«       Zed
d„«       Zedd„«       Zy)r   c                ó,   — t        | j                  «      S ©z(Turn audio into text or text into audio.)r   Ú_client©Úselfs    úZ/root/workspace/ytshorts/venv/lib/python3.12/site-packages/openai/resources/audio/audio.pyÚtranscriptionszAudio.transcriptions$   s   € ô ˜dŸl™lÓ+Ð+ó    c                ó,   — t        | j                  «      S r   )r   r    r!   s    r#   ÚtranslationszAudio.translations)   s   € ô ˜DŸL™LÓ)Ð)r%   c                ó,   — t        | j                  «      S r   )r   r    r!   s    r#   ÚspeechzAudio.speech.   s   € ô �d—l‘lÓ#Ð#r%   c                ó   — t        | «      S ©a  
        This property can be used as a prefix for any HTTP method call to return
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/openai/openai-python#accessing-raw-response-data-eg-headers
        )ÚAudioWithRawResponser!   s    r#   Úwith_raw_responsezAudio.with_raw_response3   s   € ô $ DÓ)Ð)r%   c                ó   — t        | «      S ©zÌ
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/openai/openai-python#with_streaming_response
        )ÚAudioWithStreamingResponser!   s    r#   Úwith_streaming_responsezAudio.with_streaming_response=   s   € ô *¨$Ó/Ð/r%   N)Úreturnr   )r2   r   )r2   r   )r2   r,   )r2   r0   ©	Ú__name__Ú
__module__Ú__qualname__r   r$   r'   r)   r-   r1   © r%   r#   r   r   #   sd   „ Øò,ó ð,ð ò*ó ð*ð ò$ó ð$ð ò*ó ð*ð ò0ó ñ0r%   c                  óf   — e Zd Zedd„«       Zedd„«       Zed	d„«       Zed
d„«       Zedd„«       Zy)r   c                ó,   — t        | j                  «      S r   )r   r    r!   s    r#   r$   zAsyncAudio.transcriptionsH   s   € ô # 4§<¡<Ó0Ð0r%   c                ó,   — t        | j                  «      S r   )r   r    r!   s    r#   r'   zAsyncAudio.translationsM   s   € ô ! §¡Ó.Ð.r%   c                ó,   — t        | j                  «      S r   )r   r    r!   s    r#   r)   zAsyncAudio.speechR   s   € ô ˜4Ÿ<™<Ó(Ð(r%   c                ó   — t        | «      S r+   )ÚAsyncAudioWithRawResponser!   s    r#   r-   zAsyncAudio.with_raw_responseW   s   € ô )¨Ó.Ð.r%   c                ó   — t        | «      S r/   )ÚAsyncAudioWithStreamingResponser!   s    r#   r1   z"AsyncAudio.with_streaming_responsea   s   € ô /¨tÓ4Ð4r%   N)r2   r   )r2   r   )r2   r   )r2   r=   )r2   r?   r3   r7   r%   r#   r   r   G   sd   „ Øò1ó ð1ð ò/ó ð/ð ò)ó ð)ð ò/ó ð/ð ò5ó ñ5r%   c                  óJ   — e Zd Zdd„Zedd„«       Zedd„«       Zed	d„«       Zy)
r,   c                ó   — || _         y ©N©Ú_audio©r"   Úaudios     r#   Ú__init__zAudioWithRawResponse.__init__l   ó	   € Øˆ�r%   c                ó@   — t        | j                  j                  «      S r   )r   rD   r$   r!   s    r#   r$   z#AudioWithRawResponse.transcriptionso   s   € ô -¨T¯[©[×-GÑ-GÓHÐHr%   c                ó@   — t        | j                  j                  «      S r   )r   rD   r'   r!   s    r#   r'   z!AudioWithRawResponse.translationst   s   € ô +¨4¯;©;×+CÑ+CÓDÐDr%   c                ó@   — t        | j                  j                  «      S r   )r   rD   r)   r!   s    r#   r)   zAudioWithRawResponse.speechy   s   € ô % T§[¡[×%7Ñ%7Ó8Ð8r%   N©rF   r   r2   ÚNone)r2   r   )r2   r   )r2   r   ©r4   r5   r6   rG   r   r$   r'   r)   r7   r%   r#   r,   r,   k   sG   „ óð òIó ðIð òEó ðEð ò9ó ñ9r%   r,   c                  óJ   — e Zd Zdd„Zedd„«       Zedd„«       Zed	d„«       Zy)
r=   c                ó   — || _         y rB   rC   rE   s     r#   rG   z"AsyncAudioWithRawResponse.__init__€   rH   r%   c                ó@   — t        | j                  j                  «      S r   )r   rD   r$   r!   s    r#   r$   z(AsyncAudioWithRawResponse.transcriptionsƒ   s   € ô 2°$·+±+×2LÑ2LÓMÐMr%   c                ó@   — t        | j                  j                  «      S r   )r   rD   r'   r!   s    r#   r'   z&AsyncAudioWithRawResponse.translationsˆ   s   € ô 0°·±×0HÑ0HÓIÐIr%   c                ó@   — t        | j                  j                  «      S r   )r   rD   r)   r!   s    r#   r)   z AsyncAudioWithRawResponse.speech�   s   € ô *¨$¯+©+×*<Ñ*<Ó=Ð=r%   N©rF   r   r2   rM   )r2   r   )r2   r   )r2   r   rN   r7   r%   r#   r=   r=      sG   „ óð òNó ðNð òJó ðJð ò>ó ñ>r%   r=   c                  óJ   — e Zd Zdd„Zedd„«       Zedd„«       Zed	d„«       Zy)
r0   c                ó   — || _         y rB   rC   rE   s     r#   rG   z#AudioWithStreamingResponse.__init__”   rH   r%   c                ó@   — t        | j                  j                  «      S r   )r   rD   r$   r!   s    r#   r$   z)AudioWithStreamingResponse.transcriptions—   s   € ô 3°4·;±;×3MÑ3MÓNÐNr%   c                ó@   — t        | j                  j                  «      S r   )r   rD   r'   r!   s    r#   r'   z'AudioWithStreamingResponse.translationsœ   s   € ô 1°·±×1IÑ1IÓJÐJr%   c                ó@   — t        | j                  j                  «      S r   )r	   rD   r)   r!   s    r#   r)   z!AudioWithStreamingResponse.speech¡   s   € ô +¨4¯;©;×+=Ñ+=Ó>Ð>r%   NrL   )r2   r   )r2   r   )r2   r	   rN   r7   r%   r#   r0   r0   “   sG   „ óð òOó ðOð òKó ðKð ò?ó ñ?r%   r0   c                  óJ   — e Zd Zdd„Zedd„«       Zedd„«       Zed	d„«       Zy)
r?   c                ó   — || _         y rB   rC   rE   s     r#   rG   z(AsyncAudioWithStreamingResponse.__init__¨   rH   r%   c                ó@   — t        | j                  j                  «      S r   )r   rD   r$   r!   s    r#   r$   z.AsyncAudioWithStreamingResponse.transcriptions«   s   € ô 8¸¿¹×8RÑ8RÓSÐSr%   c                ó@   — t        | j                  j                  «      S r   )r   rD   r'   r!   s    r#   r'   z,AsyncAudioWithStreamingResponse.translations°   s   € ô 6°d·k±k×6NÑ6NÓOÐOr%   c                ó@   — t        | j                  j                  «      S r   )r
   rD   r)   r!   s    r#   r)   z&AsyncAudioWithStreamingResponse.speechµ   s   € ô 0°·±×0BÑ0BÓCÐCr%   NrT   )r2   r   )r2   r   )r2   r
   rN   r7   r%   r#   r?   r?   §   sI   „ óð òTó ðTð òPó ðPð òDó ñDr%   r?   N)#Ú
__future__r   r)   r   r   r   r   r	   r
   Ú_compatr   Ú	_resourcer   r   r'   r   r   r   r   r   r   r$   r   r   r   r   r   r   Ú__all__r   r   r,   r=   r0   r?   r7   r%   r#   ú<module>rc      s�   ðõ #÷÷ õ 'ß :÷÷ ÷÷ ð �LÐ
!€ô!0ˆOô !0ôH!5Ð!ô !5÷H9ñ 9÷(>ñ >÷(?ñ ?÷(Dò Dr%   