+
   P(<5Vc                   s   ^ RI t ^ RIt^ RIt^ RIt^ RIt ^ RIt^RIH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 R]4      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 R]	4      t ! R R ]	4      t ! R! R"]4      t ! R# R$]4      t ! R% R&]	4      tR#    ^ RIt L; i)'    N)pathsc                   s8    ] tR t^$tRt Rt Rt Rt Rt Rt	Rt
R# )	CallbackTypeZindex_marksZbeginZendcancelpauseresume N)__name__
__module____qualname____firstlineno__
INDEX_MARKBEGINENDCANCELPAUSERESUME__static_attributes__r       5/usr/lib64/python3.14/site-packages/speechd/client.pyr   r   $   sB    J E&
C;F E4F)r   r   c                   s    ] tR t^;tRtR# )	SSIPErrorr   Nr   r   r	   r
   r   r   r   r   r   r   ;       r   r   c                   sX   a a ] tR t^>t oRtR	V 3R lltR tR tR tR t	R t
RtVtV ;t# )
SSIPCommunicationErrorNc                sH   < W n         Wn        \        \        V `  ! R/ VB  R # )Nr   )_original_exception_descriptionsuperr   __init__)selfdescriptionoriginal_exceptionkwargs	__class__   &&&,r   r   ZSSIPCommunicationError.__init__C   s!    #5 'i'1&1r   c                    V P                   # N)r   r      &r   r   Z)SSIPCommunicationError.original_exceptionH   s     '''r   c                    Wn         R # r#   _additional_exception)r   Z	exception   &&r   set_additional_exceptionZ/SSIPCommunicationError.set_additional_exceptionP   s
    
 &/"r   c                r"   r#   r'   r$   r%   r   additional_exceptionZ+SSIPCommunicationError.additional_exceptionW   s    
 )))r   c                r"   r#   )r   r$   r%   r   r   Z"SSIPCommunicationError.description^   s       r   c                s   . pV P                  4       '       d    VP                  V P                  4       4       V P                  '       d0   VP                  R \        V P                  4       4      ,           4       V P                  '       d0   VP                  R\        V P	                  4       4      ,           4       RP                  V4      # )zOriginal error: zAdditional error: Z
)r   appendr   strr+   join)r   Zmsgs   & r   __str__ZSSIPCommunicationError.__str__b   s    KK((*+"""KK*S1H1H1J-KKL$$$KK,s43L3L3N/OOPyyr   )r(   r   r   NN)r   r   r	   r
   r(   r   r   r*   r+   r   r0   r   __classdictcell____classcell__r    __classdict__   @@r   r   r   >   s0      !2
(/*! r   r   c                   s2   a  ] tR t^lt o R tR tR tRtV tR# )SSIPResponseErrorc                sb    \         P                  W: R V: 24       Wn        W n        W0n        R# )z: N)	Exceptionr   _code_msg_datar   codemsgdata   &&&&r   r   ZSSIPResponseError.__init__m   s&    4T3!78
	
r   c                r"   r#   )r9   r$   r%   r   r=   ZSSIPResponseError.codes       zzr   c                r"   r#   )r:   r$   r%   r   r>   ZSSIPResponseError.msgw   s    yyr   )r9   r;   r:   N)	r   r   r	   r
   r   r=   r>   r   r2   r5      @r   r7   r7   l   s      r   r7   c                   s&   a  ] tR t^|t o R tRtV tR# )SSIPCommandErrorc                r"   r#   r;   r$   r%   r   commandZSSIPCommandError.command   rA   r   r   N)r   r   r	   r
   rF   r   r2   rB   rC   r   rD   rD   |         r   rD   c                   s&   a  ] tR t^t o R tRtV tR# )SSIPDataErrorc                r"   r#   rE   r$   r%   r   r?   ZSSIPDataError.data   rA   r   r   N)r   r   r	   r
   r?   r   r2   rB   rC   r   rH   rH      rG   r   rH   c                   s    ] tR t^tRtR# )
SpawnErrorr   Nr   r   r   r   rI   rI      r   r   rI   c                   s     ] tR t^tRt RtRtR# )CommunicationMethodunix_socketinet_socketr   Nr   r   r	   r
   UNIX_SOCKETINET_SOCKETr   r   r   r   rJ   rJ      s    K;K9r   rJ   c                   sZ  a  ] tR t^t o RtRtRt]],           ],           t]],           ],           t]],           t	]],           t
R]P                  R]P                  R]P                  R]P                  R]P                   R	]P"                  /tR
 tR tR tR tR tR tR tR tR tRtV tR# )_SSIP_Connections   
s   .s   ..i  i  i  i  i  i  c                s   V\         P                  8X  d   \        P                  pTpMIV\         P                  8X  d*   \        P
                  p\        P                  ! V4      V3pM\        R 4      h \        P                  ! V\        P                  4      V n	        V P                  P                  V4       RT n        . T n        RT n        \         P"                  ! ^ 4      T n        \         P&                  ! T P(                  / RRR7      T n        T P*                  P-                  4        R#   \        P                   d   p\        RT,           TR7      hRp?ii ; i)z Unsupported communication methodzCan't open socket using method )r   Nr   z SSIP client communication threadT)Ztargetr   nameZdaemon)rJ   rN   socketZAF_UNIXrO   ZAF_INETZgethostbyname
ValueErrorZSOCK_STREAM_socketZconnecterrorr   _buffer_com_buffer	_callback	threadingZ	Semaphore_ssip_reply_semaphoreZThread_communication_communication_threadZstart)r   communication_methodsocket_pathhostportZsocket_familyZsocket_connect_argsZexs   &&&&&   r   r   Z_SSIP_Connection.__init__   s(     #6#B#BB"NNM"-!%8%D%DD"NNM#)#7#7#=t"D?@@	B!==8J8JKDLLL  !45 %.%8%8%;"  (;(;B&H(,. 	" 	""((* || 	B()J+?*@>@B B	Bs   3AD- -EEEc                s     V P                   P                  \        P                  4       V P                   P                  4        V P                  P                  4        R #   \        P                   d     LMi ; ir#   )rT   ZshutdownrR   Z	SHUT_RDWRrU   closer\   r.   r$   r%   r   ra   Z_SSIP_Connection.close   s[    	LL!!&"2"23 	""'')	 || 		s   )A! !A98A9c                s     V P                  4       w  rpT^d,          ^8w  d:   T P                  P                  YT34       T P                  P                  4        K\  T P                  f   Kl  T P                  T,          pT\        P                  8X  d   RT^,          /pM/ p\        \        TR,          4      w  rgT P                  ! YgT3/ TB  K    \         d     R# i ; i)TNZ
index_mark:Ni   N)_recv_messageIOErrorrW   r,   rZ   releaserX   _CALLBACK_TYPE_MAPr   r   mapint)r   r=   r>   r?   typer   msg_id	client_id   &       r   r[   Z_SSIP_Connection._communication   s     "&"4"4"64 SyA~  ''D(9:**224~~)..t4<222*DG4FF$'T"X$6!v$A&A#  s   C C! C!c                s   V P                   P                  V P                  4      pVR8X  ds    V P                  P	                  R4      p\        T4      ^ 8X  d   \
        hT ;P                   T,          un         T P                   P                  T P                  4      pKy  V P                   RV pV P                   V\        V P                  4      ,           R V n         VP                  R4      #    \
        h; i)i   i   Nutf-8i)rV   Zfind_NEWLINErT   Zrecvrc   lenZdecode)r   ZpointerZdline   &   r   	_readlineZ_SSIP_Connection._readline   s     ,,##DMM2mLL%%d+ 1v{LLALll''6G||HW%||GC,>$>$?@{{7##s   C- -C5c                s    . pR p V P                  4       pVR,          V^,          VR,          repVR8X  d   Tp\        V4      V\        V4      3# TpVP                  V4       K`  )N:Ni   N:i   NN )rq   rg   tupler,   )r   r?   Zcro   r=   Zseptextr>   rk   r   rb   Z_SSIP_Connection._recv_message  sh     >>#D"2hQbtD cz4y#uT{22AKKr   c                s    V P                   P                  4       '       g   \        hV P                  P	                  4        V P
                  ^ ,          pV P
                  ^  V# )r    )r\   Zis_aliver   rZ   acquirerW   )r   Zresponser/   r   _recv_responseZ_SSIP_Connection._recv_response!  sT    
 ))2244((""**,##A&Qr   c           	     s    RP                  T3\        \        \        T4      4      ,           4      p T P                  P                  TP                  R4      T P                  ,           4       T P                  4       w  rEpT^d,          ^8w  d   \        YET4      hYET3#   \        P                   d    \        R4      hi ; i)Frr   rl   "Speech Dispatcher connection lost.)r.   rs   rf   r-   rT   sendencoderm   rR   rU   r   rv   rD   )r   rF   Zargscmdr=   r>   r?   s   &&*    r   send_commandZ_SSIP_Connection.send_command.  s    "  hhzE#c4.$99:	OLLcjj1DMMAB --/49>"4c22$ || 	O()MNN	Os   ;B !C c                s   VP                  R 4      pVP                  V P                  4      '       d+   \        V P                  4      pV P                  WR ,           pVP                  V P                  V P                  4      p V P                  P                  WP                  ,           4       T P                  4       w  r4pT^d,          ^8w  d   \        Y4T4      hY4T3#   \        P                   d    \        R4      hi ; i)rl   Nrw   )ry   
startswith_END_OF_DATA_MARKERrn   _END_OF_DATA_MARKER_ESCAPEDreplace_RAW_DOTLINE_ESCAPED_DOTLINErT   rx   _END_OF_DATArR   rU   r   rv   rH   )r   r?   Zlr=   r>   Zresponse_datas   &&    r   	send_dataZ_SSIP_Connection.send_dataM  s     {{7# ??43344D,,-A33d2h>D ||D--t/D/DE	OLLd%6%667 $(#6#6#8 =9>400-'' || 	O()MNN	Os   +C   !Dc                r&   r#   )rX   )r   callbackr)   r   set_callbackZ_SSIP_Connection.set_callbackn  s	    ( "r   )rV   rX   rW   r\   rT   rZ   N)r   r   r	   r
   rm   r}   r~   r   Z_END_OF_DATA_ESCAPEDr   r   r   r   r   r   r   r   r   re   r   ra   r[   rq   rb   rv   r{   r   r   r   r2   rB   rC   r   rP   rP      s      H"'11H<L#&AAHL11L"==|66|11|//|22|11|22 +D
*!BH$(">(B" "r   rP   c                   s2   a  ] tR tRt o R tR tR tRtV tR# )_CallbackHandleri  c                sT    Wn         / V n        \        P                  ! 4       V n        R # r#   )
_client_id
_callbacksrY   ZLock_lock)r   rj   r)   r   r   Z_CallbackHandler.__init__  s    #^^%
r   c                s   W P                   8w  d   R # V P                  P                  4          V P                  V,          w  rVVe   W69   d
   V! V3/ VB  V\        P
                  \        P                  39   d   V P                  V T P                  P                  4        R #   \         d     L)i ; i  T P                  P                  4        i ; ir#   )	r   r   ru   r   r   r   r   ZKeyErrorrd   )r   ri   rj   rh   r   r   event_typess   &&&&,  r   __call__Z_CallbackHandler.__call__  s    '

	!0(,(?% &$*=T,V,L,,l.A.ABB/JJ    JJ s*   B% AB6 %B30B6 2B33B6 6Cc                s    V P                   P                  4         W#3V P                  V&   V P                   P                  4        R #   T P                   P                  4        i ; ir#   )r   ru   r   rd   )r   ri   r   r   r@   r   add_callbackZ_CallbackHandler.add_callback  sI    

	!'/&=DOOF#JJ DJJ s   A A$)r   r   r   N)	r   r   r	   r
   r   r   r   r   r2   rB   rC   r   r   r     s     &
!$! !r   r   c                        ] tR tRtRt RtRtR# )Scopei  r   allr   N)r   r   r	   r
   SELFALLr   r   r   r   r   r     s     DL
CKr   r   c                   s*    ] tR tRtRtRtRtRtRtRt	R# )	Priorityi  Z	importantrt   ZmessageZnotificationZprogressr   N)
r   r   r	   r
   Z	IMPORTANTTEXTMESSAGENOTIFICATIONZPROGRESSr   r   r   r   r   r     s     IDG!LHr   r   c                   s,    ] tR tRtRt Rt Rt RtRtR# )PunctuationModei  r   ZnoneZsomeZmostr   N)	r   r   r	   r
   r   ZNONEZSOMEZMOSTr   r   r   r   r   r     s&     C*D6DHDr   r   c                   r   )DataModei  rt   Zssmlr   N)r   r   r	   r
   r   SSMLr   r   r   r   r   r     s    
 DD:r   r   c                   s  a  ] tR tRt o Rt Rt Rt R0R ltR tR t	R	 t
