o
    ¨Ýjì#  ã                   @  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
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
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ƒZ0dS )é    )Úannotationsé   )ÚSpeechÚAsyncSpeechÚSpeechWithRawResponseÚAsyncSpeechWithRawResponseÚSpeechWithStreamingResponseÚ AsyncSpeechWithStreamingResponse)ÚVoicesÚAsyncVoicesÚVoicesWithRawResponseÚAsyncVoicesWithRawResponseÚVoicesWithStreamingResponseÚ AsyncVoicesWithStreamingResponseé   )Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)ÚTranslationsÚAsyncTranslationsÚTranslationsWithRawResponseÚ AsyncTranslationsWithRawResponseÚ!TranslationsWithStreamingResponseÚ&AsyncTranslationsWithStreamingResponse)ÚTranscriptionsÚAsyncTranscriptionsÚTranscriptionsWithRawResponseÚ"AsyncTranscriptionsWithRawResponseÚ#TranscriptionsWithStreamingResponseÚ(AsyncTranscriptionsWithStreamingResponse)ÚVoiceConsentsÚAsyncVoiceConsentsÚVoiceConsentsWithRawResponseÚ!AsyncVoiceConsentsWithRawResponseÚ"VoiceConsentsWithStreamingResponseÚ'AsyncVoiceConsentsWithStreamingResponseÚAudioÚ
AsyncAudioc                   @  ón   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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/   úW/var/www/html/chatgpt/venv/lib/python3.10/site-packages/openai/resources/audio/audio.pyÚtranscriptions4   ó   
zAudio.transcriptionsr   c                 C  r*   r+   )r   r,   r-   r/   r/   r0   Útranslations9   r2   zAudio.translationsr   c                 C  r*   r+   )r   r,   r-   r/   r/   r0   Úspeech>   r2   zAudio.speechr
   c                 C  r*   r+   )r
   r,   r-   r/   r/   r0   ÚvoicesC   r2   zAudio.voicesr    c                 C  r*   r+   )r    r,   r-   r/   r/   r0   Úvoice_consentsH   r2   zAudio.voice_consentsÚ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
        )r7   r-   r/   r/   r0   Úwith_raw_responseM   ó   zAudio.with_raw_responseÚAudioWithStreamingResponsec                 C  r8   ©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/   r0   Úwith_streaming_responseW   ó   zAudio.with_streaming_responseN)r)   r   )r)   r   )r)   r   )r)   r
   )r)   r    )r)   r7   )r)   r<   ©Ú__name__Ú
__module__Ú__qualname__r   r1   r3   r4   r5   r6   r:   r>   r/   r/   r/   r0   r&   3   ó    	c                   @  r(   )r'   r)   r   c                 C  r*   r+   )r   r,   r-   r/   r/   r0   r1   b   r2   zAsyncAudio.transcriptionsr   c                 C  r*   r+   )r   r,   r-   r/   r/   r0   r3   g   r2   zAsyncAudio.translationsr   c                 C  r*   r+   )r   r,   r-   r/   r/   r0   r4   l   r2   zAsyncAudio.speechr   c                 C  r*   r+   )r   r,   r-   r/   r/   r0   r5   q   r2   zAsyncAudio.voicesr!   c                 C  r*   r+   )r!   r,   r-   r/   r/   r0   r6   v   r2   zAsyncAudio.voice_consentsÚAsyncAudioWithRawResponsec                 C  r8   r9   )rE   r-   r/   r/   r0   r:   {   r;   zAsyncAudio.with_raw_responseÚAsyncAudioWithStreamingResponsec                 C  r8   r=   )rF   r-   r/   r/   r0   r>   …   r?   z"AsyncAudio.with_streaming_responseN)r)   r   )r)   r   )r)   r   )r)   r   )r)   r!   )r)   rE   )r)   rF   r@   r/   r/   r/   r0   r'   a   rD   c                   @  ó\   e Zd Zdd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 )r7   Úaudior&   r)   ÚNonec                 C  ó
   || _ d S ©N©Ú_audio©r.   rH   r/   r/   r0   Ú__init__�   ó   
