o
    ØRWjQ  ã                   @  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                   @  óR   e Zd Zeddd„ƒZeddd„ƒZedd	d
„ƒZeddd„ƒZeddd„ƒZdS )r   Úreturnr   c                 C  ó
   t | jƒS ©z(Turn audio into text or text into audio.)r   Ú_client©Úself© r#   úk/home/esfera/Documents/content_generation/venv/lib/python3.10/site-packages/openai/resources/audio/audio.pyÚtranscriptions$   ó   
zAudio.transcriptionsr   c                 C  r   r   )r   r    r!   r#   r#   r$   Útranslations)   r&   zAudio.translationsr   c                 C  r   r   )r   r    r!   r#   r#   r$   Úspeech.   r&   zAudio.speechÚAudioWithRawResponsec                 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
        )r)   r!   r#   r#   r$   Úwith_raw_response3   ó   zAudio.with_raw_responseÚAudioWithStreamingResponsec                 C  r*   ©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=   ó   zAudio.with_streaming_responseN)r   r   )r   r   )r   r   )r   r)   )r   r.   ©	Ú__name__Ú
__module__Ú__qualname__r   r%   r'   r(   r,   r0   r#   r#   r#   r$   r   #   ó    	c                   @  r   )r   r   r   c                 C  r   r   )r   r    r!   r#   r#   r$   r%   H   r&   zAsyncAudio.transcriptionsr   c                 C  r   r   )r   r    r!   r#   r#   r$   r'   M   r&   zAsyncAudio.translationsr   c                 C  r   r   )r   r    r!   r#   r#   r$   r(   R   r&   zAsyncAudio.speechÚAsyncAudioWithRawResponsec                 C  r*   r+   )r7   r!   r#   r#   r$   r,   W   r-   zAsyncAudio.with_raw_responseÚAsyncAudioWithStreamingResponsec                 C  r*   r/   )r8   r!   r#   r#   r$   r0   a   r1   z"AsyncAudio.with_streaming_responseN)r   r   )r   r   )r   r   )r   r7   )r   r8   r2   r#   r#   r#   r$   r   G   r6   c                   @  ó@   e Zd Zddd„Zeddd	„ƒZeddd„ƒZeddd„ƒZdS )r)   Úaudior   r   ÚNonec                 C  ó
   || _ d S ©N©Ú_audio©r"   r:   r#   r#   r$   Ú__init__l   ó   
zAudioWithRawResponse.__init__r   c                 C  ó   t | jjƒS r   )r   r?   r%   r!   r#   r#   r$   r%   o   ó   z#AudioWithRawResponse.transcriptionsr   c                 C  rC   r   )r   r?   r'   r!   r#   r#   r$   r'   t   rD   z!AudioWithRawResponse.translationsr   c                 C  rC   r   )r   r?   r(   r!   r#   r#   r$   r(   y   rD   zAudioWithRawResponse.speechN©r:   r   r   r;   )r   r   )r   r   )r   r   ©r3   r4   r5   rA   r   r%   r'   r(   r#   r#   r#   r$   r)   k   ó    
r)   c                   @  r9   )r7   r:   r   r   r;   c                 C  r<   r=   r>   r@   r#   r#   r$   rA   €   rB   z"AsyncAudioWithRawResponse.__init__r   c                 C  rC   r   )r   r?   r%   r!   r#   r#   r$   r%   ƒ   rD   z(AsyncAudioWithRawResponse.transcriptionsr   c                 C  rC   r   )r   r?   r'   r!   r#   r#   r$   r'   ˆ   rD   z&AsyncAudioWithRawResponse.translationsr   c                 C  rC   r   )r   r?   r(   r!   r#   r#   r$   r(   �   rD   z AsyncAudioWithRawResponse.speechN©r:   r   r   r;   )r   r   )r   r   )r   r   rF   r#   r#   r#   r$   r7      rG   r7   c                   @  r9   )r.   r:   r   r   r;   c                 C  r<   r=   r>   r@   r#   r#   r$   rA   ”   rB   z#AudioWithStreamingResponse.__init__r   c                 C  rC   r   )r   r?   r%   r!   r#   r#   r$   r%   —   rD   z)AudioWithStreamingResponse.transcriptionsr   c                 C  rC   r   )r   r?   r'   r!   r#   r#   r$   r'   œ   rD   z'AudioWithStreamingResponse.translationsr   c                 C  rC   r   )r   r?   r(   r!   r#   r#   r$   r(   ¡   rD   z!AudioWithStreamingResponse.speechNrE   )r   r   )r   r   )r   r   rF   r#   r#   r#   r$   r.   “   rG   r.   c                   @  r9   )r8   r:   r   r   r;   c                 C  r<   r=   r>   r@   r#   r#   r$   rA   ¨   rB   z(AsyncAudioWithStreamingResponse.__init__r   c                 C  rC   r   )r   r?   r%   r!   r#   r#   r$   r%   «   rD   z.AsyncAudioWithStreamingResponse.transcriptionsr   c                 C  rC   r   )r   r?   r'   r!   r#   r#   r$   r'   °   rD   z,AsyncAudioWithStreamingResponse.translationsr	   c                 C  rC   r   )r	   r?   r(   r!   r#   r#   r$   r(   µ   rD   z&AsyncAudioWithStreamingResponse.speechNrH   )r   r   )r   r   )r   r	   rF   r#   r#   r#   r$   r8   §   rG   r8   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)   r7   r.   r8   r#   r#   r#   r$   Ú<module>   s      	$$