U
    ·ÜŸjs  ã                   @  sì   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	„ d	eƒZG dd
„ d
eƒZG dd„ dƒZG dd„ dƒZ G dd„ dƒZ!G d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                   @  sf   e Zd Zeddœdd„ƒZeddœdd„ƒZeddœd	d
„ƒZeddœdd„ƒZeddœdd„ƒZdS )r   r   ©Úreturnc                 C  s
   t | jƒS ©N)r   Ú_client©Úself© r"   ú@/tmp/pip-unpacked-wheel-2qj3ofc_/openai/resources/audio/audio.pyÚtranscriptions$   s    zAudio.transcriptionsr   c                 C  s
   t | jƒS r   )r   r   r    r"   r"   r#   Útranslations(   s    zAudio.translationsr   c                 C  s
   t | jƒS r   )r   r   r    r"   r"   r#   Úspeech,   s    zAudio.speechÚAudioWithRawResponsec                 C  s   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   s    zAudio.with_raw_responseÚAudioWithStreamingResponsec                 C  s   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    r"   r"   r#   Úwith_streaming_response:   s    zAudio.with_streaming_responseN©	Ú__name__Ú
__module__Ú__qualname__r   r$   r%   r&   r)   r,   r"   r"   r"   r#   r   #   s   	c                   @  sf   e Zd Zeddœdd„ƒZeddœdd„ƒZeddœd	d
„ƒZeddœdd„ƒZeddœdd„ƒZdS )r   r   r   c                 C  s
   t | jƒS r   )r   r   r    r"   r"   r#   r$   E   s    zAsyncAudio.transcriptionsr   c                 C  s
   t | jƒS r   )r   r   r    r"   r"   r#   r%   I   s    zAsyncAudio.translationsr   c                 C  s
   t | jƒS r   )r   r   r    r"   r"   r#   r&   M   s    zAsyncAudio.speechÚAsyncAudioWithRawResponsec                 C  s   t | ƒS r(   )r1   r    r"   r"   r#   r)   Q   s    zAsyncAudio.with_raw_responseÚAsyncAudioWithStreamingResponsec                 C  s   t | ƒS r+   )r2   r    r"   r"   r#   r,   [   s    z"AsyncAudio.with_streaming_responseNr-   r"   r"   r"   r#   r   D   s   	c                   @  sR   e Zd Zdddœdd„Zeddœdd	„ƒZed
dœdd„ƒZeddœdd„ƒZdS )r'   r   ÚNone©Úaudior   c                 C  s
   || _ d S r   ©Ú_audio©r!   r5   r"   r"   r#   Ú__init__f   s    zAudioWithRawResponse.__init__r   r   c                 C  s   t | jjƒS r   )r   r7   r$   r    r"   r"   r#   r$   i   s    z#AudioWithRawResponse.transcriptionsr   c                 C  s   t | jjƒS r   )r   r7   r%   r    r"   r"   r#   r%   m   s    z!AudioWithRawResponse.translationsr   c                 C  s   t | jjƒS r   )r   r7   r&   r    r"   r"   r#   r&   q   s    zAudioWithRawResponse.speechN©r.   r/   r0   r9   r   r$   r%   r&   r"   r"   r"   r#   r'   e   s   r'   c                   @  sR   e Zd Zdddœdd„Zeddœdd	„ƒZed
dœdd„ƒZeddœdd„ƒZdS )r1   r   r3   r4   c                 C  s
   || _ d S r   r6   r8   r"   r"   r#   r9   w   s    z"AsyncAudioWithRawResponse.__init__r   r   c                 C  s   t | jjƒS r   )r   r7   r$   r    r"   r"   r#   r$   z   s    z(AsyncAudioWithRawResponse.transcriptionsr   c                 C  s   t | jjƒS r   )r   r7   r%   r    r"   r"   r#   r%   ~   s    z&AsyncAudioWithRawResponse.translationsr   c                 C  s   t | jjƒS r   )r   r7   r&   r    r"   r"   r#   r&   ‚   s    z AsyncAudioWithRawResponse.speechNr:   r"   r"   r"   r#   r1   v   s   r1   c                   @  sR   e Zd Zdddœdd„Zeddœdd	„ƒZed
dœdd„ƒZeddœdd„ƒZdS )r*   r   r3   r4   c                 C  s
   || _ d S r   r6   r8   r"   r"   r#   r9   ˆ   s    z#AudioWithStreamingResponse.__init__r   r   c                 C  s   t | jjƒS r   )r   r7   r$   r    r"   r"   r#   r$   ‹   s    z)AudioWithStreamingResponse.transcriptionsr   c                 C  s   t | jjƒS r   )r   r7   r%   r    r"   r"   r#   r%   �   s    z'AudioWithStreamingResponse.translationsr   c                 C  s   t | jjƒS r   )r   r7   r&   r    r"   r"   r#   r&   “   s    z!AudioWithStreamingResponse.speechNr:   r"   r"   r"   r#   r*   ‡   s   r*   c                   @  sR   e Zd Zdddœdd„Zeddœdd	„ƒZed
dœdd„ƒZeddœdd„ƒZdS )r2   r   r3   r4   c                 C  s
   || _ d S r   r6   r8   r"   r"   r#   r9   ™   s    z(AsyncAudioWithStreamingResponse.__init__r   r   c                 C  s   t | jjƒS r   )r   r7   r$   r    r"   r"   r#   r$   œ   s    z.AsyncAudioWithStreamingResponse.transcriptionsr   c                 C  s   t | jjƒS r   )r   r7   r%   r    r"   r"   r#   r%       s    z,AsyncAudioWithStreamingResponse.translationsr	   c                 C  s   t | jjƒS r   )r	   r7   r&   r    r"   r"   r#   r&   ¤   s    z&AsyncAudioWithStreamingResponse.speechNr:   r"   r"   r"   r#   r2   ˜   s   r2   N)#Ú
__future__r   r&   r   r   r   r   r   r	   Ú_compatr   Z	_resourcer   r   r%   r   r   r   r   r   r   r$   r   r   r   r   r   r   Ú__all__r   r   r'   r1   r*   r2   r"   r"   r"   r#   Ú<module>   s      	!!