voice QML Value Type
声乐类型代表一种特定的嗓音。更多...
| Import Statement: | import QtTextToSpeech |
属性
- age : enumeration
- gender : enumeration
- language : enumerator
(since 6.6) - locale : locale
- name : string
详细说明
要获取当前文本转语音引擎支持的语音,请使用TextToSpeech::availableVoices()。
属性文档
age : enumeration
该属性存储了语音的年龄。
另请参阅 QVoice::Age 。
gender : enumeration
该属性存储了语音的性别。
另请参阅 QVoice::Gender 。
language : enumerator [since 6.6]
该属性用于指定语音的语言。
该属性在 Qt 6.6 中引入。
locale : locale
此属性存储语音的区域设置。
该区域设置包括语音的语言和地区(即口音或方言)。
language
name : string
该属性存储语音的名称。
© 2026 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.