| Server IP : 107.13.46.68 / Your IP : 216.73.216.232 Web Server : Apache/2.4.58 (Ubuntu) System : Linux mariOS 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/speechd/__pycache__/ |
Upload File : |
�
�If�� � �� � d Z ddlZddlZddlZddlZddlZddlZ ddlZddl m
Z
G d� de� Z G d� de
� Z G d � d
e� Z G d� de
� Z G d
� de� Z G d� de� Z G d� de
� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� d e� Z G d!� d"e� Z G d#� d$e� Z G d%� d&e� Z G d'� d(e� Zy# ddlZY ��xY w))z�Python API to Speech Dispatcher
Basic Python client API to Speech Dispatcher is provided by the 'SSIPClient'
class. This interface maps directly to available SSIP commands and logic.
A more convenient interface is provided by the 'Speaker' class.
� N� )�pathsc �2 � e Zd ZdZdZ dZ dZ dZ dZ dZ y) �CallbackTypez5Constants describing the available types of callbacks�index_marks�begin�end�cancel�pause�resumeN)
�__name__�
__module__�__qualname__�__doc__�
INDEX_MARK�BEGIN�END�CANCEL�PAUSE�RESUME� � �0/usr/lib/python3/dist-packages/speechd/client.pyr r $ sE � �?��J��
�E�&�
�C�;�
�F��
�E�4�
�F�)r r c � � e Zd ZdZy)� SSIPErrorz;Common base class for exceptions during SSIP communication.N�r
r r r r r r r r ; s � �Er r c �F � � e Zd ZdZdZd � fd� Zd� Zd� Zd� Zd� Z d� Z
� xZS )
�SSIPCommunicationErrorz?Exception raised when trying to operate on a closed connection.Nc �H �� || _ || _ t t | � di |�� y )Nr )�_original_exception�_description�superr �__init__)�self�description�original_exception�kwargs� __class__s �r r# zSSIPCommunicationError.__init__C s% �� �#5�� �'���
�i��'�1�&�1r c � � | j S )z�Return the original exception if any
If this exception is secondary, being caused by a lower
level exception, return this original exception, otherwise
None)r �r$ s r r&