R
 tR tR tR tR1R ltR tR tR t]P(                  3R lt]P(                  3R lt]P(                  3R lt]P(                  3R ltR tR1R lt]P(                  3R ltR t]P(                  3R ltR t]P(                  3R ltR t ]P(                  3R lt!]P(                  3R lt"R  t#]P(                  3R! lt$R" t%]P(                  3R# lt&R$ t']P(                  3R% lt(]P(                  3R& lt)]P(                  3R' lt*]P(                  3R( lt+]P(                  3R) lt,R* t-R+ t.R, t/R- t0R. t1R/t2V t3R# )2
SSIPClienti  z	127.0.0.1i  zspeech-dispatcher/speechd.sockNc
           
     s   \         P                  P                  R 4      p
\         P                  P	                  R\         P                  P	                  R\         P                  P                  V
R4      4      4      p\         P                  P                  WP                  4      pR\        P                  RVRV P                  RV P                  /pT;'       g     \         P                  P	                  R4      pV'       d"   VP                  V P                  V4      4       M\         P                  P	                  R	4      p \        \         P                  P	                  R
4      4      p\         P                  P	                  R4      pT'       d   YR&   T'       d   Y}R&   MT'       d   TTR&   T	'       d   YR&   MT'       d   TTR&   V P                  W4       V P                  W1V4       R#    Rp L; i)Z~ZXDG_RUNTIME_DIRZXDG_CACHE_HOMEz.cacher]   r^   r_   r`   ZSPEECHD_ADDRESSZSPEECHD_HOSTZSPEECHD_PORTNZSPEECHD_SOCKETmethod)ospathZ
expanduserZenvironZgetr.   DEFAULT_SOCKET_PATHrJ   rN   DEFAULT_HOSTDEFAULT_PORTZupdate"_connection_arguments_from_addressrg   _connect_with_autospawn_initialize_connection)r   rQ   	componentuseraddress	autospawnr_   r`   r   r^   Z_homeZ_runtime_dirZ
_sock_pathconnection_argsZ_addressZenv_speechd_hostZenv_speechd_portZenv_speechd_socket_paths   &&&&&&&&&&        r   r   ZSSIPClient.__init__  s   N ""3'zz~~&7HXZ\ZaZaZfZfglnvZw9xyWW\\,0H0HI
13F3R3R(*!4#4#4!4#4#4 ??bjjnn->?""4#J#J8#TU
  "zz~~n=(#&rzz~~n'E#F  ')jjnn5E&F# ,2)*.'!*:'1<.(1H.$$_@##D	:#(#' s   (G/ /G5c                s     \        R/ VB V n        R#   \         d]   pTR 8w  dP    T P                  T4       M&  \         d   pTP                  T4       ThRp?ii ; i\        R/ TB T n         Rp?R# h Rp?ii ; i)FNr   )rP   _connr   _server_spawnrI   r*   )r   r   r   ZceZses   &&&  r   r   Z"SSIPClient._connect_with_autospawnK  sz    	)<O<DJ% 	E!&&7! //3H .@@

	s:    A;A69A6AAAA65A66A;c                sh   V: R V: R V: 2pV P                   P                  R\        P                  RV4       V P                   P                  RRR4      w  rVp\	        V^ ,          4      V n        \        V P
                  4      V n        V P                   P                  V P                  4       \        P                  \        P                  \        P                  \        P                  \        P                  \        P                  3 F"  pV P                   P                  RRRVR4       K$  	  R	# )
