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, setSupportedLanguages
acquireSemaphore, 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, setStartupException
getComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedLanguages
public 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 TextToSpeechService
public String[] getSupportedAudioTypes()
getSupportedAudioTypes
in interface TextToSpeechService
protected abstract Speech doSpeak(Language language, String text, String voiceType, String audioType) throws InvalidParameterException, ProcessFailedException
protected void setSupportedVoiceTypes(String... voiceTypes)
protected void setSupportedAudioTypes(String... audioTypes)