
    MgW                         S SK Jr  S SKJrJrJrJrJrJr  \" S5      S 5       r\" S5      S 5       r	\" S5      S 5       r
\" S	5      S
 5       r\" S5      S 5       r\" \\/S9\" S5      S 5       5       r\" \\/S9\" S5      S 5       5       rg)    )Fore)LINUXUNIXMACOSWINDOWSpluginrequirezenable soundc                    U R                  5       U l        U R                  [        R                  S-   S-   [        R
                  -   S-   5        U R                  [        R                  S-   S-   [        R
                  -   S-   5        g)zLet Jarvis use his voice.z<Jarvis uses Googles speech engine.
Do you consent with data z4collection when Jarvis talks out loud? If yes, type:z gttsz;If not, Jarvis will talk using the built-in speech engine. z$ If you wish to disable GTTS, type: disable gttsN)enable_voicespeechsayr   BLUEREDjarvisss     ;/Users/admin/workspace/ai/Jarvis/jarviscli/plugins/voice.pyenable_soundr      s     '')FM
JJtyyZZGHJN((SU\] ^
JJtyyXX78:>((CEST U    zdisable soundc                 $    U R                  5         g)zDeny Jarvis his voice.N)disable_voicer   s     r   disable_soundr      s     r   r   c                     U(       d  U R                  S5        gU R                  5       nU R                  5         U R                  U5        U(       d  U R                  5         gg)zReads what is typed.zWhat should I say?N)r   is_voice_enabledr   r   r   r   voice_states      r   r   r      sM     

'(--/

1  " r   r   c                     U R                   nU R                  5         U R                  5       U l        U(       d  U R	                  5         gg)z'Reads what is typed without using gtts.N)r   disable_gttsr   r   r   r   s      r   r   r   "   s?     ))K
'')FM r   gttsc                 l    U R                   nU R                  5         U(       d  U R                  5         gg)zReads what is typed using gtts.N)r   enable_gttsr   r   s      r   r    r    -   s/     ))K
 r   )platformztalk fasterc                     U R                  5       (       a  U R                  S5        gU R                  S[        R                  5        g)z,Make Jarvis' speech engine talk faster.
    (   5Type 'enable sound' to allow Jarvis to talk out loud.Nr   change_speech_rater   r   r   r   s     r   talk_fasterr)   7   s7    
   !!"%

J99	r   ztalk slowerc                     U R                  5       (       a  U R                  S5        gU R                  S[        R                  5        g)z,Make Jarvis' speech engine talk slower.
    ir&   Nr'   r   s     r   talk_slowerr+   C   s7    
   !!#&

J99	r   N)coloramar   r   r   r   r   r   r	   r   r   r   r   r    r)   r+    r   r   <module>r.      s     ? ? U U  
 	# 	#     	5'"#  $ 	5'"#  $r   