public abstract class AbstractTextToSpeechService extends AbstractLanguageService implements TextToSpeechService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| Constructor and Description |
|---|
AbstractTextToSpeechService() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Speech |
doSpeak(Language language,
String text,
String voiceType,
String audioType) |
String[] |
getSupportedAudioTypes() |
String[] |
getSupportedVoiceTypes() |
protected void |
setSupportedAudioTypes(String... audioTypes) |
protected void |
setSupportedVoiceTypes(String... voiceTypes) |
Speech |
speak(String language,
String text,
String voiceType,
String audioType) |
getSupportedLanguageCollection, getSupportedLanguagePairCollection, getSupportedLanguages, setSupportedLanguageCollection, setSupportedLanguagesacquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, doGetLastUpdate, getCurrentServiceContext, getDoDoubleSearch, getEliminateDuplicates, getInitParameter, getInitParameterBoolean, getInitParameterInt, getInitParameterLong, getInitParameters, getInitParameterString, getInitParameterUsingTransformer, getLastUpdate, getLogListener, getMaxResults, getMaxWaitMillisForExternalProcess, getRequestMimeHeaders, getServiceContext, getWorkDirectory, getWorkFile, log, parseDateMacro, processEnd, processEnd, processLap, processStart, releaseSemaphore, setCurrentServiceContext, setDoubleSearchResults, setEliminateDuplicates, setLogListener, setMaxResults, setMaxThreads, setMaxWaitMillisForExternalProcess, setMaxWaitMillisForThread, setMeasureProcessTime, setProcessTimeWarningThreasholdMillis, setStartupExceptiongetComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedLanguagespublic Speech speak(String language, String text, String voiceType, String audioType) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
public String[] getSupportedVoiceTypes()
getSupportedVoiceTypes in interface TextToSpeechServicepublic String[] getSupportedAudioTypes()
getSupportedAudioTypes in interface TextToSpeechServiceprotected abstract Speech doSpeak(Language language, String text, String voiceType, String audioType) throws InvalidParameterException, ProcessFailedException
protected void setSupportedVoiceTypes(String... voiceTypes)
protected void setSupportedAudioTypes(String... audioTypes)