
    qiQ                       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    N/opt/pipecat/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 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$++2L2LMMr%   c                @    t        | j                  j                        S r   )r   rD   r'   r!   s    r#   r'   z&AsyncAudioWithRawResponse.translations   s     00H0H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     34;;3M3MNNr%   c                @    t        | j                  j                        S r   )r   rD   r'   r!   s    r#   r'   z'AudioWithStreamingResponse.translations   s     11I1I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8R8RSSr%   c                @    t        | j                  j                        S r   )r   rD   r'   r!   s    r#   r'   z,AsyncAudioWithStreamingResponse.translations   s     6dkk6N6NOOr%   c                @    t        | j                  j                        S r   )r
   rD   r)   r!   s    r#   r)   z&AsyncAudioWithStreamingResponse.speech   s     00B0B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
!!0O !0H!5! !5H9 9(> >(? ?(D Dr%   