VoiceSelector QML Type
TextToSpeech 요소의 음성을 선택하기 위한 첨부 속성을 제공합니다. 더 보기...
Import Statement: | import QtTextToSpeech |
Since: | Qt 6.6 |
속성
방법
- void select()
상세 설명
이 유형은 기본적으로 설정되지 않은 속성 집합을 제공합니다. TextToSpeech 요소는 설정된 모든 속성 값과 일치하는 첫 번째 음성을 선택합니다. 모든 조건과 일치하는 음성을 찾지 못하면 음성이 변경되지 않습니다.
TextToSpeech 개체가 초기화된 후 이 그룹 내에서 개별 속성을 설정할 때는 select() 메서드를 호출하여 음성 선택을 트리거해야 합니다.
TextToSpeech::voice 및 TextToSpeech::availableVoices()도 참조하세요 .
속성 문서
age : enumerator |
이 속성은 선택한 음성에 어떤 age 이 있어야 하는지 지정합니다.
gender : enumerator |
이 속성은 선택한 음성이 가져야 할 gender 을 지정합니다.
language : locale |
locale : locale |
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.