%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/orca/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/orca/__pycache__/speechserver.cpython-312.pyc |
� g ft � �\ � d Z dZdZdZdZdZ G d� de� Z G d� d � Z G d � de � Z y) a' Provides an abtract class for working with speech servers. A speech server (class SpeechServer) provides the ability to tell the machine to speak. Each speech server provides a set of known voices (identified by name) which can be combined with various attributes to create aural style sheets.z$Id$z $Revision$z$Date$z-Copyright (c) 2005-2008 Sun Microsystems Inc.�LGPLc �J � e Zd ZdZdZdZdZdZdZdZ dZ ed ed ed ed ed iZd � Zy )�VoiceFamilyz)Holds the family description for a voice.�name�gender�lang�dialect�variant�male�femaleNc � � t j | � | j t j � |r| j |� yy)z"Create and initialize VoiceFamily.N)�dict�__init__�updater �settings)�self�propss �3/usr/lib/python3/dist-packages/orca/speechserver.pyr zVoiceFamily.__init__5 s4 � �� � �d�����K�(�(�)���K�K��� � ) �__name__� __module__�__qualname__�__doc__�NAME�GENDER�LANG�DIALECT�VARIANT�MALE�FEMALEr r � r r r r ! sO � �3� �D� �F� �D��G��G� �D� �F� �����������H�r r c �2 � e Zd ZdZdZdZd d�Zd� Zd� Zd� Z y) � SayAllContext� � � c �X � || _ || _ || _ || _ || _ d| _ y)a� Creates a new SayAllContext that will be passed to the SayAll callback handler for progress updates on speech. If the object does not have an accessible text specialization, then startOffset and endOffset parameters are meaningless. If the object does have an accessible text specialization, then values >= 0 for startOffset and endOffset indicate where in the text the utterance has come from. Arguments: -obj: the Accessible being spoken -utterance: the actual utterance being spoken -startOffset: the start offset of the Accessible's text -endOffset: the end offset of the Accessible's text N)�obj� utterance�startOffset� endOffset� currentOffset�currentEndOffset)r r'