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, 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 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 SpeechRecognitionServiceAccessLimitExceededExceptionInvalidParameterExceptionNoAccessPermissionExceptionNoValidEndpointsExceptionProcessFailedExceptionServerBusyExceptionServiceNotActiveExceptionServiceNotFoundExceptionUnsupportedLanguageExceptionpublic String[] getSupportedVoiceTypes() throws NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
getSupportedVoiceTypes in interface SpeechRecognitionServiceNoValidEndpointsExceptionProcessFailedExceptionServerBusyExceptionServiceNotActiveExceptionServiceNotFoundExceptionpublic String[] getSupportedAudioTypes() throws NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
getSupportedAudioTypes in interface SpeechRecognitionServiceNoValidEndpointsExceptionProcessFailedExceptionServerBusyExceptionServiceNotActiveExceptionServiceNotFoundExceptionprotected abstract String doRecognize(Language language, Speech speech) throws InvalidParameterException, ProcessFailedException
protected void setSupportedVoiceTypes(String[] supportedVoiceTypes)
protected void setSupportedAudioTypes(String[] supportedAudioTypes)