ó
    ûÞ jþª  ã                  ó
  • % S SK Jr  S SKrS SKrS SKJr  S SKJrJrJ	r	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  S	S
KJrJrJrJr  S	SKJr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K(J)r)J*r*  S	SK+J,r,  S	SK-J.r.  S	SK/J0r0J1r1J2r2  SSK3J4r4J5r5J6r6J7r7J8r8J9r9  S	SK:J;r;  S	SK<J=r=  S	SK>J?r?  S	SK@JArA  S	SKBJCrC  \(       a  S SKDJErF  S SKGJErH  S	SKIJJrJJKrK  SS/rL\Rš                  " \N5      rOS\PS'    " S S\)5      rQ " S  S\*5      rR " S! S"5      rS " S# S$5      rT " S% S&5      rU " S' S(5      rV " S) S*5      rW " S+ S,5      rX " S- S.5      rY " S/ S05      rZ " S1 S25      r[ " S3 S4\[5      r\ " S5 S6\[5      r] " S7 S8\[5      r^ " S9 S:\[5      r_ " S; S<\[5      r` " S= S>\[5      ra " S? S@\[5      rb " SA SB5      rc " SC SD\c5      rd " SE SF\c5      re " SG SH\c5      rf " SI SJ\c5      rg " SK SL\c5      rh " SM SN\c5      ri " SO SP\c5      rjg)Qé    )ÚannotationsN)ÚTracebackType)ÚTYPE_CHECKINGÚAnyÚIteratorÚcast)ÚAsyncIterator)Ú	BaseModelé   )ÚSessionsÚAsyncSessionsÚSessionsWithRawResponseÚAsyncSessionsWithRawResponseÚSessionsWithStreamingResponseÚ"AsyncSessionsWithStreamingResponseé   )Ú	NOT_GIVENÚQueryÚHeadersÚNotGiven)Úis_azure_clientÚmaybe_transformÚstrip_not_givenÚasync_maybe_transformÚis_async_azure_client)Úcached_property)Únormalize_httpx_url)Úconstruct_type_unchecked)ÚSyncAPIResourceÚAsyncAPIResource)ÚOpenAIError)Ú_merge_mappings)Úsession_update_event_paramÚresponse_create_event_paramÚ"transcription_session_update_param)ÚTranscriptionSessionsÚAsyncTranscriptionSessionsÚ$TranscriptionSessionsWithRawResponseÚ)AsyncTranscriptionSessionsWithRawResponseÚ*TranscriptionSessionsWithStreamingResponseÚ/AsyncTranscriptionSessionsWithStreamingResponse)ÚWebsocketConnectionOptions)ÚRealtimeClientEvent)ÚRealtimeServerEvent)ÚConversationItemParam)ÚRealtimeClientEventParam)ÚClientConnection)ÚOpenAIÚAsyncOpenAIÚRealtimeÚAsyncRealtimezlogging.LoggerÚlogc                  óŒ   • \ rS rSr\S
S j5       r\SS j5       r\SS j5       r\SS j5       r0 0 0 S.         SS jjr	Sr
g	)r4   é@   c                ó,   • [        U R                  5      $ ©N)r   Ú_client©Úselfs    Úa/var/www/html/gaurav/venv/lib/python3.13/site-packages/openai/resources/beta/realtime/realtime.pyÚsessionsÚRealtime.sessionsA   s   € ä˜Ÿ™Ó%Ð%ó    c                ó,   • [        U R                  5      $ r:   )r&   r;   r<   s    r>   Útranscription_sessionsÚRealtime.transcription_sessionsE   s   € ä$ T§\¡\Ó2Ð2rA   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
)ÚRealtimeWithRawResponser<   s    r>   Úwith_raw_responseÚRealtime.with_raw_responseI   s   € ô ' tÓ,Ð,rA   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
)ÚRealtimeWithStreamingResponser<   s    r>   Úwith_streaming_responseÚ Realtime.with_streaming_responseS   s   € ô -¨TÓ2Ð2rA   ©Úextra_queryÚextra_headersÚwebsocket_connection_optionsc               ó0   • [        U R                  UUUUS9$ ©aŠ  
The Realtime API enables you to build low-latency, multi-modal conversational experiences. It currently supports text and audio as both input and output, as well as function calling.

Some notable benefits of the API include:

- Native speech-to-speech: Skipping an intermediate text format means low latency and nuanced output.
- Natural, steerable voices: The models have natural inflection and can laugh, whisper, and adhere to tone direction.
- Simultaneous multimodal output: Text is useful for moderation; faster-than-realtime audio ensures stable playback.

The Realtime API is a stateful, event-based API that communicates over a WebSocket.
)ÚclientrP   rQ   rR   Úmodel)ÚRealtimeConnectionManagerr;   ©r=   rV   rP   rQ   rR   s        r>   ÚconnectÚRealtime.connect\   s$   € ô& )Ø—<‘<Ø#Ø'Ø)EØñ
ð 	
rA   © N)Úreturnr   )r\   r&   )r\   rG   )r\   rL   )
rV   ÚstrrP   r   rQ   r   rR   r,   r\   rW   ©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r?   rC   rH   rM   rY   Ú__static_attributes__r[   rA   r>   r4   r4   @   s˜   † Øó&ó ð&ð ó3ó ð3ð ó-ó ð-ð ó3ó ð3ð  Ø!#ØCEñ
ð ð
ð ð	
ð
 ð
ð 'Að
ð 
#÷
ð 
rA   c                  óŒ   • \ rS rSr\S
S j5       r\SS j5       r\SS j5       r\SS j5       r0 0 0 S.         SS jjr	Sr
g	)r5   éx   c                ó,   • [        U R                  5      $ r:   )r   r;   r<   s    r>   r?   ÚAsyncRealtime.sessionsy   s   € ä˜TŸ\™\Ó*Ð*rA   c                ó,   • [        U R                  5      $ r:   )r'   r;   r<   s    r>   rC   Ú$AsyncRealtime.transcription_sessions}   s   € ä)¨$¯,©,Ó7Ð7rA   c                ó   • [        U 5      $ rF   )ÚAsyncRealtimeWithRawResponser<   s    r>   rH   ÚAsyncRealtime.with_raw_response�   s   € ô ,¨DÓ1Ð1rA   c                ó   • [        U 5      $ rK   )Ú"AsyncRealtimeWithStreamingResponser<   s    r>   rM   Ú%AsyncRealtime.with_streaming_response‹   s   € ô 2°$Ó7Ð7rA   rO   c               ó0   • [        U R                  UUUUS9$ rT   )ÚAsyncRealtimeConnectionManagerr;   rX   s        r>   rY   ÚAsyncRealtime.connect”   s$   € ô& .Ø—<‘<Ø#Ø'Ø)EØñ
ð 	
rA   r[   N)r\   r   )r\   r'   )r\   rk   )r\   rn   )
rV   r]   rP   r   rQ   r   rR   r,   r\   rq   r^   r[   rA   r>   r5   r5   x   s˜   † Øó+ó ð+ð ó8ó ð8ð ó2ó ð2ð ó8ó ð8ð  Ø!#ØCEñ
ð ð
ð ð	
ð
 ð
ð 'Að
ð 
(÷
ð 
rA   c                  óF   • \ rS rSrSS jr\SS j5       r\S	S j5       rSrg)
rG   é°   c                ó   • Xl         g r:   ©Ú	_realtime©r=   Úrealtimes     r>   Ú__init__Ú RealtimeWithRawResponse.__init__±   ó   € Ø!�rA   c                ó@   • [        U R                  R                  5      $ r:   )r   rw   r?   r<   s    r>   r?   Ú RealtimeWithRawResponse.sessions´   s   € ä& t§~¡~×'>Ñ'>Ó?Ð?rA   c                ó@   • [        U R                  R                  5      $ r:   )r(   rw   rC   r<   s    r>   rC   Ú.RealtimeWithRawResponse.transcription_sessions¸   s   € ä3°D·N±N×4YÑ4YÓZÐZrA   rv   N©ry   r4   r\   ÚNone)r\   r   )r\   r(   ©	r_   r`   ra   rb   rz   r   r?   rC   rc   r[   rA   r>   rG   rG   °   s3   † ô"ð ó@ó ð@ð ó[ó ó[rA   rG   c                  óF   • \ rS rSrSS jr\SS j5       r\S	S j5       rSrg)
rk   é½   c                ó   • Xl         g r:   rv   rx   s     r>   rz   Ú%AsyncRealtimeWithRawResponse.__init__¾   r|   rA   c                ó@   • [        U R                  R                  5      $ r:   )r   rw   r?   r<   s    r>   r?   Ú%AsyncRealtimeWithRawResponse.sessionsÁ   s   € ä+¨D¯N©N×,CÑ,CÓDÐDrA   c                ó@   • [        U R                  R                  5      $ r:   )r)   rw   rC   r<   s    r>   rC   Ú3AsyncRealtimeWithRawResponse.transcription_sessionsÅ   s   € ä8¸¿¹×9^Ñ9^Ó_Ð_rA   rv   N©ry   r5   r\   r‚   )r\   r   )r\   r)   rƒ   r[   rA   r>   rk   rk   ½   s3   † ô"ð óEó ðEð ó`ó ó`rA   rk   c                  óF   • \ rS rSrSS jr\SS j5       r\S	S j5       rSrg)
rL   éÊ   c                ó   • Xl         g r:   rv   rx   s     r>   rz   Ú&RealtimeWithStreamingResponse.__init__Ë   r|   rA   c                ó@   • [        U R                  R                  5      $ r:   )r   rw   r?   r<   s    r>   r?   Ú&RealtimeWithStreamingResponse.sessionsÎ   s   € ä,¨T¯^©^×-DÑ-DÓEÐErA   c                ó@   • [        U R                  R                  5      $ r:   )r*   rw   rC   r<   s    r>   rC   Ú4RealtimeWithStreamingResponse.transcription_sessionsÒ   s   € ä9¸$¿.¹.×:_Ñ:_Ó`Ð`rA   rv   Nr�   )r\   r   )r\   r*   rƒ   r[   rA   r>   rL   rL   Ê   s3   † ô"ð óFó ðFð óaó óarA   rL   c                  óF   • \ rS rSrSS jr\SS j5       r\S	S j5       rSrg)
rn   é×   c                ó   • Xl         g r:   rv   rx   s     r>   rz   Ú+AsyncRealtimeWithStreamingResponse.__init__Ø   r|   rA   c                ó@   • [        U R                  R                  5      $ r:   )r   rw   r?   r<   s    r>   r?   Ú+AsyncRealtimeWithStreamingResponse.sessionsÛ   s   € ä1°$·.±.×2IÑ2IÓJÐJrA   c                ó@   • [        U R                  R                  5      $ r:   )r+   rw   rC   r<   s    r>   rC   Ú9AsyncRealtimeWithStreamingResponse.transcription_sessionsß   s   € ä>¸t¿~¹~×?dÑ?dÓeÐerA   rv   NrŒ   )r\   r   )r\   r+   rƒ   r[   rA   r>   rn   rn   ×   s3   † ô"ð óKó ðKð ófó ófrA   rn   c                  ó°   • \ rS rSr% SrS\S'   S\S'   S\S'   S	\S
'   S\S'   S\S'   S\S'   SS jrSS jrSS jrS S jr	S!S jr
SSS.S"S jjrS#S jrSrg)$ÚAsyncRealtimeConnectionéä   ú:Represents a live websocket connection to the Realtime APIÚAsyncRealtimeSessionResourceÚsessionÚAsyncRealtimeResponseResourceÚresponseÚ%AsyncRealtimeInputAudioBufferResourceÚinput_audio_bufferÚ!AsyncRealtimeConversationResourceÚconversationÚ&AsyncRealtimeOutputAudioBufferResourceÚoutput_audio_bufferÚ)AsyncRealtimeTranscriptionSessionResourceÚtranscription_sessionÚAsyncWebsocketConnectionÚ_connectionc                óÐ   • Xl         [        U 5      U l        [        U 5      U l        [        U 5      U l        [        U 5      U l        [        U 5      U l
        [        U 5      U l        g r:   )r®   r¡   r¢   r£   r¤   r¥   r¦   r§   r¨   r©   rª   r«   r¬   ©r=   Ú
connections     r>   rz   Ú AsyncRealtimeConnection.__init__ð   sT   € Ø%Ôä3°DÓ9ˆŒÜ5°dÓ;ˆŒÜ"GÈÓ"MˆÔÜ=¸dÓCˆÔÜ#IÈ$Ó#OˆÔ Ü%NÈtÓ%TˆÕ"rA   c               óp   #   • SSK Jn    U R                  5       I Sh  v•N 7v •  M   N	! U a     gf = f7f©zY
An infinite-iterator that will continue to yield events until
the connection is closed.
r   )ÚConnectionClosedOKN©Úwebsockets.exceptionsrµ   Úrecv©r=   rµ   s     r>   Ú	__aiter__Ú!AsyncRealtimeConnection.__aiter__ú   s:   é € õ
 	=ð	ØØ ŸI™I›K×'Ó'ñ Ù'øØ!ó 	Ùð	üs    ‚6Š* ž(Ÿ
* ª3°6²3³6c              ƒ  ó\   #   • U R                  U R                  5       I Sh  v•N 5      $  N7f)ú¡
Receive the next message from the connection and parses it into a `RealtimeServerEvent` object.

Canceling this method is safe. There's no risk of losing data.
N©Úparse_eventÚ
recv_bytesr<   s    r>   r¸   ÚAsyncRealtimeConnection.recv  s%   é € ð ×Ñ d§o¡oÓ&7× 7Ó8Ð8Ñ 7ùs   ‚,¡*¢	,c              ƒ  ó’   #   • U R                   R                  SS9I Sh  v•N n[        R                  S[	        U5      5        U$  N%7f)úþReceive the next message from the connection as raw bytes.

Canceling this method is safe. There's no risk of losing data.

If you want to parse the message into a `RealtimeServerEvent` object like `.recv()` does,
then you can call `.parse_event(data)`.
F©ÚdecodeNú$Received WebSocket message: %i bytes©r®   r¸   r6   ÚdebugÚlen©r=   Úmessages     r>   rÀ   Ú"AsyncRealtimeConnection.recv_bytes  s@   é € ð ×(Ñ(×-Ñ-°UÐ-Ð;×;ˆÜ�	‰	Ð8¼#¸g»,ÔGØˆñ <ùs   ‚AŸA &Ac              ƒ  óþ   #   • [        U[        5      (       a  UR                  SSSS9O+[        R                  " [        U[        5      I S h  v•N 5      nU R                  R                  U5      I S h  v•N   g  N, N7f©NT)Úuse_api_namesÚexclude_defaultsÚexclude_unset)	Ú
isinstancer
   Úto_jsonÚjsonÚdumpsr   r0   r®   Úsend©r=   ÚeventÚdatas      r>   rÖ   ÚAsyncRealtimeConnection.send  sk   é € ô ˜%¤×+Ñ+ð �M‰M¨¸tÐSWˆMÑXä—’Ô"7¸Ô?WÓ"X×XÓYð 	ð
 ×Ñ×#Ñ# DÓ)×)Ñ)ñ Yá)ùs$   ‚A
A=ÁA9Á&A=Á3A;Á4A=Á;A=éè  Ú ©ÚcodeÚreasonc             ƒ  óR   #   • U R                   R                  XS9I S h  v•N   g  N7f©NrÝ   ©r®   Úclose©r=   rÞ   rß   s      r>   rã   ÚAsyncRealtimeConnection.close#  s"   é € Ø×Ñ×$Ñ$¨$Ð$Ð>×>Ó>ùs   ‚'Ÿ% 'c           
     ó~   • [        [        [        [        R                  " U5      [        [
        [        5      S95      $ ©z€
Converts a raw `str` or `bytes` message into a `RealtimeServerEvent` object.

This is helpful if you're using `.recv_bytes()`.
)ÚvalueÚtype_©r   r.   r   rÔ   Úloadsr   ©r=   rÙ   s     r>   r¿   Ú#AsyncRealtimeConnection.parse_event&  ó1   € ô ÜÔ!9ÄÇ
Â
È4Ó@PÔX\Ô]`ÔbuÓXvÑ!wó
ð 	
rA   ©r®   r¨   r¦   rª   r¤   r¢   r¬   N)r±   r­   r\   r‚   )r\   z"AsyncIterator[RealtimeServerEvent]©r\   r.   ©r\   Úbytes©rØ   z.RealtimeClientEvent | RealtimeClientEventParamr\   r‚   ©rÞ   Úintrß   r]   r\   r‚   ©rÙ   zstr | bytesr\   r.   )r_   r`   ra   rb   Ú__doc__Ú__annotations__rz   rº   r¸   rÀ   rÖ   rã   r¿   rc   r[   rA   r>   rž   rž   ä   sZ   ‡ ÙDà)Ó)Ø+Ó+Ø=Ó=Ø3Ó3Ø?Ó?ØDÓDà)Ó)ôUôô9ô
ô*ð *.¸R÷ ?÷
rA   rž   c                  ól   • \ rS rSrSr            S	S jrS
S jr\rSS jr        SS jr	Sr
g)rq   i1  a  
Context manager over a `AsyncRealtimeConnection` that is returned by `beta.realtime.connect()`

