| Trees | Indices | Help |
|---|
|
|
object --+
|
UIElement.UIE --+
|
Base.AEOutput --+
|
Audio
Defines the base class for all audio output devices. Provides default implementations of sendStringSync and parseString specific to audio devices.
Some methods defined here raise NotImplementedError to ensure that derived classes create appropriate implementions. Implementing sendIndex is optional. The DeviceManager catches the not implemented exception in this case.
|
|||
| AEOutput.Style class |
STYLE Style class to use when constructing style objects for this device. |
||
|
|||
|
|||
| list of string |
|
||
|
|||
|
|||
| AEOutput |
|
||
| string |
|
||
| 3-tuple of lists of string, POR, AEOutput.Style |
|
||
| object |
|
||
|
|||
|
|||
|
|||
|
|||
| integer |
|
||
|
|||
| string |
|
||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
| list |
listeners List of callables that should be notified when a marker inserted with sendIndex is encountered |
||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Initializes the empty listeners list.
|
Gets a list of strings representing the capabilities of this device. Typical output capabilities include "audio" and "braille" though others are certainly possible. The DeviceManager will only load a device if another device doesn't already provide all of its capabilities.
|
Adds a listener that should be notified when speech has progressed to the point where a marker was inserted with sendIndex.
|
Removes the specified listener.
|
Looks at the USE_THREAD flag to see if the device implementing this interface wants a thread proxy or not.
|
Adds support for the AEOutput.Style.AudioStyle settings of CapExpand and NumExpand. This method is notified during parsing of the main part of a Word.
|
Provides a default implementation of parsing that formats words for audio devices supporting speech output. The base Word class is used plus some additional processing for:
|
Dispatches known commands to their appropriate handlers.
|
Sends a string of one or more characters to the device. The style object is used by the device in deciding how the given text should be presented.
|
Sends a string filename to the device, the contents of which should be output. The style object is used by the device in decided how the given text should be presented. Typically, this method should be implemented by an audio device that supports playback of waveform or sequencer files. It might also be used by devices as a way of synthesizing the entire contents of a file without having to pass all of the contents through the rest of the system.
|
Purges buffered text and styles, and interrupts on-going output.
|
Indicates all text buffered by sendString should now be output. For devices that do the buffering in the driver, this action may mean simply sending the command. For devices that do not buffer, this action means sending text and styles buffered in the LSR device definition.
|
Inserts a marker in the output stream. The device should notify all listeners when the marker is reached. The marker is typically a monotonically increase integer number mod the maximum integer value supported by the device.
|
Buffers a complete string to send to the device synchronously. This should not be used in place of sendString since this will not return until the string is finished being output. This is provided only for the convenience of utility writers. Uses sendStop, sendString, sendTalk, and then sleeps until isActive returns False. This method sends the stop, string, and talk commands directly to the device, bypassing any thread proxy. This could be problematic if the audio library in question cannot be used in more than one thread.
|
Maps a language tag to the closest one possible as supported by this device. The result may be an exact match or only a partial match. If absolutely nothing matches the requested tag, not even starting at the major language, None should be returned.
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Mon Jun 4 15:33:17 2007 | http://epydoc.sourceforge.net |