:SETZCLIENT_NAMEZHISTORYGETZ	CLIENT_IDr   r   onN)r   r{   r   r   rg   r   r   _callback_handlerr   r   r   r   r   r   r   r   )	r   r   rQ   r   Z	full_namer=   r>   r?   Zevents	   &&&&     r   r   Z!SSIPClient._initialize_connection]  s    "&i8	

uzz=)L**11)UKP4d1g,!1$//!B

 6 67"--"(("&&"))"(("))+E JJ##E6>5$O+r   c                s   / pVP                  R 4      p V^ ,          pYBR&   T\        P                  8X  d    T^,          TR&   T# T\        P
                  8X  d%    T^,          TR&   \        T^,          4      TR&   T# \        R4      h   \        R4      h; i  \         d     T# i ; i  \         d    \        R4      h\         d     T# i ; i)r   zWrong format of server addressr]   r^   r_   r`   z<Third parameter of inet_socket address must be a port numberz(Unknown communication method in address.)splitr   rJ   rN   Z
IndexErrorrO   rg   rS   )r   r   r   Zaddress_paramsZ_methods   &&   r   r   Z-SSIPClient._connection_arguments_from_addressm  s     s+	K$Q'G 3:./)5551?1B.  +777*8*;'*-nQ.?*@'  ))STT#	K()IJJ
     m,-kll  	s4   	B
 B !B, 
