VoiceSelector QML Type
TextToSpeech 要素の音声を選択するための付属プロパティを提供します。詳細...
Import Statement: | import QtTextToSpeech |
Since: | Qt 6.6 |
プロパティ
方法
- void select()
詳細説明
この型は、デフォルトでは設定されていないプロパティのセットを提供する。TextToSpeech 要素は、設定されたプロパティ値にすべて一致する最初の音声を選択する。すべての条件に一致するボイスが見つからない場合、ボイスは変更されません。
TextToSpeech オブジェクトが初期化された後、このグループ内で個々のプロパティを設定する場合、select() メソッドを呼び出して、ボイスの選択をトリガーする必要があります。
TextToSpeech::voice およびTextToSpeech::availableVoices()も参照してください 。
プロパティ Documentation
age : enumerator |
このプロパティは、選択された音声が持つべきage を指定します。
gender : enumerator |
このプロパティは、選択された音声が持つべきgender を指定します。
language : locale |
locale : locale |
このプロパティは、選択されている音声がどのロケールを持つべきかを指定します。
このプロパティが設定されている場合、ボイスの言語とテリトリーの両方が一致する必要があります。
language も参照 。
name : variant |
このプロパティは、選択された音声が持つべき名前を指定します。
このプロパティには、文字列または正規表現を指定します。
メソッドの説明
void select() |
指定された条件に基づいて音声の選択をアクティブにします。
注意: このメソッドを呼び出す必要があるのは、TextToSpeech オブジェクトがインスタンス化された後に選択基準が変更された場合のみです。
© 2025 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.