+
    ~j*                    N   ^ RI Ht ^ RIHt ^ RIHt ^ RIt^RIHt ^RI	H
t
HtHtHtHtHtHt ^RIHtHt ^RIHt ^R	IHtHt ^R
IHtHtHtHt ^RIHt ^RI H!t! ^RI"H#t# RR.t$ ! R R]4      t% ! R R]4      t& ! R R4      t' ! R R4      t( ! R R4      t) ! R R4      t*R# )    )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                  v    ] tR t^tRt]R R l4       t]R R l4       tR]R]R]R	]R
RRRRRR]	/R R llt
RtR# )r   (Turn audio into text or text into audio.c                   V ^8  d   QhRR/# )   returnSpeechWithRawResponse )formats   "r/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/openai/resources/audio/speech.py__annotate__Speech.__annotate__    s     + +#8 +    c                    \        V 4      # 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
)r!   selfs   &r$   with_raw_responseSpeech.with_raw_response   s     %T**r'   c                   V ^8  d   QhRR/# )r   r    SpeechWithStreamingResponser"   )r#   s   "r$   r%   r&   *   s     1 1)D 1r'   c                    \        V 4      # 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*   s   &r$   with_streaming_responseSpeech.with_streaming_response)   s     +400r'   instructionsresponse_formatspeedstream_formatextra_headersNextra_query
extra_bodytimeoutc               H    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRR/# r   inputstrmodelzUnion[str, SpeechModel]voicezspeech_create_params.Voicer4   z
str | Omitr5   z:Literal['mp3', 'opus', 'aac', 'flac', 'wav', 'pcm'] | Omitr6   zfloat | Omitr7   zLiteral['sse', 'audio'] | Omitr8   zHeaders | Noner9   zQuery | Noner:   zBody | Noner;   z'float | httpx.Timeout | None | NotGivenr    z+_legacy_response.HttpxBinaryResponseContentr"   )r#   s   "r$   r%   r&   2        O
 O
 O
 '	O

 *O
 !O
 TO
 O
 6O
 &O
 "O
  O
 9O
  
5!O
r'   c                   RR/T;'       g    / CpV P                  R\        RVRVRVRVRVR	VR
V/\        P                  4      \	        VV	V
VRR/R7      \
        P                  R7      # )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/speechr>   r@   rA   r4   r5   r6   r7   bearer_authTr8   r9   r:   r;   securitybodyoptionscast_to)_postr   r   SpeechCreateParamsr   r   HttpxBinaryResponseContentr+   r>   r@   rA   r4   r5   r6   r7   r8   r9   r:   r;   s   &$$$$$$$$$$$r$   createSpeech.create2   s    p "#=W-BUBUSUWzz UUU"L%U#] %77 )+'%'. %??+  
 	
r'   r"   __name__
__module____qualname____firstlineno____doc__r   r,   r2   r   r   rS   __static_attributes__r"   r'   r$   r   r      s    2+ + 1 1O
 $(O
 W[O
 #O
 9=O
 )-O
 %)O
 #'O
 <EO
 O
r'   c                  v    ] tR t^tRt]R R l4       t]R R l4       tR]R]R]R	]R
RRRRRR]	/R R llt
RtR# )r   r   c                   V ^8  d   QhRR/# )r   r    AsyncSpeechWithRawResponser"   )r#   s   "r$   r%   AsyncSpeech.__annotate__   s     0 0#= 0r'   c                    \        V 4      # r)   )r^   r*   s   &r$   r,   AsyncSpeech.with_raw_response   s     *$//r'   c                   V ^8  d   QhRR/# )r   r     AsyncSpeechWithStreamingResponser"   )r#   s   "r$   r%   r_      s     6 6)I 6r'   c                    \        V 4      # r1   )rc   r*   s   &r$   r2   #AsyncSpeech.with_streaming_response   s     055r'   r4   r5   r6   r7   r8   Nr9   r:   r;   c               H    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRR/# r=   r"   )r#   s   "r$   r%   r_      rB   r'   c                 "   RR/T;'       g    / CpT P                  R\        RVRVRVRVRVR	VR
V/\        P                  4      G Rj  xL
 \	        VV	V
VRR/R7      \
        P                  R7      G Rj  xL
 #  L1 L5i)rD   rE   rF   rG   r>   r@   rA   r4   r5   r6   r7   NrH   TrI   rK   )rO   r   r   rP   r   r   rQ   rR   s   &$$$$$$$$$$$r$   rS   AsyncSpeech.create   s     p "#=W-BUBUSUWZZ,UUU"L%U#] %77  )+'%'. %??+   
 
 	

s$   AB 
A<
,B 7A>8B >B r"   rU   r"   r'   r$   r   r      s    20 0 6 6O
 $(O
 W[O
 #O
 9=O
 )-O
 %)O
 #'O
 <EO
 O
r'   c                  "    ] tR t^tR R ltRtR# )r!   c                    V ^8  d   QhRRRR/# r   speechr   r    Noner"   )r#   s   "r$   r%   "SpeechWithRawResponse.__annotate__   s     
 
v 
$ 
r'   c                	\    Wn         \        P                  ! VP                  4      V n        R # N)_speechr   to_raw_response_wrapperrS   r+   rl   s   &&r$   __init__SpeechWithRawResponse.__init__   s     &>>MM
r'   rq   rS   NrV   rW   rX   rY   rt   r[   r"   r'   r$   r!   r!          
 
r'   r!   c                  "    ] tR t^tR R ltRtR# )r^   c                    V ^8  d   QhRRRR/# r   rl   r   r    rm   r"   )r#   s   "r$   r%   'AsyncSpeechWithRawResponse.__annotate__   s     
 
{ 
t 
r'   c                	\    Wn         \        P                  ! VP                  4      V n        R # rp   )rq   r   async_to_raw_response_wrapperrS   rs   s   &&r$   rt   #AsyncSpeechWithRawResponse.__init__   s     &DDMM
r'   rv   Nrw   r"   r'   r$   r^   r^      rx   r'   r^   c                  "    ] tR t^tR R ltRtR# )r/   c                    V ^8  d   QhRRRR/# rk   r"   )r#   s   "r$   r%   (SpeechWithStreamingResponse.__annotate__   s     
 
v 
$ 
r'   c                	P    Wn         \        VP                  \        4      V n        R # rp   )rq   r   rS   r   rs   s   &&r$   rt   $SpeechWithStreamingResponse.__init__   s    9MM%
r'   rv   Nrw   r"   r'   r$   r/   r/          
 
r'   r/   c                  "    ] tR tRtR R ltRtR# )rc   i  c                    V ^8  d   QhRRRR/# r{   r"   )r#   s   "r$   r%   -AsyncSpeechWithStreamingResponse.__annotate__	  s     
 
{ 
t 
r'   c                	P    Wn         \        VP                  \        4      V n        R # rp   )rq   r   rS   r   rs   s   &&r$   rt   )AsyncSpeechWithStreamingResponse.__init__	  s    ?MM*
r'   rv   Nrw   r"   r'   r$   rc   rc     r   r'   rc   )+
__future__r   typingr   typing_extensionsr   httpx 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/   rc   r"   r'   r$   <module>r      s    #  %    K K K < & :  0 0 3]
#e
_ e
Pe
" e
P
 

 

 

 
r'   