BB)(B),CCCc                s&    V P                  4        R # r#   )ra   r$   r%   r   __del__ZSSIPClient.__del__  s    

r   c                s   VR ,          R8X  d   \         P                  ! VR,          VR,          4      pV Uu. uF  q3^,          ^ ,          NK  	  ppRpV F)  pVP                  R4      '       g
   VR8X  g   K#  WaR&   RpK+  	  V'       g%   \        RVR,          : R	\	        V4      : R
24      h\
        P                  ! R4      pV'       g   \        P                  p\
        P                  P                  V4      '       d   . pVP                  4        F9  w  rV	R9  g   K  VRV	P                  RR4      ,           \	        V
4      .,          pK;  	  \        P                  ! VR.V,           R\        P                  \        P                  R7      pVP!                  4       w  rVP#                  4       pV^ 8w  d   \        RV: 24      hVP$                  # \        RV,          4      hu upi )r]   rL   r_   r`   Fz127.z::1Tz@Can't start server automatically (autospawn), requested address z resolves on zj which seems to be a remote host. You must start the server manually or choose another connection address.ZSPEECHD_CMDz--Z_Z-z--spawnN)ZstdinZstdoutZstderrz2Server refused to autospawn, stating this reason: z-Can't find Speech Dispatcher spawn command %s)r_   )rR   Zgetaddrinfor|   rI   r-   r   Zgetenvr   ZSPD_SPAWN_CMDr   ZexistsZitemsr   
subprocessZPopenZPIPEZcommunicateZwaitZpid)r   r   Z	addrinfosZaddrinfoZip_addressesZ	localhostZiprz   Zconnection_paramsZparamvalueZserverZstdout_replyZstderr_replyZretcodes   &&             r   r   ZSSIPClient._server_spawn  s    12mC**?6+B+:6+BDI <EE9xQKNN9LEI"==((B%K.0F+"I #  ! P__eOfOfORS_O`cd d
 ii&%%C77>># " / 5 5 7	)%$u}}S/E*Es5z)RR% !8  %%sI&67H&H,0Q[Q`Q`bF)/););)=&LkkmG!| [g!ijj::L,/1 2 2? Fs   G&c                ^    V P                   P                  R \        P                  RV4       R# )r   ZPRIORITYN)r   r{   r   r   )r   priorityr)   r   set_priorityZSSIPClient.set_priority  s      	

