
    U ths                    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 N)r   _clientselfs    p/var/www/html/mycamper/aliexpress-site/backend/venv/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_response0   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.transcriptionsE   s    "4<000r&   r   c                *    t          | j                  S r    )r   r!   r"   s    r$   r(   zAsyncAudio.translationsI   s     ...r&   r   c                *    t          | j                  S r    )r   r!   r"   s    r$   r*   zAsyncAudio.speechM   s    4<(((r&   AsyncAudioWithRawResponsec                     t          |           S r-   )r<   r"   s    r$   r.   zAsyncAudio.with_raw_responseQ   s     )...r&   AsyncAudioWithStreamingResponsec                     t          |           S r1   )r>   r"   s    r$   r2   z"AsyncAudio.with_streaming_response[   s     /t444r&   N)r   r   )r   r   )r   r   )r   r<   )r   r>   r3   r7   r&   r$   r   r   D   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 r    _audior#   rA   s     r$   __init__zAudioWithRawResponse.__init__f       r&   r   c                4    t          | j        j                  S r    )r   rE   r%   r"   s    r$   r%   z#AudioWithRawResponse.transcriptionsi   s    ,T[-GHHHr&   r   c                4    t          | j        j                  S r    )r   rE   r(   r"   s    r$   r(   z!AudioWithRawResponse.translationsm   s    *4;+CDDDr&   r   c                4    t          | j        j                  S r    )r   rE   r*   r"   s    r$   r*   zAudioWithRawResponse.speechq   s    $T[%7888r&   NrA   r   r   rB   )r   r   )r   r   )r   r   r4   r5   r6   rG   r   r%   r(   r*   r7   r&   r$   r+   r+   e   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 r    rD   rF   s     r$   rG   z"AsyncAudioWithRawResponse.__init__w   rH   r&   r   c                4    t          | j        j                  S r    )r   rE   r%   r"   s    r$   r%   z(AsyncAudioWithRawResponse.transcriptionsz   s    1$+2LMMMr&   r   c                4    t          | j        j                  S r    )r   rE   r(   r"   s    r$   r(   z&AsyncAudioWithRawResponse.translations~   s    /0HIIIr&   r   c                4    t          | j        j                  S r    )r   rE   r*   r"   s    r$   r*   z AsyncAudioWithRawResponse.speech   s    )$+*<===r&   NrA   r   r   rB   )r   r   )r   r   )r   r   rM   r7   r&   r$   r<   r<   v   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 r    rD   rF   s     r$   rG   z#AudioWithStreamingResponse.__init__   rH   r&   r   c                4    t          | j        j                  S r    )r   rE   r%   r"   s    r$   r%   z)AudioWithStreamingResponse.transcriptions   s    24;3MNNNr&   r   c                4    t          | j        j                  S r    )r   rE   r(   r"   s    r$   r(   z'AudioWithStreamingResponse.translations   s    01IJJJr&   r	   c                4    t          | j        j                  S r    )r	   rE   r*   r"   s    r$   r*   z!AudioWithStreamingResponse.speech   s    *4;+=>>>r&   NrL   )r   r   )r   r   )r   r	   rM   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 r    rD   rF   s     r$   rG   z(AsyncAudioWithStreamingResponse.__init__   rH   r&   r   c                4    t          | j        j                  S r    )r   rE   r%   r"   s    r$   r%   z.AsyncAudioWithStreamingResponse.transcriptions   s    78RSSSr&   r   c                4    t          | j        j                  S r    )r   rE   r(   r"   s    r$   r(   z,AsyncAudioWithStreamingResponse.translations   s    5dk6NOOOr&   r
   c                4    t          | j        j                  S r    )r
   rE   r*   r"   s    r$   r*   z&AsyncAudioWithStreamingResponse.speech   s    /0BCCCr&   NrS   )r   r   )r   r   )r   r
   rM   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>rb      sL   # " " " " "                ' & & & & & : : : : : : : :                               L
!0 0 0 0 0O 0 0 0B5 5 5 5 5! 5 5 5B9 9 9 9 9 9 9 9"> > > > > > > >"? ? ? ? ? ? ? ?"D D D D D D D D D Dr&   