VoiceSelector QML Type
|Import Statement:||import QtTextToSpeech|
- void select()
The type provides a set of properties that are by default unset. The TextToSpeech element will choose the first voice that matches all the set property values. If no voice is found that matches all criteria, then the voice doesn't change.
age : enumerator
This property specifies which age the selected voice should have.
gender : enumerator
This property specifies which gender the selected voice should have.
language : locale
This property specifies which language the selected voice should have.
The property is of type locale, but only the language component of the locale will be considered, the territory will be ignored.
See also locale.
locale : locale
This property specifies which locale the selected voice should have.
If this property is set, then both the language and the territory of the voice need to match.
See also language.
name : variant
This property specifies which name the selected voice should have.
The property can be a string, or a regular expression.
Activates the selection of the voice based on the specified criteria.
Note: This method only needs to be called if the selection criteria are modified after the TextToSpeech object has been instantiated.
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.