public class Voice extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Voice.MarkSupport |
Constructor and Description |
---|
Voice(String engine,
String name) |
Voice(String engine,
String name,
Collection<Locale> locale,
VoiceInfo.Gender gender) |
Voice(String engine,
String name,
Collection<VoiceInfo.LanguageRange> locale,
VoiceInfo.Gender gender,
Voice.MarkSupport markSupport) |
Voice(String engine,
String name,
Locale locale,
VoiceInfo.Gender gender) |
Voice(String engine,
String name,
VoiceInfo.LanguageRange locale,
VoiceInfo.Gender gender) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getEngine() |
Optional<VoiceInfo.Gender> |
getGender()
The gender of this voice, or absent if it is not known.
|
Collection<VoiceInfo.LanguageRange> |
getLocale()
The language range(s) of this voice, or empty if it is not known.
|
Voice.MarkSupport |
getMarkSupport() |
String |
getName() |
int |
hashCode() |
String |
toString() |
public Voice(String engine, String name, Locale locale, VoiceInfo.Gender gender) throws IllegalArgumentException
IllegalArgumentException
- if language or gender can not be parsed.public Voice(String engine, String name, VoiceInfo.LanguageRange locale, VoiceInfo.Gender gender) throws IllegalArgumentException
IllegalArgumentException
public Voice(String engine, String name, Collection<Locale> locale, VoiceInfo.Gender gender) throws IllegalArgumentException
IllegalArgumentException
public Voice(String engine, String name, Collection<VoiceInfo.LanguageRange> locale, VoiceInfo.Gender gender, Voice.MarkSupport markSupport) throws IllegalArgumentException
IllegalArgumentException
public String getName()
public String getEngine()
public Voice.MarkSupport getMarkSupport()
public Collection<VoiceInfo.LanguageRange> getLocale()
public Optional<VoiceInfo.Gender> getGender()
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.