o
    "chs                     @  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 N)r   _clientself r#   Z/home/air/goalskill/back/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_response0      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%   E   r&   zAsyncAudio.transcriptionsr   c                 C  r   r   )r   r    r!   r#   r#   r$   r'   I   r&   zAsyncAudio.translationsr   c                 C  r   r   )r   r    r!   r#   r#   r$   r(   M   r&   zAsyncAudio.speechAsyncAudioWithRawResponsec                 C  r*   r+   )r7   r!   r#   r#   r$   r,   Q   r-   zAsyncAudio.with_raw_responseAsyncAudioWithStreamingResponsec                 C  r*   r/   )r8   r!   r#   r#   r$   r0   [   r1   z"AsyncAudio.with_streaming_responseN)r   r   )r   r   )r   r   )r   r7   )r   r8   r2   r#   r#   r#   r$   r   D   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 r   _audior"   r:   r#   r#   r$   __init__f      
zAudioWithRawResponse.__init__r   c                 C     t | jjS r   )r   r>   r%   r!   r#   r#   r$   r%   i      z#AudioWithRawResponse.transcriptionsr   c                 C  rB   r   )r   r>   r'   r!   r#   r#   r$   r'   m   rC   z!AudioWithRawResponse.translationsr   c                 C  rB   r   )r   r>   r(   r!   r#   r#   r$   r(   q   rC   zAudioWithRawResponse.speechNr:   r   r   r;   )r   r   )r   r   )r   r   r3   r4   r5   r@   r   r%   r'   r(   r#   r#   r#   r$   r)   e       
r)   c                   @  r9   )r7   r:   r   r   r;   c                 C  r<   r   r=   r?   r#   r#   r$   r@   w   rA   z"AsyncAudioWithRawResponse.__init__r   c                 C  rB   r   )r   r>   r%   r!   r#   r#   r$   r%   z   rC   z(AsyncAudioWithRawResponse.transcriptionsr   c                 C  rB   r   )r   r>   r'   r!   r#   r#   r$   r'   ~   rC   z&AsyncAudioWithRawResponse.translationsr   c                 C  rB   r   )r   r>   r(   r!   r#   r#   r$   r(      rC   z AsyncAudioWithRawResponse.speechNr:   r   r   r;   )r   r   )r   r   )r   r   rE   r#   r#   r#   r$   r7   v   rF   r7   c                   @  r9   )r.   r:   r   r   r;   c                 C  r<   r   r=   r?   r#   r#   r$   r@      rA   z#AudioWithStreamingResponse.__init__r   c                 C  rB   r   )r   r>   r%   r!   r#   r#   r$   r%      rC   z)AudioWithStreamingResponse.transcriptionsr   c                 C  rB   r   )r   r>   r'   r!   r#   r#   r$   r'      rC   z'AudioWithStreamingResponse.translationsr   c                 C  rB   r   )r   r>   r(   r!   r#   r#   r$   r(      rC   z!AudioWithStreamingResponse.speechNrD   )r   r   )r   r   )r   r   rE   r#   r#   r#   r$   r.      rF   r.   c                   @  r9   )r8   r:   r   r   r;   c                 C  r<   r   r=   r?   r#   r#   r$   r@      rA   z(AsyncAudioWithStreamingResponse.__init__r   c                 C  rB   r   )r   r>   r%   r!   r#   r#   r$   r%      rC   z.AsyncAudioWithStreamingResponse.transcriptionsr   c                 C  rB   r   )r   r>   r'   r!   r#   r#   r$   r'      rC   z,AsyncAudioWithStreamingResponse.translationsr	   c                 C  rB   r   )r	   r>   r(   r!   r#   r#   r$   r(      rC   z&AsyncAudioWithStreamingResponse.speechNrG   )r   r   )r   r   )r   r	   rE   r#   r#   r#   r$   r8      rF   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      	!!