Ë
    /æjVO  ã                  óx  — d dl mZ d dlmZmZmZ d dlmZmZ d dl	Z	ddl
mZ ddlmZ ddlmZmZ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 dd
lmZ ddlm Z m!Z! ddl"m#Z#m$Z$ ddl%m&Z& ddl'm(Z( ddl)m*Z* ddl+m,Z, ddgZ- G d„ de «      Z. G d„ de!«      Z/ G d„ d«      Z0 G d„ d«      Z1 G d„ d«      Z2 G d„ d«      Z3y)é    )Úannotations)ÚUnionÚMappingÚcast)ÚLiteralÚoverloadNé   )Ú_legacy_response)Údeepcopy_with_paths)ÚBodyÚOmitÚQueryÚHeadersÚNotGivenÚ	FileTypesÚomitÚ	not_given)Úextract_filesÚpath_templateÚrequired_argsÚmaybe_transformÚasync_maybe_transform)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_streamed_response_wrapperÚ"async_to_streamed_response_wrapper)Úvoice_create_params)Úmake_request_options)ÚVoice)ÚVoiceDeletedÚVoicesÚAsyncVoicesc                  óV  — e Zd ZdZedd„«       Zedd„«       Zeeddde	dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„«       Z
eeeddde	dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„«       Z
 eg d	¢g d
¢«      eeeeeeddde	dœ
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„«       Z
ddde	dœ	 	 	 	 	 	 	 	 	 	 	 dd„Zy)r"   ú(Turn audio into text or text into audio.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
        )ÚVoicesWithRawResponse©Úselfs    ú`/root/repos/pocs/video-evals/.venv/lib/python3.12/site-packages/openai/resources/audio/voices.pyÚwith_raw_responsezVoices.with_raw_response   s   € ô % TÓ*Ð*ó    c                ó   — t        | «      S ©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
        )ÚVoicesWithStreamingResponser)   s    r+   Úwith_streaming_responsezVoices.with_streaming_response&   s   € ô +¨4Ó0Ð0r-   N©ÚtypeÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutc                ó   — y©aa  Creates a voice from a text prompt or from a consent recording and an audio
        sample.

        For prompt-based creation, send `type: "prompt"` with a `name` and `prompt` as
        JSON or multipart form data. For creation from an audio sample, send
        `type: "audio_sample"` with a `name`, `audio_sample`, and `consent` recording ID
        as multipart form data. The type defaults to `audio_sample` when omitted.

        Returns the saved voice's metadata. Voices created from text prompts are
        supported only in Live, not in Realtime or the speech endpoint. The response
        does not include preview audio.

        Args:
          audio_sample: The sample audio recording file. Maximum size is 10 MiB.

              Supported MIME types: `audio/mpeg`, `audio/wav`, `audio/x-wav`, `audio/ogg`,
              `audio/aac`, `audio/flac`, `audio/webm`, `audio/mp4`.

          consent: The consent recording ID (for example, `cons_1234`).

          name: The name of the new voice.

          type: The voice creation method. Defaults to `audio_sample` when omitted.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        N© ©	r*   Úaudio_sampleÚconsentÚnamer3   r4   r5   r6   r7   s	            r+   ÚcreatezVoices.create/   s   € ð^ 	r-   ©ÚmodelÚscript_hintr4   r5   r6   r7   c       	         ó   — y©a°  Creates a voice from a text prompt or from a consent recording and an audio
        sample.

        For prompt-based creation, send `type: "prompt"` with a `name` and `prompt` as
        JSON or multipart form data. For creation from an audio sample, send
        `type: "audio_sample"` with a `name`, `audio_sample`, and `consent` recording ID
        as multipart form data. The type defaults to `audio_sample` when omitted.

        Returns the saved voice's metadata. Voices created from text prompts are
        supported only in Live, not in Realtime or the speech endpoint. The response
        does not include preview audio.

        Args:
          name: The name of the new voice.

          prompt: A description of the desired voice. Must not contain only whitespace.

          type: Set to `prompt` to create a voice from a text description.

          model: The voice creation model to use. Defaults to `auto`.

          script_hint: Optional text for the voice to speak during creation. If omitted, a script is
              generated from the prompt. Must not be blank after trimming whitespace; scripts
              that are too short are rejected.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        Nr:   ©
r*   r>   Úpromptr3   rA   rB   r4   r5   r6   r7   s
             r+   r?   zVoices.create`   s   € ðb 	r-   ©r<   r=   r>   ©r>   rF   r3   ©
