a
    f                     @  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"   U/var/www/ai-form-bot/venv/lib/python3.9/site-packages/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 r   )r'   r    r"   r"   r#   with_raw_response0   s    zAudio.with_raw_responseAudioWithStreamingResponsec                 C  s   t | S r   )r)   r    r"   r"   r#   with_streaming_response4   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$   :   s    zAsyncAudio.transcriptionsr   c                 C  s
   t | jS r   )r   r   r    r"   r"   r#   r%   >   s    zAsyncAudio.translationsr   c                 C  s
   t | jS r   )r   r   r    r"   r"   r#   r&   B   s    zAsyncAudio.speechAsyncAudioWithRawResponsec                 C  s   t | S r   )r/   r    r"   r"   r#   r(   F   s    zAsyncAudio.with_raw_responseAsyncAudioWithStreamingResponsec                 C  s   t | S r   )r0   r    r"   r"   r#   r*   J   s    z"AsyncAudio.with_streaming_responseNr+   r"   r"   r"   r#   r   9   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!   r3   r"   r"   r#   __init__P   s    zAudioWithRawResponse.__init__r   r   c                 C  s   t | jjS r   )r   r5   r$   r    r"   r"   r#   r$   S   s    z#AudioWithRawResponse.transcriptionsr   c                 C  s   t | jjS r   )r   r5   r%   r    r"   r"   r#   r%   W   s    z!AudioWithRawResponse.translationsr   c                 C  s   t | jjS r   )r   r5   r&   r    r"   r"   r#   r&   [   s    zAudioWithRawResponse.speechNr,   r-   r.   r7   r   r$   r%   r&   r"   r"   r"   r#   r'   O   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 )r/   r   r1   r2   c                 C  s
   || _ d S r   r4   r6   r"   r"   r#   r7   a   s    z"AsyncAudioWithRawResponse.__init__r   r   c                 C  s   t | jjS r   )r   r5   r$   r    r"   r"   r#   r$   d   s    z(AsyncAudioWithRawResponse.transcriptionsr   c                 C  s   t | jjS r   )r   r5   r%   r    r"   r"   r#   r%   h   s    z&AsyncAudioWithRawResponse.translationsr   c                 C  s   t | jjS r   )r   r5   r&   r    r"   r"   r#   r&   l   s    z AsyncAudioWithRawResponse.speechNr8   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 )r)   r   r1   r2   c                 C  s
   || _ d S r   r4   r6   r"   r"   r#   r7   r   s    z#AudioWithStreamingResponse.__init__r   r   c                 C  s   t | jjS r   )r   r5   r$   r    r"   r"   r#   r$   u   s    z)AudioWithStreamingResponse.transcriptionsr   c                 C  s   t | jjS r   )r   r5   r%   r    r"   r"   r#   r%   y   s    z'AudioWithStreamingResponse.translationsr   c                 C  s   t | jjS r   )r   r5   r&   r    r"   r"   r#   r&   }   s    z!AudioWithStreamingResponse.speechNr8   r"   r"   r"   r#   r)   q   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 )r0   r   r1   r2   c                 C  s
   || _ d S r   r4   r6   r"   r"   r#   r7      s    z(AsyncAudioWithStreamingResponse.__init__r   r   c                 C  s   t | jjS r   )r   r5   r$   r    r"   r"   r#   r$      s    z.AsyncAudioWithStreamingResponse.transcriptionsr   c                 C  s   t | jjS r   )r   r5   r%   r    r"   r"   r#   r%      s    z,AsyncAudioWithStreamingResponse.translationsr	   c                 C  s   t | jjS r   )r	   r5   r&   r    r"   r"   r#   r&      s    z&AsyncAudioWithStreamingResponse.speechNr8   r"   r"   r"   r#   r0      s   r0   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'   r/   r)   r0   r"   r"   r"   r#   <module>   s      	