Package synthDrivers :: Module silence :: Class SynthDriver
[hide private]
[frames] | no frames]

Class SynthDriver

source code

                   object --+        
                            |        
baseObject.AutoPropertyObject --+    
                                |    
   synthDriverHandler.SynthDriver --+
                                    |
                                   SynthDriver

A dummy synth driver used to disable speech in NVDA.

Nested Classes [hide private]

Inherited from baseObject.AutoPropertyObject: __metaclass__

Instance Methods [hide private]
 
speak(self, speechSequence)
Speaks the given sequence of text and speech commands.
source code

Inherited from synthDriverHandler.SynthDriver: __init__, cancel, getConfigSpec, isSupported, loadSettings, pause, saveSettings, speakCharacter, speakText, terminate

Inherited from synthDriverHandler.SynthDriver (private): _getAvailableVariants, _getAvailableVoices, _get_availableLanguages, _get_availableVariants, _get_availableVoices, _get_inflection, _get_initialSettingsRingSetting, _get_language, _get_lastIndex, _get_pitch, _get_rate, _get_supportedSettings, _get_variant, _get_voice, _get_volume, _set_inflection, _set_language, _set_pitch, _set_rate, _set_variant, _set_voice, _set_volume

Inherited from baseObject.AutoPropertyObject: invalidateCache

Inherited from baseObject.AutoPropertyObject (private): _getPropertyViaCache

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
bool
check(cls)
Determine whether this synth is available.
source code

Inherited from synthDriverHandler.SynthDriver: InflectionSetting, LanguageSetting, PitchSetting, RateSetting, VariantSetting, VoiceSetting, VolumeSetting

Inherited from synthDriverHandler.SynthDriver (private): _paramToPercent, _percentToParam

Inherited from baseObject.AutoPropertyObject: invalidateCaches

Class Variables [hide private]
  name = "silence"
  description = _("No speech")
list or tuple of SynthSetting supportedSettings = []
The settings supported by the synthesiser.

Inherited from baseObject.AutoPropertyObject: cachePropertiesByDefault

Instance Variables [hide private]

Inherited from synthDriverHandler.SynthDriver: availableVariants, availableVoices, inflection, lastIndex, pitch, rate, variant, voice, volume

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

check(cls)
Class Method

source code 

Determine whether this synth is available. The synth will be excluded from the list of available synths if this method returns False. For example, if this synth requires installation and it is not installed, False should be returned.

Returns: bool
True if this synth is available, False if not.
Overrides: synthDriverHandler.SynthDriver.check
(inherited documentation)

speak(self, speechSequence)

source code 

Speaks the given sequence of text and speech commands. This base implementation will fallback to making use of the old speakText and speakCharacter methods. But new synths should override this method to support its full functionality.

Parameters:
  • speechSequence - a list of text strings and SpeechCommand objects (such as index and parameter changes).
Overrides: synthDriverHandler.SynthDriver.speak
(inherited documentation)