403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/orca/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/orca//speechserver.pyo
z#Jc
@sdZdZdZdZdZdZddkZddkZddkZddk	Z	ddk
Z
eidZddk
Z
dd	klZd
efdYZddd
YZdefdYZdS(s'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.s$Id$s
$Revision$s$Date$s-Copyright (c) 2005-2008 Sun Microsystems Inc.tLGPLiNtspeech(t_tVoiceFamilycBsPeZdZdZdZdZdZdZhde6de6de6Z	dZ
RS(s)Holds the family description for a voice.tnametgendertlocaletmaletfemalecCs9ti||iti|o|i|ndS(s"Create and initialize VoiceFamily.N(tdictt__init__tupdateRtsettings(tselftprops((s5/usr/lib/python2.6/site-packages/orca/speechserver.pyR
=s
N(t__name__t
__module__t__doc__tNAMEtGENDERtLOCALEtMALEtFEMALEtNoneRR
(((s5/usr/lib/python2.6/site-packages/orca/speechserver.pyR-s
t
SayAllContextcBs)eZdZdZdZdddZRS(iiiicCs1||_||_||_||_||_dS(sCreates 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(tobjt	utterancetstartOffsett
currentOffsett	endOffset(R
RRRR((s5/usr/lib/python2.6/site-packages/orca/speechserver.pyR
Ks
				(RRtPROGRESStINTERRUPTEDt	COMPLETEDR
(((s5/usr/lib/python2.6/site-packages/orca/speechserver.pyREstSpeechServercBs@eZdZdZeeZdZeeZdZeeZdZeeZdZdZ	dZ
ddd	Zd
ddZ
dd
ZddZdZdedZddedZdZdZddZddZddZddZdZdZdddZRS(s#Provides speech server abstraction.cCsdS(s1Returns a localized name describing this factory.N((((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytgetFactoryNameescCsdS(sGets available speech servers as a list.  The caller
        is responsible for calling the shutdown() method of each
        speech server returned.
        N((((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytgetSpeechServerskscCsdS(siGets a given SpeechServer based upon the info.
        See SpeechServer.getInfo() for more info.
        N((tinfo((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytgetSpeechServertscCsdS(s/Cleans up and shuts down this factory.
        N((((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytshutdownActiveServers|scCsdS(N((R
((s5/usr/lib/python2.6/site-packages/orca/speechserver.pyR
scCsdS(sReturns [name, id]
        N((R
((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytgetInfoscCsdS(skReturns a list of VoiceFamily instances representing all
        voice families known by the speech server.N((R
((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytgetVoiceFamiliesstcCsdS(sAdds the text to the queue.

        Arguments:
        - text: text to be spoken
        - acss: acss.ACSS instance; if None,
                the default voice settings will be used.
                Otherwise, the acss settings will be
                used to augment/override the default
                voice settings.

        Output is produced by the next call to speak.
        N((R
ttexttacss((s5/usr/lib/python2.6/site-packages/orca/speechserver.pyt	queueTexts
ii2cCsdS(sYAdds a tone to the queue.

        Output is produced by the next call to speak.
        N((R
tpitchtduration((s5/usr/lib/python2.6/site-packages/orca/speechserver.pyt	queueTonescCsdS(sZAdds silence to the queue.

        Output is produced by the next call to speak.
        N((R
R.((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytqueueSilencescCsdS(ssSpeaks a single character immediately.

        Arguments:
        - character: text to be spoken
        - acss:      acss.ACSS instance; if None,
                     the default voice settings will be used.
                     Otherwise, the acss settings will be
                     used to augment/override the default
                     voice settings.
        N((R
t	characterR+((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytspeakCharacterscCs!|tiijo*|idiotiti}ntiti}t	i
|}tio ti
otii|}n|tiijo|dtd7}n,|tiijo|dtd7}nd|d}titi|ti||i|d|dS(	sSpeaks a key event immediately.

        Arguments:
        - event_string: string representing the key event as defined by
                        input_event.KeyboardEvent.
        - eventType:    key event type as one of orca.KeyEventType constants.

        sUTF-8t tontoffsSPEECH OUTPUT: 't'R+N(torcatKeyEventTypet	PRINTABLEtdecodetisupperRtvoicestUPPERCASE_VOICEt
DEFAULT_VOICEtkeynamest
getKeyNamet
orca_statetactiveScripttusePronunciationDictionarytadjustForPronunciationtLOCKING_LOCKEDRtLOCKING_UNLOCKEDtdebugtprintlnt
LEVEL_INFOtlogR$tspeak(R
tevent_stringt	eventTypetvoicetlogLine((s5/usr/lib/python2.6/site-packages/orca/speechserver.pyt
speakKeyEvents	
cCsdS(sSpeaks the given list of utterances immediately.

        Arguments:
        - utteranceList: list of strings to be spoken
        - acss:      acss.ACSS instance; if None,
                     the default voice settings will be used.
                     Otherwise, the acss settings will be
                     used to augment/override the default
                     voice settings.
        - interrupt: if True, stop any speech currently in progress.
        N((R
t
utteranceListR+t	interrupt((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytspeakUtterancesscCsdS(sASpeaks all queued text immediately.  If text is not None,
        it is added to the queue before speaking.

        Arguments:
        - text:      optional text to add to the queue before speaking
        - acss:      acss.ACSS instance; if None,
                     the default voice settings will be used.
                     Otherwise, the acss settings will be
                     used to augment/override the default
                     voice settings.
        - interrupt: if True, stops any speech in progress before
                     speaking the text
        N((R
R*R+RR((s5/usr/lib/python2.6/site-packages/orca/speechserver.pyRKscCstS(s2"Returns True if the system is currently speaking.(tFalse(R
((s5/usr/lib/python2.6/site-packages/orca/speechserver.pyt
isSpeakingscCs_xX|D]P\}}d|id}titi|ti||i|i|qWdS(shIterates through the given utteranceIterator, speaking
        each utterance one at a time.  Subclasses may postpone
        getting a new element until the current element has been
        spoken.

        Arguments:
        - utteranceIterator: iterator/generator whose next() function
                             returns a [SayAllContext, acss] tuple
        - progressCallback:  called as speech progress is made - has a
                             signature of (SayAllContext, type), where
                             type is one of PROGRESS, INTERRUPTED, or
                             COMPLETED.
        sSPEECH OUTPUT: 'R6N(RRGRHRIRJR$RK(R
tutteranceIteratortprogressCallbacktcontextR+RO((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytsayAlls
icCsdS(s#Increases the speech rate.
        N((R
tstep((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytincreaseSpeechRatescCsdS(s#Decreases the speech rate.
        N((R
RZ((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytdecreaseSpeechRatesg?cCsdS(s$Increases the speech pitch.
        N((R
RZ((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytincreaseSpeechPitch"scCsdS(s$Decreases the speech pitch.
        N((R
RZ((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytdecreaseSpeechPitch'scCsdS(s+Stops ongoing speech and flushes the queue.N((R
((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytstop,scCsdS(sShuts down the speech engine.N((R
((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytshutdown0scCsdS(sResets the speech engine.N((R
R*R+((s5/usr/lib/python2.6/site-packages/orca/speechserver.pytreset4sN(RRRR"tstaticmethodR#R%R&R
R'R(RR,R/R0R2RPtTrueRSRKRURYR[R\R]R^R_R`Ra(((s5/usr/lib/python2.6/site-packages/orca/speechserver.pyR!as8							
	(				((Rt__id__t__version__t__date__t
__copyright__t__license__tloggingR?RR7RAt	getLoggerRJRGt	orca_i18nRR	RRtobjectR!(((s5/usr/lib/python2.6/site-packages/orca/speechserver.pyt<module>s 

Youez - 2016 - github.com/yon3zu
LinuXploit