uzz:xHr   c                s    V\         P                  8X  d   R pM*V\         P                  8X  d   RpM\        RV,          4      hV P                  P                  R\        P                  RV4       R# )r   offz?Value "%s" is not one of the constants from the DataMode class.r   Z	SSML_MODEN)r   r   r   rS   r   r{   r   r   )r   r   ssip_val   && r   set_data_modeZSSIPClient.set_data_mode  s\     HMM!Hhmm#HQ  	

uzz;Ir   c                s    V P                   P                  R 4       V P                   P                  V4      pV'       d6   \        V^,          ^ ,          4      pV P                  P                  WRV4       V# )ZSPEAK)r   r{   r   rg   r   r   )r   rt   r   r   Zresultri   s   &&&&  r   speakZSSIPClient.speak  s\    : 	

(%%d+1&F ""//+Nr   c                s^    V P                   P                  R VP                  RR4      4       R# )ZCHARrr   ZspaceN)r   r{   r   )r   charr)   r   r   ZSSIPClient.char  s#     	

S'(BCr   c                >    V P                   P                  R V4       R# )ZKEYNr   r{   )r   keyr)   r   r   ZSSIPClient.key	  s     	

s+r   c                r   )Z
SOUND_ICONNr   )r   
sound_iconr)   r   r   ZSSIPClient.sound_icon  s     	

