public abstract class AbstractSpeechRecognitionService extends AbstractLanguageService implements SpeechRecognitionService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
Constructor and Description |
---|
AbstractSpeechRecognitionService() |
AbstractSpeechRecognitionService(ServiceContext context) |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
doRecognize(Language language,
Speech speech) |
String[] |
getSupportedAudioTypes() |
String[] |
getSupportedVoiceTypes() |
String |
recognize(String language,
Speech speech) |
protected void |
setSupportedAudioTypes(String[] supportedAudioTypes) |
protected void |
setSupportedVoiceTypes(String[] supportedVoiceTypes) |
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 AbstractSpeechRecognitionService()
public AbstractSpeechRecognitionService(ServiceContext context)
public String recognize(String language, Speech speech) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
recognize
in interface SpeechRecognitionService
AccessLimitExceededException
InvalidParameterException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguageException
public String[] getSupportedVoiceTypes() throws NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
getSupportedVoiceTypes
in interface SpeechRecognitionService
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
public String[] getSupportedAudioTypes() throws NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
getSupportedAudioTypes
in interface SpeechRecognitionService
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
protected abstract String doRecognize(Language language, Speech speech) throws InvalidParameterException, ProcessFailedException
protected void setSupportedVoiceTypes(String[] supportedVoiceTypes)
protected void setSupportedAudioTypes(String[] supportedAudioTypes)