EngineList is a container for a set of
EngineModeDesc objects.
An EngineList is used in the selection of speech engines in
conjuction with the methods of the Central class.
It provides convenience methods for the purpose of testing and manipulating
the EngineModeDesc objects it contains.
An EngineList object is typically obtained through the
availableSynthesizers or availableRecognizers
methods of the Central class.
The orderByMatch, anyMatch,
requireMatch and rejectMatch methods are
used to prune the list to find the best match given multiple criteria.
EngineModeDesc
Central
Central#availableRecognizers
Central#availableSynthesizers | Operations Summary: | |
| EngineListArray | getEngineList() |
| boolean | anyMatch(in EngineModeDesc require) |
| void | orderByMatch(in EngineModeDesc require) |
| void | rejectMatch(in EngineModeDesc reject) |
| void | requireMatch(in EngineModeDesc require) |
| Operations Inherited from Bonobo::Unknown | |
| ref, unref, queryInterface | |
| Operation Details: |
Return an array of EngineModeDesc objects in this
EngineList.
EngineModeDesc objects.
Return true if one or more EngineModeDesc in the
EngineList match the required properties. The
require object is tested with the match
method of each EngineModeDesc in the list.
If any match call returns true then this method returns true.
anyMatch is often used to test whether pruning a
list (with requireMatch or rejectMatch)
would leave the list empty.
EngineModeDesc object to compare against. EngineList contains one (or more) EngineModeDesc objects matching require. EngineModeDesc#match Order the list so that elements matching the required features are at the head of the list, and others are at the end. Within categories, the original order of the list is preserved.
EngineModeDesc object containing the required features.
Remove EngineModeDesc entries from the list that do
match reject. The match method for each
EngineModeDesc in the list is called: if it returns
true it is removed from the list.
EngineModeDesc object containing the features to remove. requireMatch
Remove EngineModeDesc entries from the list that do
not match require. The match method for
each EngineModeDesc in the list is called: if it
returns false it is removed from the list.
rejectMatch
EngineModeDesc#match