o
    iQ                     @  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#   V/home/kim/smarthome/.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	   Z_compatr   Z	_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      	$$