High-level functions to speak information.
|
|
initialize()
Loads and sets the synth driver configured in nvda.ini. |
source code
|
|
|
|
|
|
bool
|
|
|
|
|
|
int
|
|
|
|
cancelSpeech()
Interupts the synthesizer from currently speaking |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
spellTextInfo(info,
useCharacterDescriptions=False)
Spells the text from the given TextInfo, honouring any
LangChangeCommand objects it finds if autoLanguageSwitching is
enabled. |
source code
|
|
|
|
| speakSpelling(text,
locale=None,
useCharacterDescriptions=False) |
source code
|
|
|
|
| _speakSpellingGen(text,
locale,
useCharacterDescriptions) |
source code
|
|
|
|
| speakObjectProperties(obj,
reason=REASON_QUERY,
index=None,
**allowedProperties) |
source code
|
|
|
|
| speakObject(obj,
reason=REASON_QUERY,
index=None) |
source code
|
|
|
|
|
|
(basestring, basestring)
|
|
|
unicode
|
|
|
|
speak(speechSequence,
symbolLevel=None)
Speaks a sequence of text and speech commands |
source code
|
|
|
|
|
|
|
speakSelectionChange(oldInfo,
newInfo,
speakSelected=True,
speakUnselected=True,
generalize=False)
Speaks a change in selection, either selected or unselected text. |
source code
|
|
|
|
|
|
|
| processPositiveStates(role,
states,
reason,
positiveStates) |
source code
|
|
|
|
| processNegativeStates(role,
states,
reason,
negativeStates) |
source code
|
|
|
|
| speakTextInfo(info,
useCache=True,
formatConfig=None,
unit=None,
reason=REASON_QUERY,
index=None) |
source code
|
|
|
|
| getSpeechTextForProperties(reason=REASON_QUERY,
**propertyValues) |
source code
|
|
|
|
| getControlFieldSpeech(attrs,
ancestorAttrs,
fieldType,
formatConfig=None,
extraDetail=False,
reason=None) |
source code
|
|
|
|
| getFormatFieldSpeech(attrs,
attrsCache=None,
formatConfig=None,
unit=None,
extraDetail=False) |
source code
|
|
|
|
| getTableInfoSpeech(tableInfo,
oldTableInfo,
extraDetail=False) |
source code
|
|
|
|
speakWithoutPauses(speechSequence,
detectBreaks=True)
Speaks the speech sequences given over multiple calls, only sending
to the synth at acceptable phrase or sentence boundaries, or when
given None for the speech sequence. |
source code
|
|
|
|
speechMode_off = 0
|
|
|
speechMode_beeps = 1
|
|
|
speechMode_talk = 2
|
|
|
speechMode = 2
|
|
|
speechMode_beeps_ms = 15
|
|
|
beenCanceled = True
|
|
|
isPaused = False
|
|
|
curWordChars = []
|
|
|
REASON_FOCUS = 1
|
|
|
REASON_MOUSE = 2
|
|
|
REASON_QUERY = 3
|
|
|
REASON_CHANGE = 4
|
|
|
REASON_MESSAGE = 5
|
|
|
REASON_SAYALL = 6
|
|
|
REASON_CARET = 7
|
|
|
REASON_DEBUG = 8
|
|
|
REASON_ONLYCACHE = 9
|
|
|
REASON_FOCUSENTERED = 10
|
|
|
CHUNK_SEPARATOR = " "
|
|
|
oldTreeLevel = None
hash(x)
|
|
|
oldTableID = None
hash(x)
|
|
|
oldRowNumber = None
hash(x)
|
|
|
oldColumnNumber = None
hash(x)
|
|
|
BLANK_CHUNK_CHARS = frozenset((" ", "\n", "\r", "\0", u"\xa0"))
|
|
|
RE_CONVERT_WHITESPACE = re.compile("[\0\r\n]")
|
|
|
_speakSpellingGenerator = None
hash(x)
|
|
|
RE_INDENTATION_SPLIT = re.compile(r"^([^\S\r\n\f\v]*)(.*)$", r...
|
|
|
RE_INDENTATION_CONVERT = re.compile(r"(?P<char>\s)(?P=char)*",...
|
|
|
silentRolesOnFocus = set([controlTypes.ROLE_PANE, controlTypes...
|
|
|
silentValuesForRoles = set([controlTypes.ROLE_CHECKBOX, contro...
|
|
|
re_last_pause = re.compile(ur"^(.*(?<=[^\s.!?])[.!?][\"'”’)]?(...
|