403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.216.73
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/speechd/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/speechd/__pycache__/_test.cpython-311.pyc
�

p��c����ddlZddlZddlmZmZmZmZmZGd�dej��Z	Gd�de	��Z
Gd�d	e	��Zed
krej
��dSdS)�N�)�PunctuationMode�CallbackType�
SSIPClient�Scope�Speakerc��eZdZd�Zd�ZdS)�_SSIPClientTestc��td��|_|j�d��|j�d��dS)N�test�en�)r�_client�set_language�set_rate��selfs �//usr/lib/python3/dist-packages/speechd/_test.py�setUpz_SSIPClientTest.setUpsC��!�&�)�)�����!�!�$�'�'�'�����b�!�!�!�!�!�c�8�|j���dS)N)r�closers r�tearDownz_SSIPClientTest.tearDowns����������rN)�__name__�
__module__�__qualname__rr�rrr
r
s2������"�"�"�
����rr
c��eZdZdZd�ZdS)�
AutomaticTestz�A set of tests which may be evaluated automatically.

    Please put all tests which require a user to listen to their output to the
    VoiceTest below.

    c�x��|j�d��tjgtjgtjgi�|j�d�fd����|j�d�fd����tjd��|j�	��|j�d�fd	����tjd
���fd�tjtjtjfD��\}}}|dd
gkr|d
gkrd|vrd|vrd
|vsJ�df���dS)N�flitez]This message should get interrupted.  It is hopefully long enough to last more than 1 second.c�:���|�d��S)N�msg1��append��type�calleds �r�<lambda>z.AutomaticTest.test_callbacks.<locals>.<lambda>8�������1D�1D�V�1L�1L�r)�callbackz0This second message should not be spoken at all.c�:���|�d��S)N�msg2r$r&s �rr)z.AutomaticTest.test_callbacks.<locals>.<lambda>:r*rrzHi.c�:���|�d��S)N�msg3r$r&s �rr)z.AutomaticTest.test_callbacks.<locals>.<lambda>>r*r�c� ��g|]
}�|��Srr)�.0�tr(s  �r�
<listcomp>z0AutomaticTest.test_callbacks.<locals>.<listcomp>As/���$K�$K�$K�!�F�1�I�$K�$K�$Krr#r/r-z�This failure only indicates a possible error.  The test depends on proper timing and results may warry depending on the used output module and other conditions.  See the code of this test method if you want to investigate further.)
r�set_output_moduler�BEGIN�CANCEL�END�speak�time�sleep�cancel)r�started�canceled�endedr(s    @r�test_callbackszAutomaticTest.test_callbacks)s����	
��&�&�w�/�/�/��$�b��%�r��"�B�(��	
����O�$L�$L�$L�$L�	�	N�	N�	N�	
����M�$L�$L�$L�$L�	�	N�	N�	N��
�1�
�
�
������������5�$L�$L�$L�$L�	�	N�	N�	N�	
�
�1�
�
�
�$K�$K�$K�$K��8J�8D�8K�8D�8H�8J�$K�$K�$K� ���5��6�6�*�*�*�u���/@�/@���!�!�f��&8�&8��X�%�%�%����&�%�%�%�%rN)rrr�__doc__r@rrrrr"s-��������#�#�#�#�#rrc�*�eZdZdZd�Zd�Zd�Zd�ZdS)�	VoiceTestz�This set of tests requires a user to listen to it.

    The success or failure of the tests defined here can not be detected
    automatically.

    c��|j}|�d��|�tj��|�d��|�d��|�d��dS)NzTesting data escapes:�.zMarker at the end.
.
z.
Marker at the beginning.)rr9�set_punctuationr�ALL�r�cs  r�test_escapeszVoiceTest.test_escapesXsn���L��	���'�(�(�(�	���/�-�.�.�.�	�������	���-�.�.�.�	���/�0�0�0�0�0rc��|j}|�d��|�d��|�d��|�d��|�d��|�d��|�d��|�d��|�d��|�d	��|�d��|�d��|�d
��|�d��|�d��|�d��dS)
NzTesting voice properties:i����zI am fat Billy�dzI am slim WillyrzI am quick Dick.i����zI am slow Joe.i���zI am quiet Mariette.zI am noisy Daisy.)rr9�	set_pitchr�
set_volumerHs  r�test_voice_propertieszVoiceTest.test_voice_properties`s*���L��	���+�,�,�,�	���D����	��� �!�!�!�	���C����	���!�"�"�"�	���A����	�
�
�3����	���"�#�#�#�	�
�
�3����	��� �!�!�!�	�
�
�1�
�
�
�	���C����	���S����	���&�'�'�'�	���S����	���#�$�$�$�$�$rc��|j}|�d��|�d��|�d��|�d��dS)NzTesting other commands:�a�shift_b�empty)rr9�char�key�
sound_iconrHs  r�test_other_commandszVoiceTest.test_other_commandsssU���L��	���)�*�*�*�	���s����	���i����	���W�����rc	�x�|j}|���D]�}|�|��td|��|�|dz��|���D]I\}}}td||||��|�|��|�|dz|z���J��dS)Nz**zusing default voicez -z
 using voice )r�list_output_modulesr5�printr9�list_synthesis_voices�set_synthesis_voice)rrI�module�name�lang�dialects      r�
test_listszVoiceTest.test_listszs���
�\���-�-�/�/�
8�
8�V�
�
 �
 ��
(�
(�
(�
�4��
 �
 �
 �
�W�W�V�2�2�
3�
3�
3�()�(?�(?�(A�(A�8�8�$��t�W��t�V�T�4��9�9�9��&�&�t�,�,�,������0�$�6�7�7�7�7�8�	
8�
8rN)rrrrArJrOrWrarrrrCrCPsZ��������1�1�1�%�%�%�&���	8�	8�	8�	8�	8rrC�__main__)�unittestr:�clientrrrrr�TestCaser
rrCr�mainrrr�<module>rgs���$��������M�M�M�M�M�M�M�M�M�M�M�M�M�M������h�'����*�*�*�*�*�O�*�*�*�\38�38�38�38�38��38�38�38�l�z����H�M�O�O�O�O�O��r

Youez - 2016 - github.com/yon3zu
LinuXploit