r<   r=   r3   rF   rA   rB   r4   r5   r6   r7   c               ó  — t        |||||||dœdgg«      }t        t        t        t        t
        f   |«      dgg¬«      }ddi|xs i ¥}| j                  dt        |t        j                  «      |t        ||	|
|ddi¬	«      t        ¬
«      S ©N)r<   r=   r>   r3   rF   rA   rB   r<   )ÚpathszContent-Typezmultipart/form-dataz/audio/voicesÚbearer_authT©r4   r5   r6   r7   Úsecurity)ÚbodyÚfilesÚoptionsÚcast_to)r   r   r   r   ÚstrÚobjectÚ_postr   r   ÚVoiceCreateParamsr   r    ©r*   r<   r=   r>   r3   rF   rA   rB   r4   r5   r6   r7   rP   rQ   s                 r+   r?   zVoices.create“   s½   € ô$ #à ,Ø"ØØØ ØØ*ñð ÐÐó
ˆô œd¤7¬3´¨;Ñ#7¸Ó>ÈÐGWÐFXÔYˆð (Ð)>ÐXÀ=ÒCVÐTVÐXˆØ�z‰zØÜ  Ô':×'LÑ'LÓMØÜ(Ø+Ø'Ø%ØØ'¨Ð.ôô ð ó 
ð 	
r-   ©r4   r5   r6   r7   c               óˆ   — |st        d|›�«      ‚| j                  t        d|¬«      t        ||||ddi¬«      t        ¬«      S )áõ  
        Deletes a voice created from a text prompt or an audio sample.

        Requires voice write permission and access to the voice's project. Access to
        voices created from recordings is limited to eligible customers. See the
        [custom voices guide](https://developers.openai.com/api/docs/guides/custom-voices).

        Deleting a voice does not delete its consent recording. Deleting an already
        deleted voice returns a 404 error.

        Args:
          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        ú7Expected a non-empty value for `voice_id` but received ú/audio/voices/{voice_id}©Úvoice_idrM   TrN   ©rR   rS   ©Ú
ValueErrorÚ_deleter   r   r!   ©r*   r_   r4   r5   r6   r7   s         r+   ÚdeletezVoices.deleteÄ   s^   € ñ< ÜÐVÐW_ÐVbÐcÓdÐdØ�|‰|ÜÐ4¸xÔHÜ(Ø+Ø'Ø%ØØ'¨Ð.ôô !ð ó 

ð 
	
r-   )Úreturnr(   )rf   r0   ©r<   r   r=   rT   r>   rT   r3   zLiteral['audio_sample'] | Omitr4   úHeaders | Noner5   úQuery | Noner6   úBody | Noner7   ú(float | httpx2.Timeout | None | NotGivenrf   r    ©r>   rT   rF   rT   r3   zLiteral['prompt']rA   ú@Union[str, Union[Literal['auto'], Literal['2026-10-08']]] | OmitrB   ú
str | Omitr4   rh   r5   ri   r6   rj   r7   rk   rf   r    ©r<   zFileTypes | Omitr=   rn   r>   rT   r3   z2Literal['audio_sample'] | Literal['prompt'] | OmitrF   rn   rA   rm   rB   rn   r4   rh   r5   ri   r6   rj   r7   rk   rf   r    ©r_   rT   r4   rh   r5   ri   r6   rj   r7   rk   rf   r!   ©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r,   r1   r   r   r   r?   r   re   r:   r-   r+   r"   r"      sG  „ Ù2àò+ó ð+ð ò1ó ð1ð ð 04ð )-Ø$(Ø"&Ø<Eñ.ð  ð.ð ð	.ð
 ð.ð -ð.ð &ð.ð "ð.ð  ð.ð :ð.ð 
ò.ó ð.ð` ð SWØ"&ð )-Ø$(Ø"&Ø<Eñ0ð ð0ð ð	0ð
  ð0ð Pð0ð  ð0ð &ð0ð "ð0ð  ð0ð :ð0ð 
ò0ó ð0ñd Ò6Ò8RÓSð *.Ø"àCGØ!ØRVØ"&ð )-Ø$(Ø"&Ø<Eñ.
ð 'ð.
ð ð	.
ð
 ð.
ð Að.
ð ð.
ð Pð.
ð  ð.
ð &ð.
ð "ð.
ð  ð.
ð :ð.
ð  
ò!.
ó Tð.
ðl )-Ø$(Ø"&Ø<Eñ*
àð*
ð &ð*
ð "ð*
ð  ð*
ð :ð*
ð 
ô*
r-   c                  óV  — e Zd ZdZedd„«       Zedd„«       Zeeddde	dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„«       Z
eeeddde	dœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„«       Z
 eg d	¢g d
¢«      eeeeeeddde	dœ
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„«       Z
ddde	dœ	 	 	 	 	 	 	 	 	 	 	 dd„Zy)r#   r%   c                ó   — t        | «      S r'   )ÚAsyncVoicesWithRawResponser)   s    r+   r,   zAsyncVoices.with_raw_responseô   s   € ô *¨$Ó/Ð/r-   c                ó   — t        | «      S r/   )Ú AsyncVoicesWithStreamingResponser)   s    r+   r1   z#AsyncVoices.with_streaming_responseþ   s   € ô 0°Ó5Ð5r-   Nr2   c             ƒ  ó   K  — y­wr9   r:   r;   s	            r+   r?   zAsyncVoices.create  s   è ø€ ð^ 	ùó   ‚r@   c       	      ƒ  ó   K  — y­wrD   r:   rE   s
             r+   r?   zAsyncVoices.create8  s   è ø€ ðb 	ùr|   rG   rH   rI   c             ƒ  óJ  K  — t        |||||||dœdgg«      }t        t        t        t        t
        f   |«      dgg¬«      }ddi|xs i ¥}| j                  dt        |t        j                  «      ƒ d {  –—† |t        ||	|
|ddi¬	«      t        ¬
«      ƒ d {  –—† S 7 Œ(7 Œ­wrK   )r   r   r   r   rT   rU   rV   r   r   rW   r   r    rX   s                 r+   r?   zAsyncVoices.createk  sÒ   è ø€ ô$ #à ,Ø"ØØØ ØØ*ñð ÐÐó
ˆô œd¤7¬3´¨;Ñ#7¸Ó>ÈÐGWÐFXÔYˆð (Ð)>ÐXÀ=ÒCVÐTVÐXˆØ—Z‘ZØÜ,¨TÔ3F×3XÑ3XÓY×YØÜ(Ø+Ø'Ø%ØØ'¨Ð.ôô ð  ó 
÷ 
ð 	
àYøð
ús$   ‚A4B#Á6B
Á7#B#ÂB!ÂB#Â!B#rY   c             ƒ  ó¤   K  — |st        d|›�«      ‚| j                  t        d|¬«      t        ||||ddi¬«      t        ¬«      ƒ d{  –—† S 7 Œ­w)	r[   r\   r]   r^   rM   TrN   r`   Nra   rd   s         r+   re   zAsyncVoices.deleteœ  sl   è ø€ ñ< ÜÐVÐW_ÐVbÐcÓdÐdØ—\‘\ÜÐ4¸xÔHÜ(Ø+Ø'Ø%ØØ'¨Ð.ôô !ð "ó 

÷ 

ð 
	
ð 

ús   ‚AAÁ	AÁ
A)rf   rx   )rf   rz   rg   rl   ro   rp   rq   r:   r-   r+   r#   r#   ñ   sG  „ Ù2àò0ó ð0ð ò6ó ð6ð ð 04ð )-Ø$(Ø"&Ø<Eñ.ð  ð.ð ð	.ð
 ð.ð -ð.ð &ð.ð "ð.ð  ð.ð :ð.ð 
ò.ó ð.ð` ð SWØ"&ð )-Ø$(Ø"&Ø<Eñ0ð ð0ð ð	0ð
  ð0ð Pð0ð  ð0ð &ð0ð "ð0ð  ð0ð :ð0ð 
ò0ó ð0ñd Ò6Ò8RÓSð *.Ø"àCGØ!ØRVØ"&ð )-Ø$(Ø"&Ø<Eñ.
ð 'ð.
ð ð	.
ð
 ð.
ð Að.
ð ð.
ð Pð.
ð  ð.
ð &ð.
ð "ð.
ð  ð.
ð :ð.
ð  
ò!.
ó Tð.
ðl )-Ø$(Ø"&Ø<Eñ*
àð*
ð &ð*
ð "ð*
ð  ð*
ð :ð*
ð 
ô*
r-   c                  ó   — e Zd Zdd„Zy)r(   c                ó¢   — || _         t        j                  |j                  «      | _        t        j                  |j                  «      | _        y ©N)Ú_voicesr
   Úto_raw_response_wrapperr?   re   ©r*   Úvoicess     r+   Ú__init__zVoicesWithRawResponse.__init__Ê  s=   € ØˆŒä&×>Ñ>Ø�M‰Mó
ˆŒô '×>Ñ>Ø�M‰Mó
ˆ�r-   N©r†   r"   rf   ÚNone©rr   rs   rt   r‡   r:   r-   r+   r(   r(   É  ó   „ ô
r-   r(   c                  ó   — e Zd Zdd„Zy)rx   c                ó¢   — || _         t        j                  |j                  «      | _        t        j                  |j                  «      | _        y r‚   )rƒ   r
   Úasync_to_raw_response_wrapperr?   re   r…   s     r+   r‡   z#AsyncVoicesWithRawResponse.__init__Ö  s=   € ØˆŒä&×DÑDØ�M‰Mó
ˆŒô '×DÑDØ�M‰Mó
ˆ�r-   N©r†   r#   rf   r‰   rŠ   r:   r-   r+   rx   rx   Õ  r‹   r-   rx   c                  ó   — e Zd Zdd„Zy)r0   c                óz   — || _         t        |j                  «      | _        t        |j                  «      | _        y r‚   )rƒ   r   r?   re   r…   s     r+   r‡   z$VoicesWithStreamingResponse.__init__â  s1   € ØˆŒä2Ø�M‰Mó
ˆŒô 3Ø�M‰Mó
ˆ�r-   Nrˆ   rŠ   r:   r-   r+   r0   r0   á  r‹   r-   r0   c                  ó   — e Zd Zdd„Zy)rz   c                óz   — || _         t        |j                  «      | _        t        |j                  «      | _        y r‚   )rƒ   r   r?   re   r…   s     r+   r‡   z)AsyncVoicesWithStreamingResponse.__init__î  s1   € ØˆŒä8Ø�M‰Mó
ˆŒô 9Ø�M‰Mó
ˆ�r-   Nr�   rŠ   r:   r-   r+   rz   rz   í  r‹   r-   rz   )4Ú
__future__r   Útypingr   r   r   Útyping_extensionsr   r   Úhttpx2Ú r
   Ú_filesr   Ú_typesr   r   r   r   r   r   r   r   Ú_utilsr   r   r   r   r   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r   Útypes.audior   Ú_base_clientr   Útypes.audio.voicer    Útypes.audio.voice_deletedr!   Ú__all__r"   r#   r(   rx   r0   rz   r:   r-   r+   ú<module>r¤      s‘   ðõ #ç 'Ñ 'ß /ã å  Ý )ß V× VÓ Vß iÕ iÝ &ß :ß YÝ .Ý 0Ý &Ý 5à�]Ð
#€ôU
ˆ_ô U
ôpU
Ð"ô U
÷p	
ñ 	
÷	
ñ 	
÷	
ñ 	
÷	
ò 	
r-   