j9r   c                r   )r   Nr   r   scoper)   r   r   ZSSIPClient.cancel!  s     	

%0r   c                r   )ZSTOPNr   r   r)   r   stopZSSIPClient.stop+  s     	

.r   c                r   )r   Nr   r   r)   r   r   ZSSIPClient.pause4  s     	

/r   c                r   )r   Nr   r   r)   r   r   ZSSIPClient.resumeA  s     	

%0r   c                sD    V P                   P                  R R4      w  rpV# )LISTZOUTPUT_MODULESr   r<   rp   r   list_output_modulesZSSIPClient.list_output_modulesN  s"    **11&:JK4r   c                s     R R.pV'       d+   VP                  V4       V'       d   VP                  V4       V P                  P                  ! V!  w  rEpR p\	        T Uu. uF
  q! T4      NK  	  up4      #   \         d    Ru # i ; iu upi )r   ZSYNTHESIS_VOICESc                 sn    \        V P                  R ^4      4      w  rpY;'       g    RT;'       g    R3# )Z	N)rs   Zrsplit)itemrQ   Zlangvariantrp   r   r   Z/SSIPClient.list_synthesis_voices.<locals>.splith  s3    "'D!(<"=D,,$488r   r   )r,   r   r{   rD   rs   )	r   languager   rF   r=   r>   r?   r   r   s	   &&&      r   list_synthesis_voicesZ SSIPClient.list_synthesis_voicesS  s    	12Gx(NN7+"jj55w?ODt	9 d3ddeDkd344   	I	
 4s!   A8 A8 .A8 !B8BBc                B    V P                   P                  R VRV4       R# )r   LANGUAGENr   )r   r   r      &&&r   set_languageZSSIPClient.set_languagem  s     	

uj(Cr   c                f    V P                   P                  R R4      w  rpV'       d
   V^ ,          # R# )r   r   Nr   r<   rp   r   get_languageZSSIPClient.get_languagex  s+    **11%D47Nr   c                r   )r   OUTPUT_MODULENr   )r   rQ   r   r   r   set_output_moduleZSSIPClient.set_output_module  s     	

uotDr   c                r   )r   r   Nr   r<   rp   r   get_output_moduleZSSIPClient.get_output_module  s+    **11%I47Nr   c                r   )r   PITCHNr   r   r   r   r   r   	set_pitchZSSIPClient.set_pitch  s     	

ugu=r   c                r   )r   r   Nr   r<   rp   r   	get_pitchZSSIPClient.get_pitch  s+    **11%A47Nr   c                r   )r   ZPITCH_RANGENr   r   r   r   set_pitch_rangeZSSIPClient.set_pitch_range  s     	

umUCr   c                r   )r   RATENr   r   r   r   set_rateZSSIPClient.set_rate  s     	

ufe<r   c                r   )r   r   Nr   r<   rp   r   get_rateZSSIPClient.get_rate  s+    **11%@47Nr   c                r   )r   VOLUMENr   r   r   r   
set_volumeZSSIPClient.set_volume  s     	

uh>r   c                r   )r   r   Nr   r<   rp   r   
get_volumeZSSIPClient.get_volume  s+    **11%B47Nr   c                r   )r   PUNCTUATIONNr   r   r   r   set_punctuationZSSIPClient.set_punctuation  s     	

