ó
    ûÞ j*  ã                  óL  • S SK Jr  S SKJr  S SKJr  S SKrSSKJr  SSK	J
r
JrJrJrJrJrJr  SSKJrJr  SS	KJr  SS
KJrJr  SSKJrJrJrJr  SSKJr  SSK J!r!  SSK"J#r#  SS/r$ " S S\5      r% " S S\5      r& " S S5      r' " S S5      r( " S S5      r) " S S5      r*g)é    )Úannotations)ÚUnion)ÚLiteralNé   )Ú_legacy_response)ÚBodyÚOmitÚQueryÚHeadersÚNotGivenÚomitÚ	not_given)Úmaybe_transformÚasync_maybe_transform)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)ÚStreamedBinaryAPIResponseÚAsyncStreamedBinaryAPIResponseÚ#to_custom_streamed_response_wrapperÚ)async_to_custom_streamed_response_wrapper)Úspeech_create_params)Úmake_request_options)ÚSpeechModelÚSpeechÚAsyncSpeechc            	      óŽ   • \ rS rSrSr\S	S j5       r\S
S j5       r\\\\SSS\	S.                       SS jjr
Srg)r   é   ú(Turn audio into text or text into audio.c                ó   • [        U 5      $ ©zï
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
)ÚSpeechWithRawResponse©Úselfs    ÚW/var/www/html/gaurav/venv/lib/python3.13/site-packages/openai/resources/audio/speech.pyÚwith_raw_responseÚSpeech.with_raw_response   s   € ô % TÓ*Ð*ó    c                ó   • [        U 5      $ ©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
)ÚSpeechWithStreamingResponser#   s    r%   Úwith_streaming_responseÚSpeech.with_streaming_response)   s   € ô +¨4Ó0Ð0r(   N©ÚinstructionsÚresponse_formatÚspeedÚstream_formatÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutc               óº   • SS0U=(       d    0 EnU R                  S[        UUUUUUUS.[        R                  5      [	        UU	U
USS0S9[
        R                  S9$ )	á3  
Generates audio from the input text.

Returns the audio file content, or a stream of audio events.

Args:
  input: The text to generate audio for. The maximum length is 4096 characters.

  model:
      One of the available [TTS models](https://platform.openai.com/docs/models#tts):
      `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`.

  voice: The voice to use when generating the audio. Supported built-in voices are
      `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`,
      `shimmer`, `verse`, `marin`, and `cedar`. You may also provide a custom voice
      object with an `id`, for example `{ "id": "voice_1234" }`. Previews of the
      voices are available in the
      [Text to speech guide](https://platform.openai.com/docs/guides/text-to-speech#voice-options).

  instructions: Control the voice of your generated audio with additional instructions. Does not
      work with `tts-1` or `tts-1-hd`.

  response_format: The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`,
      `wav`, and `pcm`.

  speed: The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is
      the default.

  stream_format: The format to stream the audio in. Supported formats are `sse` and `audio`.
      `sse` is not supported for `tts-1` or `tts-1-hd`.

  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
ÚAcceptúapplication/octet-streamú/audio/speech©ÚinputÚmodelÚvoicer/   r0   r1   r2   Úbearer_authT©r3   r4   r5   r6   Úsecurity©ÚbodyÚoptionsÚcast_to)Ú_postr   r   ÚSpeechCreateParamsr   r   ÚHttpxBinaryResponseContent©r$   r=   r>   r?   r/   r0   r1   r2   r3   r4   r5   r6   s               r%   ÚcreateÚSpeech.create2   sŠ   € ðp "Ð#=ÐWÀ-×BUÐSUÐWˆØ�z‰zØÜ à"Ø"Ø"Ø$0Ø'6Ø"Ø%2ñô %×7Ñ7óô )Ø+Ø'Ø%ØØ'¨Ð.ñô %×?Ñ?ð+ ð 
ð 	
r(   © )Úreturnr"   )rN   r+   ©r=   Ústrr>   zUnion[str, SpeechModel]r?   zspeech_create_params.Voicer/   z
str | Omitr0   z:Literal['mp3', 'opus', 'aac', 'flac', 'wav', 'pcm'] | Omitr1   zfloat | Omitr2   zLiteral['sse', 'audio'] | Omitr3   zHeaders | Noner4   zQuery | Noner5   zBody | Noner6   z(float | httpx2.Timeout | None | NotGivenrN   z+_legacy_response.HttpxBinaryResponseContent©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r&   r,   r   r   rK   Ú__static_attributes__rM   r(   r%   r   r      sØ   † Ù2àó+ó ð+ð ó1ó ð1ð $(ØVZØ"Ø8<ð )-Ø$(Ø"&Ø<EñO
ð ðO
ð 'ð	O
ð
 *ðO
ð !ðO
ð TðO
ð ðO
ð 6ðO
ð &ðO
ð "ðO
ð  ðO
ð :ðO
ð  
5÷!O
ð O
r(   c            	      óŽ   • \ rS rSrSr\S	S j5       r\S
S j5       r\\\\SSS\	S.                       SS jjr
Srg)r   é„   r   c                ó   • [        U 5      $ r!   )ÚAsyncSpeechWithRawResponser#   s    r%   r&   ÚAsyncSpeech.with_raw_response‡   s   € ô *¨$Ó/Ð/r(   c                ó   • [        U 5      $ r*   )Ú AsyncSpeechWithStreamingResponser#   s    r%   r,   Ú#AsyncSpeech.with_streaming_response‘   s   € ô 0°Ó5Ð5r(   Nr.   c             ƒ  óê   #   • SS0U=(       d    0 EnU R                  S[        UUUUUUUS.[        R                  5      I Sh  v•N [	        UU	U
USS0S9[
        R                  S	9I Sh  v•N $  N+ N7f)
r8   r9   r:   r;   r<   Nr@   TrA   rC   )rG   r   r   rH   r   r   rI   rJ   s               r%   rK   ÚAsyncSpeech.createš   s¡   é € ðp "Ð#=ÐWÀ-×BUÐSUÐWˆØ—Z‘ZØÜ,à"Ø"Ø"Ø$0Ø'6Ø"Ø%2ñô %×7Ñ7ó÷ ô )Ø+Ø'Ø%ØØ'¨Ð.ñô %×?Ñ?ð+  ð 
÷ 
ð 	
ññ
ùs$   ‚AA3ÁA/
Á&A3Á*A1Á+A3Á1A3rM   )rN   r[   )rN   r^   rO   rQ   rM   r(   r%   r   r   „   sØ   † Ù2àó0ó ð0ð ó6ó ð6ð $(ØVZØ"Ø8<ð )-Ø$(Ø"&Ø<EñO
ð ðO
ð 'ð	O
ð
 *ðO
ð !ðO
ð TðO
ð ðO
ð 6ðO
ð &ðO
ð "ðO
ð  ðO
ð :ðO
ð  
5÷!O
ð O
r(   c                  ó   • \ rS rSrSS jrSrg)r"   éì   c                óZ   • Xl         [        R                  " UR                  5      U l        g ©N)Ú_speechr   Úto_raw_response_wrapperrK   ©r$   Úspeechs     r%   Ú__init__ÚSpeechWithRawResponse.__init__í   s    € ØŒä&×>Ò>Ø�M‰Mó
ˆ�r(   ©rf   rK   N©ri   r   rN   ÚNone©rR   rS   rT   rU   rj   rW   rM   r(   r%   r"   r"   ì   ó   † ÷
r(   r"   c                  ó   • \ rS rSrSS jrSrg)r[   éõ   c                óZ   • Xl         [        R                  " UR                  5      U l        g re   )rf   r   Úasync_to_raw_response_wrapperrK   rh   s     r%   rj   Ú#AsyncSpeechWithRawResponse.__init__ö   s    € ØŒä&×DÒDØ�M‰Mó
ˆ�r(   rl   N©ri   r   rN   rn   ro   rM   r(   r%   r[   r[   õ   rp   r(   r[   c                  ó   • \ rS rSrSS jrSrg)r+   éþ   c                óN   • Xl         [        UR                  [        5      U l        g re   )rf   r   rK   r   rh   s     r%   rj   Ú$SpeechWithStreamingResponse.__init__ÿ   s   € ØŒä9Ø�M‰MÜ%ó
ˆ�r(   rl   Nrm   ro   rM   r(   r%   r+   r+   þ   ó   † ÷
r(   r+   c                  ó   • \ rS rSrSS jrSrg)r^   i  c                óN   • Xl         [        UR                  [        5      U l        g re   )rf   r   rK   r   rh   s     r%   rj   Ú)AsyncSpeechWithStreamingResponse.__init__	  s   € ØŒä?Ø�M‰MÜ*ó
ˆ�r(   rl   Nrv   ro   rM   r(   r%   r^   r^     r{   r(   r^   )+Ú
__future__r   Útypingr   Útyping_extensionsr   Úhttpx2Ú r   Ú_typesr   r	   r
   r   r   r   r   Ú_utilsr   r   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r   r   r   Útypes.audior   Ú_base_clientr   Útypes.audio.speech_modelr   Ú__all__r   r   r"   r[   r+   r^   rM   r(   r%   Ú<module>r�      sŽ   ðõ #å Ý %ã å  ß K× KÑ Kß <Ý &ß :÷ó õ 0Ý 0Ý 3à�]Ð
#€ôe
ˆ_ô e
ôPe
Ð"ô e
÷P
ñ 
÷
ñ 
÷
ñ 
÷
ò 
r(   