
    g{                       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 N)r   _clientselfs    Q/var/www/openai/venv/lib/python3.12/site-packages/openai/resources/audio/audio.pytranscriptionszAudio.transcriptions$   s    dll++    c                ,    t        | j                        S r   )r   r    r!   s    r#   translationszAudio.translations(   s    DLL))r%   c                ,    t        | j                        S r   )r   r    r!   s    r#   speechzAudio.speech,   s    dll##r%   c                    t        |       S a  
        This property can be used as a prefix for any HTTP method call to return the
        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_response0   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.transcriptionsE   s    "4<<00r%   c                ,    t        | j                        S r   )r   r    r!   s    r#   r'   zAsyncAudio.translationsI   s     ..r%   c                ,    t        | j                        S r   )r   r    r!   s    r#   r)   zAsyncAudio.speechM   s    4<<((r%   c                    t        |       S r+   )AsyncAudioWithRawResponser!   s    r#   r-   zAsyncAudio.with_raw_responseQ   s     )..r%   c                    t        |       S r/   )AsyncAudioWithStreamingResponser!   s    r#   r1   z"AsyncAudio.with_streaming_response[   s     /t44r%   N)r2   r   )r2   r   )r2   r   )r2   r=   )r2   r?   r3   r7   r%   r#   r   r   D   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 r   _audior"   audios     r#   __init__zAudioWithRawResponse.__init__f   	    r%   c                @    t        | j                  j                        S r   )r   rC   r$   r!   s    r#   r$   z#AudioWithRawResponse.transcriptionsi   s    ,T[[-G-GHHr%   c                @    t        | j                  j                        S r   )r   rC   r'   r!   s    r#   r'   z!AudioWithRawResponse.translationsm   s    *4;;+C+CDDr%   c                @    t        | j                  j                        S r   )r   rC   r)   r!   s    r#   r)   zAudioWithRawResponse.speechq   s    $T[[%7%788r%   NrE   r   r2   None)r2   r   )r2   r   )r2   r   r4   r5   r6   rF   r   r$   r'   r)   r7   r%   r#   r,   r,   e   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 r   rB   rD   s     r#   rF   z"AsyncAudioWithRawResponse.__init__w   rG   r%   c                @    t        | j                  j                        S r   )r   rC   r$   r!   s    r#   r$   z(AsyncAudioWithRawResponse.transcriptionsz   s    1$++2L2LMMr%   c                @    t        | j                  j                        S r   )r   rC   r'   r!   s    r#   r'   z&AsyncAudioWithRawResponse.translations~   s    /0H0HIIr%   c                @    t        | j                  j                        S r   )r   rC   r)   r!   s    r#   r)   z AsyncAudioWithRawResponse.speech   s    )$++*<*<==r%   NrE   r   r2   rL   )r2   r   )r2   r   )r2   r   rM   r7   r%   r#   r=   r=   v   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 r   rB   rD   s     r#   rF   z#AudioWithStreamingResponse.__init__   rG   r%   c                @    t        | j                  j                        S r   )r   rC   r$   r!   s    r#   r$   z)AudioWithStreamingResponse.transcriptions   s    24;;3M3MNNr%   c                @    t        | j                  j                        S r   )r   rC   r'   r!   s    r#   r'   z'AudioWithStreamingResponse.translations   s    01I1IJJr%   c                @    t        | j                  j                        S r   )r	   rC   r)   r!   s    r#   r)   z!AudioWithStreamingResponse.speech   s    *4;;+=+=>>r%   NrK   )r2   r   )r2   r   )r2   r	   rM   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 r   rB   rD   s     r#   rF   z(AsyncAudioWithStreamingResponse.__init__   rG   r%   c                @    t        | j                  j                        S r   )r   rC   r$   r!   s    r#   r$   z.AsyncAudioWithStreamingResponse.transcriptions   s    78R8RSSr%   c                @    t        | j                  j                        S r   )r   rC   r'   r!   s    r#   r'   z,AsyncAudioWithStreamingResponse.translations   s    5dkk6N6NOOr%   c                @    t        | j                  j                        S r   )r
   rC   r)   r!   s    r#   r)   z&AsyncAudioWithStreamingResponse.speech   s    /0B0BCCr%   NrS   )r2   r   )r2   r   )r2   r
   rM   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>rb      s    #  ' :   L
!0O 0B5! 5B9 9"> >"? ?"D Dr%   