umUCr   c                r   )r   r   Nr   r<   rp   r   get_punctuationZSSIPClient.get_punctuation  s+    **11%G47Nr   c                s    VR 8X  d!   V P                   P                  RVRR4       R# V P                   P                  RVRR4       R# )Tr   ZSPELLINGr   r   Nr   r   r   r   set_spellingZSSIPClient.set_spelling  s;     D=JJ##E5*dCJJ##E5*eDr   c                r   )r   ZCAP_LET_RECOGNNr   r   r   r   set_cap_let_recognZSSIPClient.set_cap_let_recogn  s     	

u.>Fr   c                r   )r   Z
VOICE_TYPENr   r   r   r   	set_voiceZSSIPClient.set_voice  s    " 	

ulEBr   c                r   )r   ZSYNTHESIS_VOICENr   r   r   r   set_synthesis_voiceZSSIPClient.set_synthesis_voice   s     	

u.?Gr   c                r   )r   ZPAUSE_CONTEXTNr   r   r   r   set_pause_contextZSSIPClient.set_pause_context*  s     	

uouEr   c                sv    VR 8X  d   RpMRpV P                   P                  R\        P                  RV4       R# )TZONZOFFr   ZDEBUGNr   r{   r   r   )r   Zvalr   r   r   	set_debugZSSIPClient.set_debug6  s1    & $;HH

uyy'8Dr   c                r   )r   ZDEBUG_DESTINATIONNr   )r   r   r)   r   set_debug_destinationZ SSIPClient.set_debug_destinationQ  s!     	

uyy2EtLr   c                >    V P                   P                  R R4       R# )BLOCKr   Nr   r$   r%   r   block_beginZSSIPClient.block_begin^  s     	

1r   c                r   )r   r   Nr   r$   r%   r   	block_endZSSIPClient.block_endf  s     	

/r   c                sf    \        V R 4      '       d   V P                  P                  4        V =R# R# )r   N)Zhasattrr   ra   r$   r%   r   ra   ZSSIPClient.closen  s)    4!!JJ
 "r   )r   r   r   )ZdefaultZunknownNNNNNNr1   )4r   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   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   ra   r   r2   rB   rC   r   r   r     s    , L.L5:7M;^$P 6*2X
IJ"%ND
,
: !:: 1  /  ** 0 !:: 1
54 ,1:: 	D -2JJ E &+ZZ > ,1:: D %*JJ = ',jj ? ,1:: 
D ).

 E  /4jj G &+ZZ C& 05zz H .3ZZ 
FE6M20 r   r   c                   s   a a ] tR tRt oRV 3R llt]P                  3R lt]P                  3V 3R llt	]P                  3V 3R llt
]P                  3V 3R lltRtVtV ;t# )	Clientiu  c                s^   < T;'       g    T;'       g    R p\         \        V `
  ! V3/ VB  R# )ZpythonN)r   r   r   )r   rQ   Zclientr   r    r!   r   r   ZClient.__init__~  s,    ))v))fd$T4V4r   c                sJ    V P                  V4       V P                  V4       R # r#   )r   r   )r   rt   r   r   r   sayZ
Client.say  s    (#

4r   c                P   < V P                  V4       \        \        V `  V4       R # r#   )r   r   r   r   )r   r   r   r       &&&r   r   ZClient.char  s     (#fd &r   c                r   r#   )r   r   r   r   )r   r   r   r    r   r   r   Z
Client.key  s     (#fd$r   c                r   r#   )r   r   r   r   )r   r   r   r    r   r   r   ZClient.sound_icon  s     (#fd&z2r   r   r1   )r   r   r	   r
   r   r   r   r   r   r   r   r   r   r2   r3   r4   r6   r   r   r   u  sI     5 "*!1!1  #+-- ' !) % /7mm 3 3r   r   c                   s    ] tR tRtRtR# )Speakeri  r   Nr   r   r   r   r   r     r   r   r   c                   r   )ConnectionMethodi  rK   rL   r   NrM   r   r   r   r   r     s      K;K9r   r   )rR   r   r   ZtimeZtempfilerY   Zdummy_threadingZ r   Zobjectr   r8   r   r   r7   rD   rH   rI   rJ   rP   r   r   r   r   r   r   r   r   r   r   r   r   <module>r      s  6 . - -( )6 ).F	 F,Y ,\	  ( % 1 1:& :l"v l"\!v !B
LF 
Lv f &;v ;S
 S
l3Z 3<j ,:v :U$('s   C( (C0