
    2iQ                    6   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"dS )    )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                      e Zd Zedd            Zedd            Zedd            Zedd	            Zedd            ZdS )r   returnr   c                *    t          | j                  S z(Turn audio into text or text into audio.)r   _clientselfs    c/root/.openclaw/workspace/.venv-openai/lib/python3.11/site-packages/openai/resources/audio/audio.pytranscriptionszAudio.transcriptions$   s     dl+++    r   c                *    t          | j                  S r    )r   r!   r"   s    r$   translationszAudio.translations)   s     DL)))r&   r   c                *    t          | j                  S r    )r   r!   r"   s    r$   speechzAudio.speech.   s     dl###r&   AudioWithRawResponsec                     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
        )r+   r"   s    r$   with_raw_responsezAudio.with_raw_response3   s     $D)))r&   AudioWithStreamingResponsec                     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
        )r/   r"   s    r$   with_streaming_responsezAudio.with_streaming_response=   s     *$///r&   N)r   r   )r   r   )r   r   )r   r+   )r   r/   	__name__
__module____qualname__r   r%   r(   r*   r.   r2    r&   r$   r   r   #   s        , , , _, * * * _* $ $ $ _$ * * * _* 0 0 0 _0 0 0r&   c                      e Zd Zedd            Zedd            Zedd            Zedd	            Zedd            ZdS )r   r   r   c                *    t          | j                  S r    )r   r!   r"   s    r$   r%   zAsyncAudio.transcriptionsH   s     #4<000r&   r   c                *    t          | j                  S r    )r   r!   r"   s    r$   r(   zAsyncAudio.translationsM   s     !...r&   r   c                *    t          | j                  S r    )r   r!   r"   s    r$   r*   zAsyncAudio.speechR   s     4<(((r&   AsyncAudioWithRawResponsec                     t          |           S r-   )r<   r"   s    r$   r.   zAsyncAudio.with_raw_responseW   s     )...r&   AsyncAudioWithStreamingResponsec                     t          |           S r1   )r>   r"   s    r$   r2   z"AsyncAudio.with_streaming_responsea   s     /t444r&   N)r   r   )r   r   )r   r   )r   r<   )r   r>   r3   r7   r&   r$   r   r   G   s        1 1 1 _1 / / / _/ ) ) ) _) / / / _/ 5 5 5 _5 5 5r&   c                  ^    e Zd ZddZedd            Zedd	            Zedd            ZdS )r+   audior   r   Nonec                    || _         d S N_audior#   rA   s     r$   __init__zAudioWithRawResponse.__init__l       r&   r   c                4    t          | j        j                  S r    )r   rF   r%   r"   s    r$   r%   z#AudioWithRawResponse.transcriptionso   s     -T[-GHHHr&   r   c                4    t          | j        j                  S r    )r   rF   r(   r"   s    r$   r(   z!AudioWithRawResponse.translationst   s     +4;+CDDDr&   r   c                4    t          | j        j                  S r    )r   rF   r*   r"   s    r$   r*   zAudioWithRawResponse.speechy   s     %T[%7888r&   NrA   r   r   rB   )r   r   )r   r   )r   r   r4   r5   r6   rH   r   r%   r(   r*   r7   r&   r$   r+   r+   k   s            I I I _I E E E _E 9 9 9 _9 9 9r&   r+   c                  ^    e Zd ZddZedd            Zedd	            Zedd            ZdS )r<   rA   r   r   rB   c                    || _         d S rD   rE   rG   s     r$   rH   z"AsyncAudioWithRawResponse.__init__   rI   r&   r   c                4    t          | j        j                  S r    )r   rF   r%   r"   s    r$   r%   z(AsyncAudioWithRawResponse.transcriptions   s     2$+2LMMMr&   r   c                4    t          | j        j                  S r    )r   rF   r(   r"   s    r$   r(   z&AsyncAudioWithRawResponse.translations   s     00HIIIr&   r   c                4    t          | j        j                  S r    )r   rF   r*   r"   s    r$   r*   z AsyncAudioWithRawResponse.speech   s     *$+*<===r&   NrA   r   r   rB   )r   r   )r   r   )r   r   rN   r7   r&   r$   r<   r<      s            N N N _N J J J _J > > > _> > >r&   r<   c                  ^    e Zd ZddZedd            Zedd	            Zedd            ZdS )r/   rA   r   r   rB   c                    || _         d S rD   rE   rG   s     r$   rH   z#AudioWithStreamingResponse.__init__   rI   r&   r   c                4    t          | j        j                  S r    )r   rF   r%   r"   s    r$   r%   z)AudioWithStreamingResponse.transcriptions   s     34;3MNNNr&   r   c                4    t          | j        j                  S r    )r   rF   r(   r"   s    r$   r(   z'AudioWithStreamingResponse.translations   s     11IJJJr&   r	   c                4    t          | j        j                  S r    )r	   rF   r*   r"   s    r$   r*   z!AudioWithStreamingResponse.speech   s     +4;+=>>>r&   NrM   )r   r   )r   r   )r   r	   rN   r7   r&   r$   r/   r/      s            O O O _O K K K _K ? ? ? _? ? ?r&   r/   c                  ^    e Zd ZddZedd            Zedd	            Zedd            ZdS )r>   rA   r   r   rB   c                    || _         d S rD   rE   rG   s     r$   rH   z(AsyncAudioWithStreamingResponse.__init__   rI   r&   r   c                4    t          | j        j                  S r    )r   rF   r%   r"   s    r$   r%   z.AsyncAudioWithStreamingResponse.transcriptions   s     88RSSSr&   r   c                4    t          | j        j                  S r    )r   rF   r(   r"   s    r$   r(   z,AsyncAudioWithStreamingResponse.translations   s     6dk6NOOOr&   r
   c                4    t          | j        j                  S r    )r
   rF   r*   r"   s    r$   r*   z&AsyncAudioWithStreamingResponse.speech   s     00BCCCr&   NrT   )r   r   )r   r   )r   r
   rN   r7   r&   r$   r>   r>      s            T T T _T P P P _P D D D _D 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<   r/   r>   r7   r&   r$   <module>rc      sL   # " " " " "                ' & & & & & : : : : : : : :                               L
!!0 !0 !0 !0 !0O !0 !0 !0H!5 !5 !5 !5 !5! !5 !5 !5H9 9 9 9 9 9 9 9(> > > > > > > >(? ? ? ? ? ? ? ?(D D D D D D D D D Dr&   