%PDF- %PDF-
| Direktori : /lib/python3/dist-packages/speechd/__pycache__/ |
| Current File : //lib/python3/dist-packages/speechd/__pycache__/client.cpython-312.pyc |
�
�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&