- Qt 6.10
- Qt TextToSpeech
- QML Types
- voice
- Qt 6.10.2 Reference Documentation

# voice QML Value Type

The voice type represents a particular voice. More...

Import Statement: | `import QtTextToSpeech`

## Properties

- age : enumeration
- gender : enumeration
- language : enumerator `(since 6.6)`
- locale : locale
- name : string

## Detailed Description

To get a voice that is supported by the current text-to-speech engine, use TextToSpeech::availableVoices().

## Property Documentation

age : enumeration

This property holds the age of the voice.

See also QVoice::Age.

gender : enumeration

This property holds the gender of the voice.

See also QVoice::Gender.

language : enumerator `[since 6.6]`

This property holds the language of the voice.

This is the language attribute of the voice's locale.

This property was introduced in Qt 6.6.

locale : locale

This property holds the locale of the voice.

The locale includes the language and the territory (i.e. accent or dialect) of the voice.

language

name : string

This property holds the name of the voice.