zAudioWithRawResponse.__init__r   c                 C  ó   t | jjƒS r+   )r   rM   r1   r-   r/   r/   r0   r1   “   ó   z#AudioWithRawResponse.transcriptionsr   c                 C  rQ   r+   )r   rM   r3   r-   r/   r/   r0   r3   ˜   rR   z!AudioWithRawResponse.translationsr   c                 C  rQ   r+   )r   rM   r4   r-   r/   r/   r0   r4   �   rR   zAudioWithRawResponse.speechr   c                 C  rQ   r+   )r   rM   r5   r-   r/   r/   r0   r5   ¢   rR   zAudioWithRawResponse.voicesr"   c                 C  rQ   r+   )r"   rM   r6   r-   r/   r/   r0   r6   §   rR   z#AudioWithRawResponse.voice_consentsN©rH   r&   r)   rI   )r)   r   )r)   r   )r)   r   )r)   r   )r)   r"   ©
rA   rB   rC   rO   r   r1   r3   r4   r5   r6   r/   r/   r/   r0   r7   �   ó    
r7   c                   @  rG   )rE   rH   r'   r)   rI   c                 C  rJ   rK   rL   rN   r/   r/   r0   rO   ®   rP   z"AsyncAudioWithRawResponse.__init__r   c                 C  rQ   r+   )r   rM   r1   r-   r/   r/   r0   r1   ±   rR   z(AsyncAudioWithRawResponse.transcriptionsr   c                 C  rQ   r+   )r   rM   r3   r-   r/   r/   r0   r3   ¶   rR   z&AsyncAudioWithRawResponse.translationsr   c                 C  rQ   r+   )r   rM   r4   r-   r/   r/   r0   r4   »   rR   z AsyncAudioWithRawResponse.speechr   c                 C  rQ   r+   )r   rM   r5   r-   r/   r/   r0   r5   À   rR   z AsyncAudioWithRawResponse.voicesr#   c                 C  rQ   r+   )r#   rM   r6   r-   r/   r/   r0   r6   Å   rR   z(AsyncAudioWithRawResponse.voice_consentsN©rH   r'   r)   rI   )r)   r   )r)   r   )r)   r   )r)   r   )r)   r#   rT   r/   r/   r/   r0   rE   ­   rU   rE   c                   @  rG   )r<   rH   r&   r)   rI   c                 C  rJ   rK   rL   rN   r/   r/   r0   rO   Ì   rP   z#AudioWithStreamingResponse.__init__r   c                 C  rQ   r+   )r   rM   r1   r-   r/   r/   r0   r1   Ï   rR   z)AudioWithStreamingResponse.transcriptionsr   c                 C  rQ   r+   )r   rM   r3   r-   r/   r/   r0   r3   Ô   rR   z'AudioWithStreamingResponse.translationsr   c                 C  rQ   r+   )r   rM   r4   r-   r/   r/   r0   r4   Ù   rR   z!AudioWithStreamingResponse.speechr   c                 C  rQ   r+   )r   rM   r5   r-   r/   r/   r0   r5   Þ   rR   z!AudioWithStreamingResponse.voicesr$   c                 C  rQ   r+   )r$   rM   r6   r-   r/   r/   r0   r6   ã   rR   z)AudioWithStreamingResponse.voice_consentsNrS   )r)   r   )r)   r   )r)   r   )r)   r   )r)   r$   rT   r/   r/   r/   r0   r<   Ë   rU   r<   c                   @  rG   )rF   rH   r'   r)   rI   c                 C  rJ   rK   rL   rN   r/   r/   r0   rO   ê   rP   z(AsyncAudioWithStreamingResponse.__init__r   c                 C  rQ   r+   )r   rM   r1   r-   r/   r/   r0   r1   í   rR   z.AsyncAudioWithStreamingResponse.transcriptionsr   c                 C  rQ   r+   )r   rM   r3   r-   r/   r/   r0   r3   ò   rR   z,AsyncAudioWithStreamingResponse.translationsr	   c                 C  rQ   r+   )r	   rM   r4   r-   r/   r/   r0   r4   ÷   rR   z&AsyncAudioWithStreamingResponse.speechr   c                 C  rQ   r+   )r   rM   r5   r-   r/   r/   r0   r5   ü   rR   z&AsyncAudioWithStreamingResponse.voicesr%   c                 C  rQ   r+   )r%   rM   r6   r-   r/   r/   r0   r6     rR   z.AsyncAudioWithStreamingResponse.voice_consentsNrV   )r)   r   )r)   r   )r)   r	   )r)   r   )r)   r%   rT   r/   r/   r/   r0   rF   é   rU   rF   N)1Ú
__future__r   r4   r   r   r   r   r   r	   r5   r
   r   r   r   r   r   Z_compatr   Z	_resourcer   r   r3   r   r   r   r   r   r   r1   r   r   r   r   r   r   r6   r    r!   r"   r#   r$   r%   Ú__all__r&   r'   r7   rE   r<   rF   r/   r/   r/   r0   Ú<module>   s        	..