This context manager ensures that the connection will be closed when it exits.

---

Note that if your application doesn't work well with the context manager approach then you
can call the `.enter()` method directly to initiate a connection.

**Warning**: You must remember to close the connection with `.close()`.

```py
connection = await client.beta.realtime.connect(...).enter()
# ...
await connection.close()
```
c               óN   • Xl         X l        S U l        X0l        X@l        XPl        g r:   )Ú'_AsyncRealtimeConnectionManager__clientÚ&_AsyncRealtimeConnectionManager__modelÚ+_AsyncRealtimeConnectionManager__connectionÚ,_AsyncRealtimeConnectionManager__extra_queryÚ._AsyncRealtimeConnectionManager__extra_headersÚ=_AsyncRealtimeConnectionManager__websocket_connection_options©r=   rU   rV   rP   rQ   rR   s         r>   rz   Ú'AsyncRealtimeConnectionManager.__init__E  s(   € ð ŒØŒØ<@ˆÔØ(ÔØ,ÔØ.JÕ+rA   c              ƒ  ó|  #   •  SSK Jn  U R                  nU R
                  R                  5       I Sh  v•N   U R
                  R                  n[        U R
                  5      (       a7  SSK	J
n  U R
                  R                  U R                  U5      I Sh  v•N u  pTOMU R                  5       R                  0 U R
                  R                  R                   ESU R                  0EUES9n["        R%                  S5        U R&                  (       a  ["        R%                  S	5        [)        U" [+        U5      4U R
                  R,                  [/        0 UES
S0EU R0                  5      S.U R&                  D6I Sh  v•N 5      U l        U R2                  $ ! [         a  n[        S5      UeSnAff = f GN� GN  N=7f)u?  
ðŸ‘‹ If your application doesn't work well with the context manager approach then you
can call this method directly to initiate a connection.

**Warning**: You must remember to close the connection with `.close()`.

```py
connection = await client.beta.realtime.connect(...).enter()
# ...
await connection.close()
```
r   )Ú_WebSocketConnectú9You need to install `openai[realtime]` to use this methodN)Ú_AzureWebSocketConnectrV   ©ÚparamsúConnecting to WebSocket APIú,Custom WebSocket connection options providedúOpenAI-Betaúrealtime=v1©Úuser_agent_headerÚadditional_headers)Úlib._websocketr  ÚImportErrorr!   rþ   rû   Ú_refresh_api_keyÚauth_headersr   Úlib._azure_websocketr  Ú_configure_realtimerü   Ú_prepare_urlÚ	copy_withÚbase_urlr  r6   rÈ   r   rž   r]   Ú
user_agentr"   rÿ   rý   ©r=   rY   ÚexcrP   r  Úurls         r>   Ú
__aenter__Ú)AsyncRealtimeConnectionManager.__aenter__U  sœ  é € ð	dÝGð ×(Ñ(ˆØ�m‰m×,Ñ,Ó.×.Ð.Ø—}‘}×1Ñ1ˆÜ  §¡×/Ñ/ÝRà&*§m¡m×&GÑ&GÈÏÉÐVaÓ&b× bÑˆC�à×#Ñ#Ó%×/Ñ/ðØ—m‘m×,Ñ,×3Ñ3ðà˜TŸ\™\ñð "ðð 0ð ˆCô 	�	‰	Ð/Ô0Ø×.×.Ü�I‰IÐDÔEä3ÙÜ�C“ðà"&§-¡-×":Ñ":Ü#2ðØ&ðà% }ñð ×(Ñ(ó$ñð ×5Ñ5ñ÷ ó
ˆÔð × Ñ Ð øôK ó 	dÜÐYÓZÐ`cÐcûð	dúò 	/ò
 !cñùsW   ‚F<„F Š)F<³F4´A#F<ÂF7ÂC$F<Å<F:Å=F<Æ
F1Æ F,Æ,F1Æ1F<Æ7F<Æ:F<c                ó  • U R                   R                  b   [        U R                   R                  5      nO#U R                   R                  R	                  SS9nUR
                  R                  S5      S-   nUR	                  US9$ ©NÚwss)Úschemeó   /s	   /realtime)Úraw_path)rû   Úwebsocket_base_urlr   Ú	_base_urlr  r$  Úrstrip©r=   r  Úmerge_raw_paths      r>   r  Ú+AsyncRealtimeConnectionManager._prepare_url�  ór   € Ø�=‰=×+Ñ+Ñ7Ü*¨4¯=©=×+KÑ+KÓL‰Hà—}‘}×.Ñ.×8Ñ8ÀÐ8ÐFˆHà!×*Ñ*×1Ñ1°$Ó7¸,ÑFˆØ×!Ñ!¨>Ð!Ð:Ð:rA   c              ƒ  óp   #   • U R                   b#  U R                   R                  5       I S h  v•N   g g  N7fr:   )rý   rã   ©r=   Úexc_typer  Úexc_tbs       r>   Ú	__aexit__Ú(AsyncRealtimeConnectionManager.__aexit__–  s3   é € ð ×ÑÑ(Ø×#Ñ#×)Ñ)Ó+×+Ñ+ð )Ù+ùs   ‚+6­4®6©Ú__clientÚ__connectionÚ__extra_headersÚ__extra_queryÚ__modelÚ__websocket_connection_optionsN)rU   r3   rV   r]   rP   r   rQ   r   rR   r,   r\   r‚   )r\   rž   ©r\   z
httpx2.URL©r.  ztype[BaseException] | Noner  zBaseException | Noner/  zTracebackType | Noner\   r‚   )r_   r`   ra   rb   r÷   rz   r  Úenterr  r0  rc   r[   rA   r>   rq   rq   1  s‡   † ñð&Kð ðKð ð	Kð
 ðKð ðKð 'AðKð 
ôKô 4!ðl €Eô;ð,Ø2ð,Ø9Mð,ØWkð,à	÷,rA   rq   c                  ó°   • \ rS rSr% SrS\S'   S\S'   S\S'   S	\S
'   S\S'   S\S'   S\S'   SS jrSS jrSS jrS S jr	S!S jr
SSS.S"S jjrS#S jrSrg)$ÚRealtimeConnectioni�  r    ÚRealtimeSessionResourcer¢   ÚRealtimeResponseResourcer¤   Ú RealtimeInputAudioBufferResourcer¦   ÚRealtimeConversationResourcer¨   Ú!RealtimeOutputAudioBufferResourcerª   Ú$RealtimeTranscriptionSessionResourcer¬   ÚWebsocketConnectionr®   c                óÐ   • Xl         [        U 5      U l        [        U 5      U l        [        U 5      U l        [        U 5      U l        [        U 5      U l
        [        U 5      U l        g r:   )r®   r>  r¢   r?  r¤   r@  r¦   rA  r¨   rB  rª   rC  r¬   r°   s     r>   rz   ÚRealtimeConnection.__init__©  sT   € Ø%Ôä.¨tÓ4ˆŒÜ0°Ó6ˆŒÜ"BÀ4Ó"HˆÔÜ8¸Ó>ˆÔÜ#DÀTÓ#JˆÔ Ü%IÈ$Ó%OˆÕ"rA   c              #  óZ   #   • SSK Jn    U R                  5       v •  M  ! U a     gf = f7fr´   r¶   r¹   s     r>   Ú__iter__ÚRealtimeConnection.__iter__³  s4   é € õ
 	=ð	ØØ—i‘i“kÒ!ñ øà!ó 	Ùð	üs   ‚+Š Ÿ(¥+§(¨+c                ó@   • U R                  U R                  5       5      $ )r½   r¾   r<   s    r>   r¸   ÚRealtimeConnection.recvÀ  s   € ð ×Ñ §¡Ó 1Ó2Ð2rA   c                óv   • U R                   R                  SS9n[        R                  S[	        U5      5        U$ )rÃ   FrÄ   rÆ   rÇ   rÊ   s     r>   rÀ   ÚRealtimeConnection.recv_bytesÈ  s5   € ð ×"Ñ"×'Ñ'¨uÐ'Ð5ˆÜ�	‰	Ð8¼#¸g»,ÔGØˆrA   c                óÎ   • [        U[        5      (       a  UR                  SSSS9O#[        R                  " [        U[        5      5      nU R                  R                  U5        g rÎ   )	rÒ   r
   rÓ   rÔ   rÕ   r   r0   r®   rÖ   r×   s      r>   rÖ   ÚRealtimeConnection.sendÔ  sU   € ô ˜%¤×+Ñ+ð �M‰M¨¸tÐSWˆMÑXä—’œO¨EÔ3KÓLÓMð 	ð
 	×Ñ×Ñ˜dÕ#rA   rÛ   rÜ   rÝ   c               ó6   • U R                   R                  XS9  g rá   râ   rä   s      r>   rã   ÚRealtimeConnection.closeÜ  s   € Ø×Ñ×Ñ DÐÒ8rA   c           
     ó~   • [        [        [        [        R                  " U5      [        [
        [        5      S95      $ rç   rê   rì   s     r>   r¿   ÚRealtimeConnection.parse_eventß  rî   rA   rï   N)r±   rD  r\   r‚   )r\   zIterator[RealtimeServerEvent]rð   rñ   ró   rô   rö   )r_   r`   ra   rb   r÷   rø   rz   rH  r¸   rÀ   rÖ   rã   r¿   rc   r[   rA   r>   r=  r=  �  sZ   ‡ ÙDà$Ó$Ø&Ó&Ø8Ó8Ø.Ó.Ø:Ó:Ø?Ó?à$Ó$ôPôô3ô
ô$ð $(°r÷ 9÷
rA   r=  c                  ól   • \ rS rSrSr            S	S jrS
S jr\rSS jr        SS jr	Sr
g)rW   iê  aò  
Context manager over a `RealtimeConnection` that is returned by `beta.realtime.connect()`

This context manager ensures that the connection will be closed when it exits.

---

Note that if your application doesn't work well with the context manager approach then you
can call the `.enter()` method directly to initiate a connection.

**Warning**: You must remember to close the connection with `.close()`.

```py
connection = client.beta.realtime.connect(...).enter()
# ...
connection.close()
```
c               óN   • Xl         X l        S U l        X0l        X@l        XPl        g r:   )Ú"_RealtimeConnectionManager__clientÚ!_RealtimeConnectionManager__modelÚ&_RealtimeConnectionManager__connectionÚ'_RealtimeConnectionManager__extra_queryÚ)_RealtimeConnectionManager__extra_headersÚ8_RealtimeConnectionManager__websocket_connection_optionsr  s         r>   rz   Ú"RealtimeConnectionManager.__init__þ  s(   € ð ŒØŒØ7;ˆÔØ(ÔØ,ÔØ.JÕ+rA   c                ó(  •  SSK Jn  U R                  nU R
                  R                  5         U R
                  R                  n[        U R
                  5      (       a)  U R
                  R                  U R                  U5      u  pTOMU R                  5       R                  0 U R
                  R                  R                  ESU R                  0EUES9n[        R!                  S5        U R"                  (       a  [        R!                  S5        [%        U" ['        U5      4U R
                  R(                  [+        0 UES	S
0EU R,                  5      S.U R"                  D65      U l        U R.                  $ ! [         a  n[        S5      UeSnAff = f)u3  
ðŸ‘‹ If your application doesn't work well with the context manager approach then you
can call this method directly to initiate a connection.

**Warning**: You must remember to close the connection with `.close()`.

```py
connection = client.beta.realtime.connect(...).enter()
# ...
connection.close()
```
r   )rY   r  NrV   r  r	  r
  r  r  r  )Úwebsockets.sync.clientrY   r  r!   rY  rV  r  r  r   r  rW  r  r  r  r  r6   rÈ   r[  r=  r]   r  r"   rZ  rX  r  s         r>   Ú	__enter__Ú#RealtimeConnectionManager.__enter__  sx  € ð	dÝ6ð ×(Ñ(ˆØ�‰×&Ñ&Ô(Ø—}‘}×1Ñ1ˆÜ˜4Ÿ=™=×)Ñ)Ø $§¡× AÑ AÀ$Ç,Á,ÐP[Ó \ÑˆC�à×#Ñ#Ó%×/Ñ/ðØ—m‘m×,Ñ,×3Ñ3ðà˜TŸ\™\ñð "ðð 0ð ˆCô 	�	‰	Ð/Ô0Ø×.×.Ü�I‰IÐDÔEä.ÙÜ�C“ðà"&§-¡-×":Ñ":Ü#2ðØ&ðà% }ñð ×(Ñ(ó$ñð ×5Ñ5ñó
ˆÔð × Ñ Ð øôG ó 	dÜÐYÓZÐ`cÐcûð	dús   ‚E6 Å6
FÆ FÆFc                ó  • U R                   R                  b   [        U R                   R                  5      nO#U R                   R                  R	                  SS9nUR
                  R                  S5      S-   nUR	                  US9$ r   )rV  r%  r   r&  r  r$  r'  r(  s      r>   r  Ú&RealtimeConnectionManager._prepare_urlD  r+  rA   c                óT   • U R                   b  U R                   R                  5         g g r:   )rX  rã   r-  s       r>   Ú__exit__Ú"RealtimeConnectionManager.__exit__M  s'   € ð ×ÑÑ(Ø×Ñ×#Ñ#Õ%ð )rA   r2  N)rU   r2   rV   r]   rP   r   rQ   r   rR   r,   r\   r‚   )r\   r=  r9  r:  )r_   r`   ra   rb   r÷   rz   r_  r;  r  rd  rc   r[   rA   r>   rW   rW   ê  s‡   † ñð&Kð ðKð ð	Kð
 ðKð ðKð 'AðKð 
ôKô 2!ðh €Eô;ð&Ø2ð&Ø9Mð&ØWkð&à	÷&rA   rW   c                  ó   • \ rS rSrSS jrSrg)ÚBaseRealtimeConnectionResourceiT  c                ó   • Xl         g r:   ©r®   r°   s     r>   rz   Ú'BaseRealtimeConnectionResource.__init__U  ó   € Ø%ÕrA   ri  N)r±   r=  r\   r‚   ©r_   r`   ra   rb   rz   rc   r[   rA   r>   rg  rg  T  ó   † ÷&rA   rg  c                  ó&   • \ rS rSr\S.SS jjrSrg)r>  iY  ©Úevent_idc               ón   • U R                   R                  [        [        [	        SXS.5      5      5        g©u  
Send this event to update the sessionâ€™s default configuration.
The client may send this event at any time to update any field,
except for `voice`. However, note that once a session has been
initialized with a particular `model`, it canâ€™t be changed to
another model using `session.update`.

When the server receives a `session.update`, it will respond
with a `session.updated` event showing the full, effective configuration.
Only the fields that are present are updated. To clear a field like
`instructions`, pass an empty string.
zsession.update©Útyper¢   rp  N©r®   rÖ   r   r0   r   ©r=   r¢   rp  s      r>   ÚupdateÚRealtimeSessionResource.updateZ  s1   € ð 	×Ñ×ÑÜÜ(ÜÐ)9ÀgÑ dÓeóõ	
rA   r[   N©r¢   z"session_update_event_param.Sessionrp  ústr | NotGivenr\   r‚   ©r_   r`   ra   rb   r   rw  rc   r[   rA   r>   r>  r>  Y  s   † Ø`i÷ 
ò 
rA   r>  c                  óF   • \ rS rSr\\S.     SS jjr\\S.S	S jjrSrg)
r?  io  ©rp  r¤   c               ón   • U R                   R                  [        [        [	        SXS.5      5      5        g©a±  
This event instructs the server to create a Response, which means triggering
model inference. When in Server VAD mode, the server will create Responses
automatically.

A Response will include at least one Item, and may have two, in which case
the second will be a function call. These Items will be appended to the
conversation history.

The server will respond with a `response.created` event, events for Items
and content created, and finally a `response.done` event to indicate the
Response is complete.

The `response.create` event includes inference configuration like
`instructions`, and `temperature`. These fields will override the Session's
configuration for this Response only.
zresponse.create)rt  rp  r¤   Nru  ©r=   rp  r¤   s      r>   ÚcreateÚRealtimeResponseResource.createp  s1   € ð. 	×Ñ×ÑÜÜ(ÜÐ):ÈÑ gÓhóõ	
rA   ©rp  Úresponse_idc               ón   • U R                   R                  [        [        [	        SXS.5      5      5        g©záSend this event to cancel an in-progress response.

The server will respond
with a `response.done` event with a status of `response.status=cancelled`. If
there is no response to cancel, the server will respond with an error.
zresponse.cancel)rt  rp  r„  Nru  ©r=   rp  r„  s      r>   ÚcancelÚRealtimeResponseResource.cancelŽ  s1   € ð 	×Ñ×ÑÜÜ(ÜÐ):ÈÑ mÓnóõ	
rA   r[   N©rp  rz  r¤   z/response_create_event_param.Response | NotGivenr\   r‚   ©rp  rz  r„  rz  r\   r‚   ©r_   r`   ra   rb   r   r�  rˆ  rc   r[   rA   r>   r?  r?  o  s@   † ð $-ØDMñ	
ð !ð
ð Bð	
ð
 
õ
ð< 4=Ð\e÷ 
ò 
rA   r?  c                  óJ   • \ rS rSr\S.SS jjr\S.SS jjr\S.S	S jjrSrg)
r@  i�  ro  c          
     ón   • U R                   R                  [        [        [	        SUS.5      5      5        g©z}Send this event to clear the audio bytes in the buffer.

The server will
respond with an `input_audio_buffer.cleared` event.
zinput_audio_buffer.clear©rt  rp  Nru  ©r=   rp  s     r>   ÚclearÚ&RealtimeInputAudioBufferResource.clearž  s/   € ð 	×Ñ×ÑÜÔ)¬?ÐD^ÐltÑ;uÓ+vÓwõ	
rA   c          
     ón   • U R                   R                  [        [        [	        SUS.5      5      5        g©a"  
Send this event to commit the user input audio buffer, which will create a
new user message item in the conversation. This event will produce an error
if the input audio buffer is empty. When in Server VAD mode, the client does
not need to send this event, the server will commit the audio buffer
automatically.

Committing the input audio buffer will trigger input audio transcription
(if enabled in session configuration), but it will not create a response
from the model. The server will respond with an `input_audio_buffer.committed`
event.
zinput_audio_buffer.commitr�  Nru  r‘  s     r>   ÚcommitÚ'RealtimeInputAudioBufferResource.commit¨  s/   € ð 	×Ñ×ÑÜÔ)¬?ÐD_ÐmuÑ;vÓ+wÓxõ	
rA   c               ón   • U R                   R                  [        [        [	        SXS.5      5      5        g©aS  Send this event to append audio bytes to the input audio buffer.

The audio
buffer is temporary storage you can write to and later commit. In Server VAD
mode, the audio buffer is used to detect speech and the server will decide
when to commit. When Server VAD is disabled, you must commit the audio buffer
manually.

The client may choose how much audio to place in each event up to a maximum
of 15 MiB, for example streaming smaller chunks from the client may allow the
VAD to be more responsive. Unlike made other client events, the server will
not send a confirmation response to this event.
zinput_audio_buffer.append)rt  Úaudiorp  Nru  ©r=   rš  rp  s      r>   ÚappendÚ'RealtimeInputAudioBufferResource.append¹  s1   € ð 	×Ñ×ÑÜÜ(ÜÐ)DÈuÑ kÓlóõ	
rA   r[   N©rp  rz  r\   r‚   ©rš  r]   rp  rz  r\   r‚   ©	r_   r`   ra   rb   r   r’  r–  rœ  rc   r[   rA   r>   r@  r@  �  s%   † Ø2;÷ 
ð 4=÷ 
ð" @I÷ 
ò 
rA   r@  c                  ó(   • \ rS rSr\SS j5       rSrg)rA  iÏ  c                ó,   • [        U R                  5      $ r:   )Ú RealtimeConversationItemResourcer®   r<   s    r>   ÚitemÚ!RealtimeConversationResource.itemÐ  s   € ä/°×0@Ñ0@ÓAÐArA   r[   N)r\   r£  ©r_   r`   ra   rb   r   r¤  rc   r[   rA   r>   rA  rA  Ï  s   † ØóBó óBrA   rA  c                  ó~   • \ rS rSr\S.S
S jjr\\S.       SS jjr\S.         SS jjr\S.S
S jjrSr	g	)r£  iÕ  ro  c               ón   • U R                   R                  [        [        [	        SXS.5      5      5        g©a  Send this event when you want to remove any item from the conversation
history.

The server will respond with a `conversation.item.deleted` event,
unless the item does not exist in the conversation history, in which case the
server will respond with an error.
zconversation.item.delete©rt  Úitem_idrp  Nru  ©r=   r«  rp  s      r>   ÚdeleteÚ'RealtimeConversationItemResource.deleteÖ  s2   € ð 	×Ñ×ÑÜÜ(ÜÐ)CÐPWÑ nÓoóõ	
rA   ©rp  Úprevious_item_idc               ór   • U R                   R                  [        [        [	        SUUUS.5      5      5        g©a¥  
Add a new Item to the Conversation's context, including messages, function
calls, and function call responses. This event can be used both to populate a
"history" of the conversation and to add new items mid-stream, but has the
current limitation that it cannot populate assistant audio messages.

If successful, the server will respond with a `conversation.item.created`
event, otherwise an `error` event will be sent.
zconversation.item.create)rt  r¤  rp  r°  Nru  ©r=   r¤  rp  r°  s       r>   r�  Ú'RealtimeConversationItemResource.createå  s<   € ð  	×Ñ×ÑÜÜ(Üà :Ø $Ø$,Ø,<ñ	óó
õ	
rA   c               ót   • U R                   R                  [        [        [	        SUUUUS.5      5      5        g©u4  Send this event to truncate a previous assistant messageâ€™s audio.

The server
will produce audio faster than realtime, so this event is useful when the user
interrupts to truncate audio that has already been sent to the client but not
yet played. This will synchronize the server's understanding of the audio with
the client's playback.

Truncating audio will delete the server-side text transcript to ensure there
is not text in the context that hasn't been heard by the user.

If successful, the server will respond with a `conversation.item.truncated`
event.
zconversation.item.truncate)rt  Úaudio_end_msÚcontent_indexr«  rp  Nru  ©r=   r·  r¸  r«  rp  s        r>   ÚtruncateÚ)RealtimeConversationItemResource.truncate  s?   € ð" 	×Ñ×ÑÜÜ(Üà <Ø(4Ø)6Ø#*Ø$,ñóóõ	
rA   c               ón   • U R                   R                  [        [        [	        SXS.5      5      5        g©a�  
Send this event when you want to retrieve the server's representation of a specific item in the conversation history. This is useful, for example, to inspect user audio after noise cancellation and VAD.
The server will respond with a `conversation.item.retrieved` event,
unless the item does not exist in the conversation history, in which case the
server will respond with an error.
zconversation.item.retrieverª  Nru  r¬  s      r>   ÚretrieveÚ)RealtimeConversationItemResource.retrieve#  s2   € ð 	×Ñ×ÑÜÜ(ÜÐ)EÐRYÑ pÓqóõ	
rA   r[   N©r«  r]   rp  rz  r\   r‚   ©r¤  r/   rp  rz  r°  rz  r\   r‚   ©
r·  rõ   r¸  rõ   r«  r]   rp  rz  r\   r‚   ©
r_   r`   ra   rb   r   r­  r�  rº  r¾  rc   r[   rA   r>   r£  r£  Õ  s…   † ØAJ÷ 
ð& $-Ø+4ñ
ð $ð
ð !ð	
ð
 )ð
ð 
õ
ð> bkñ
Ø"ð
Ø36ð
ØADð
ØP^ð
à	õ
ð@ DM÷ 
ò 
rA   r£  c                  ó&   • \ rS rSr\S.SS jjrSrg)rB  i2  ro  c          
     ón   • U R                   R                  [        [        [	        SUS.5      5      5        g©a‘  **WebRTC Only:** Emit to cut off the current audio response.

This will trigger the server to
stop generating audio and emit a `output_audio_buffer.cleared` event. This
event should be preceded by a `response.cancel` client event to stop the
generation of the current response.
[Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
zoutput_audio_buffer.clearr�  Nru  r‘  s     r>   r’  Ú'RealtimeOutputAudioBufferResource.clear3  s/   € ð 	×Ñ×ÑÜÔ)¬?ÐD_ÐmuÑ;vÓ+wÓxõ	
rA   r[   Nrž  ©r_   r`   ra   rb   r   r’  rc   r[   rA   r>   rB  rB  2  s   † Ø2;÷ 
ò 
rA   rB  c                  ó0   • \ rS rSr\S.     SS jjrSrg)rC  iA  ro  c               ón   • U R                   R                  [        [        [	        SXS.5      5      5        g©z2Send this event to update a transcription session.ztranscription_session.updaters  Nru  rv  s      r>   rw  Ú+RealtimeTranscriptionSessionResource.updateB  s2   € ð 	×Ñ×ÑÜÜ(ÜÐ)GÐT[Ñ rÓsóõ	
rA   r[   N©r¢   z*transcription_session_update_param.Sessionrp  rz  r\   r‚   r{  r[   rA   r>   rC  rC  A  ó'   † àajñ	
ØDð	
ØP^ð	
à	÷	
ð 	
rA   rC  c                  ó   • \ rS rSrSS jrSrg)Ú#BaseAsyncRealtimeConnectionResourceiN  c                ó   • Xl         g r:   ri  r°   s     r>   rz   Ú,BaseAsyncRealtimeConnectionResource.__init__O  rk  rA   ri  N)r±   rž   r\   r‚   rl  r[   rA   r>   rÐ  rÐ  N  rm  rA   rÐ  c                  ó0   • \ rS rSr\S.     SS jjrSrg)r¡   iS  ro  c             ƒ  óŠ   #   • U R                   R                  [        [        [	        SXS.5      5      5      I Sh  v•N   g N7frr  ru  rv  s      r>   rw  Ú#AsyncRealtimeSessionResource.updateT  s>   é € ð ×Ñ×#Ñ#ÜÜ(ÜÐ)9ÀgÑ dÓeóó
÷ 	
ó 	
ùó   ‚9A»A¼Ar[   Nry  r{  r[   rA   r>   r¡   r¡   S  s'   † àYbñ
Ø<ð
ØHVð
à	÷
ð 
rA   r¡   c                  óF   • \ rS rSr\\S.     SS jjr\\S.S	S jjrSrg)
r£   ik  r}  c             ƒ  óŠ   #   • U R                   R                  [        [        [	        SXS.5      5      5      I Sh  v•N   g N7fr  ru  r€  s      r>   r�  Ú$AsyncRealtimeResponseResource.createl  s>   é € ð. ×Ñ×#Ñ#ÜÜ(ÜÐ):ÈÑ gÓhóó
÷ 	
ó 	
ùrÖ  rƒ  c             ƒ  óŠ   #   • U R                   R                  [        [        [	        SXS.5      5      5      I Sh  v•N   g N7fr†  ru  r‡  s      r>   rˆ  Ú$AsyncRealtimeResponseResource.cancelŠ  s>   é € ð ×Ñ×#Ñ#ÜÜ(ÜÐ):ÈÑ mÓnóó
÷ 	
ó 	
ùrÖ  r[   NrŠ  r‹  rŒ  r[   rA   r>   r£   r£   k  sA   † ð $-ØDMñ	
ð !ð
ð Bð	
ð
 
õ
ð< :CÐbk÷ 
ò 
rA   r£   c                  óJ   • \ rS rSr\S.SS jjr\S.SS jjr\S.S	S jjrSrg)
r¥   i™  ro  c          
   ƒ  óŠ   #   • U R                   R                  [        [        [	        SUS.5      5      5      I Sh  v•N   g N7fr�  ru  r‘  s     r>   r’  Ú+AsyncRealtimeInputAudioBufferResource.clearš  s<   é € ð ×Ñ×#Ñ#ÜÔ)¬?ÐD^ÐltÑ;uÓ+vÓwó
÷ 	
ó 	
ùrÖ  c          
   ƒ  óŠ   #   • U R                   R                  [        [        [	        SUS.5      5      5      I Sh  v•N   g N7fr•  ru  r‘  s     r>   r–  Ú,AsyncRealtimeInputAudioBufferResource.commit¤  s<   é € ð ×Ñ×#Ñ#ÜÔ)¬?ÐD_ÐmuÑ;vÓ+wÓxó
÷ 	
ó 	
ùrÖ  c             ƒ  óŠ   #   • U R                   R                  [        [        [	        SXS.5      5      5      I Sh  v•N   g N7fr™  ru  r›  s      r>   rœ  Ú,AsyncRealtimeInputAudioBufferResource.appendµ  s>   é € ð ×Ñ×#Ñ#ÜÜ(ÜÐ)DÈuÑ kÓlóó
÷ 	
ó 	
ùrÖ  r[   Nrž  rŸ  r   r[   rA   r>   r¥   r¥   ™  s&   † Ø8A÷ 
ð :C÷ 
ð" FO÷ 
ò 
rA   r¥   c                  ó(   • \ rS rSr\SS j5       rSrg)r§   iË  c                ó,   • [        U R                  5      $ r:   )Ú%AsyncRealtimeConversationItemResourcer®   r<   s    r>   r¤  Ú&AsyncRealtimeConversationResource.itemÌ  s   € ä4°T×5EÑ5EÓFÐFrA   r[   N)r\   rå  r¦  r[   rA   r>   r§   r§   Ë  s   † ØóGó óGrA   r§   c                  ó~   • \ rS rSr\S.S
S jjr\\S.       SS jjr\S.         SS jjr\S.S
S jjrSr	g	)rå  iÑ  ro  c             ƒ  óŠ   #   • U R                   R                  [        [        [	        SXS.5      5      5      I Sh  v•N   g N7fr©  ru  r¬  s      r>   r­  Ú,AsyncRealtimeConversationItemResource.deleteÒ  s?   é € ð ×Ñ×#Ñ#ÜÜ(ÜÐ)CÐPWÑ nÓoóó
÷ 	
ó 	
ùrÖ  r¯  c             ƒ  óŽ   #   • U R                   R                  [        [        [	        SUUUS.5      5      5      I Sh  v•N   g N7fr²  ru  r³  s       r>   r�  Ú,AsyncRealtimeConversationItemResource.createá  sI   é € ð  ×Ñ×#Ñ#ÜÜ(Üà :Ø $Ø$,Ø,<ñ	óó
ó
÷ 	
ó 	
ùs   ‚;A½A¾Ac             ƒ  ó�   #   • U R                   R                  [        [        [	        SUUUUS.5      5      5      I Sh  v•N   g N7fr¶  ru  r¹  s        r>   rº  Ú.AsyncRealtimeConversationItemResource.truncateÿ  sL   é € ð" ×Ñ×#Ñ#ÜÜ(Üà <Ø(4Ø)6Ø#*Ø$,ñóóó
÷ 	
ó 	
ùs   ‚<A¾A¿Ac             ƒ  óŠ   #   • U R                   R                  [        [        [	        SXS.5      5      5      I Sh  v•N   g N7fr½  ru  r¬  s      r>   r¾  Ú.AsyncRealtimeConversationItemResource.retrieve  s?   é € ð ×Ñ×#Ñ#ÜÜ(ÜÐ)EÐRYÑ pÓqóó
÷ 	
ó 	
ùrÖ  r[   NrÀ  rÁ  rÂ  rÃ  r[   rA   r>   rå  rå  Ñ  s…   † ØGP÷ 
ð& $-Ø+4ñ
ð $ð
ð !ð	
ð
 )ð
ð 
õ
ð> bkñ
Ø"ð
Ø36ð
ØADð
ØP^ð
à	õ
ð@ JS÷ 
ò 
rA   rå  c                  ó&   • \ rS rSr\S.SS jjrSrg)r©   i.  ro  c          
   ƒ  óŠ   #   • U R                   R                  [        [        [	        SUS.5      5      5      I Sh  v•N   g N7frÆ  ru  r‘  s     r>   r’  Ú,AsyncRealtimeOutputAudioBufferResource.clear/  s<   é € ð ×Ñ×#Ñ#ÜÔ)¬?ÐD_ÐmuÑ;vÓ+wÓxó
÷ 	
ó 	
ùrÖ  r[   Nrž  rÈ  r[   rA   r>   r©   r©   .  s   † Ø8A÷ 
ò 
rA   r©   c                  ó0   • \ rS rSr\S.     SS jjrSrg)r«   i=  ro  c             ƒ  óŠ   #   • U R                   R                  [        [        [	        SXS.5      5      5      I Sh  v•N   g N7frË  ru  rv  s      r>   rw  Ú0AsyncRealtimeTranscriptionSessionResource.update>  s?   é € ð ×Ñ×#Ñ#ÜÜ(ÜÐ)GÐT[Ñ rÓsóó
÷ 	
ó 	
ùrÖ  r[   NrÍ  r{  r[   rA   r>   r«   r«   =  rÎ  rA   r«   )kÚ
__future__r   rÔ   ÚloggingÚtypesr   Útypingr   r   r   r   Útyping_extensionsr	   Úhttpx2Úpydanticr
   r?   r   r   r   r   r   r   Ú_typesr   r   r   r   Ú_utilsr   r   r   r   r   Ú_compatr   Ú_httpx2r   Ú_modelsr   Ú	_resourcer   r    Ú_exceptionsr!   Ú_base_clientr"   Útypes.beta.realtimer#   r$   r%   rC   r&   r'   r(   r)   r*   r+   Ú"types.websocket_connection_optionsr,   Ú)types.beta.realtime.realtime_client_eventr-   Ú)types.beta.realtime.realtime_server_eventr.   Ú+types.beta.realtime.conversation_item_paramr/   Ú/types.beta.realtime.realtime_client_event_paramr0   r^  r1   rD  Úwebsockets.asyncio.clientr­   r;   r2   r3   Ú__all__Ú	getLoggerr_   r6   rø   r4   r5   rG   rk   rL   rn   rž   rq   r=  rW   rg  r>  r?  r@  rA  r£  rB  rC  rÐ  r¡   r£   r¥   r§   rå  r©   r«   r[   rA   r>   Ú<module>r     sø  ðÞ "ã Û Ý ß 5Ó 5Ý +ã Ý ÷÷ ÷ ;Ó :÷õ õ (Ý +Ý 0ß ;Ý 'Ý ,÷ñ ÷
÷ õ NÝ MÝ MÝ QÝ XæÝNÝVç/à�Ð
'€à×'Ò'¨Ó1€€^Ó 1ô5
ˆô 5
ôp5
Ð$ô 5
÷p
[ñ 
[÷
`ñ 
`÷
añ 
a÷
fñ 
f÷J
ñ J
÷Zi,ñ i,÷XJ
ñ J
÷Zg&ñ g&÷T&ñ &ô

Ð<ô 
ô,+
Ð=ô +
ô\/
Ð'Eô /
ôdBÐ#Aô BôZ
Ð'Eô Z
ôz
Ð(Fô 
ô

Ð+Iô 

÷&ñ &ô

Ð#Fô 
ô0+
Ð$Gô +
ô\/
Ð,Oô /
ôdGÐ(Kô GôZ
Ð,Oô Z
ôz
Ð-Pô 
ô

Ð0Sõ 

rA   