HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/openai/resources/audio/__pycache__/audio.cpython-310.pyc
o

���gs�@s�ddlmZddlmZmZmZmZmZmZddl	m
Z
ddlmZm
Z
ddlmZmZmZmZmZmZddlmZmZmZmZmZmZd	d
gZGdd	�d	e�ZGdd
�d
e
�ZGd
d�d�ZGdd�d�Z Gdd�d�Z!Gdd�d�Z"dS)�)�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@�ReZdZeddd��Zeddd��Zedd	d
��Zeddd
��Zeddd��ZdS)r�returnrcC�
t|j�S�N)r�_client��self�r#�G/usr/local/lib/python3.10/dist-packages/openai/resources/audio/audio.py�transcriptions$�
zAudio.transcriptionsrcCrr)rr r!r#r#r$�translations(r&zAudio.translationsrcCrr)rr r!r#r#r$�speech,r&zAudio.speech�AudioWithRawResponsecC�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!r#r#r$�with_raw_response0�zAudio.with_raw_response�AudioWithStreamingResponsecCr*�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!r#r#r$�with_streaming_response:�zAudio.with_streaming_responseN)rr)rr)rr)rr))rr.�	�__name__�
__module__�__qualname__rr%r'r(r,r0r#r#r#r$r#�	c@r)rrrcCrr)rr r!r#r#r$r%Er&zAsyncAudio.transcriptionsrcCrr)rr r!r#r#r$r'Ir&zAsyncAudio.translationsrcCrr)rr r!r#r#r$r(Mr&zAsyncAudio.speech�AsyncAudioWithRawResponsecCr*r+)r7r!r#r#r$r,Qr-zAsyncAudio.with_raw_response�AsyncAudioWithStreamingResponsecCr*r/)r8r!r#r#r$r0[r1z"AsyncAudio.with_streaming_responseN)rr)rr)rr)rr7)rr8r2r#r#r#r$rDr6c@�@eZdZddd�Zeddd	��Zeddd��Zeddd��ZdS)r)�audiorr�NonecC�
||_dSr��_audio�r"r:r#r#r$�__init__f�
zAudioWithRawResponse.__init__rcC�t|jj�Sr)rr>r%r!r#r#r$r%i�z#AudioWithRawResponse.transcriptionsrcCrBr)rr>r'r!r#r#r$r'mrCz!AudioWithRawResponse.translationsrcCrBr)rr>r(r!r#r#r$r(qrCzAudioWithRawResponse.speechN�r:rrr;)rr)rr)rr�r3r4r5r@rr%r'r(r#r#r#r$r)e�
r)c@r9)r7r:rrr;cCr<rr=r?r#r#r$r@wrAz"AsyncAudioWithRawResponse.__init__rcCrBr)rr>r%r!r#r#r$r%zrCz(AsyncAudioWithRawResponse.transcriptionsrcCrBr)rr>r'r!r#r#r$r'~rCz&AsyncAudioWithRawResponse.translationsrcCrBr)rr>r(r!r#r#r$r(�rCz AsyncAudioWithRawResponse.speechN�r:rrr;)rr)rr)rrrEr#r#r#r$r7vrFr7c@r9)r.r:rrr;cCr<rr=r?r#r#r$r@�rAz#AudioWithStreamingResponse.__init__rcCrBr)rr>r%r!r#r#r$r%�rCz)AudioWithStreamingResponse.transcriptionsrcCrBr)rr>r'r!r#r#r$r'�rCz'AudioWithStreamingResponse.translationsrcCrBr)rr>r(r!r#r#r$r(�rCz!AudioWithStreamingResponse.speechNrD)rr)rr)rrrEr#r#r#r$r.�rFr.c@r9)r8r:rrr;cCr<rr=r?r#r#r$r@�rAz(AsyncAudioWithStreamingResponse.__init__rcCrBr)rr>r%r!r#r#r$r%�rCz.AsyncAudioWithStreamingResponse.transcriptionsrcCrBr)rr>r'r!r#r#r$r'�rCz,AsyncAudioWithStreamingResponse.translationsr	cCrBr)r	r>r(r!r#r#r$r(�rCz&AsyncAudioWithStreamingResponse.speechNrG)rr)rr)rr	rEr#r#r#r$r8�rFr8N)#�
__future__rr(rrrrrr	�_compatr�	_resourcerr
r'rrrrrrr%rrrrrr�__all__rrr)r7r.r8r#r#r#r$�<module>s   	!!