public interface STTService
|Modifier and Type||Method and Description|
Returns a simple string that uniquely identifies this service
Returns a localized human readable label that can be used within UIs.
Obtain the audio formats supported by this STTService
Obtain the Locales available from this STTService
This method starts the process of speech recognition.
locale- the locale to provide the label for
STTServiceHandle recognize(STTListener sttListener, AudioStream audioStream, Locale locale, Set<String> grammars) throws STTException
AudioStreamis passed to the speech recognition engine. The recognition engine attempts to recognize speech as being spoken in the passed
Localeand containing statements specified in the passed
grammars. Recognition is indicated by fired
STTEventevents targeting the passed
STTListener. The passed
AudioStreammust be of a supported
AudioFormat. In other words a
AudioFormatcompatible with one returned from the
getSupportedFormats()method. The passed
Localemust be supported. That is to say it must be a
Localereturned from the
getSupportedLocales()method. The passed
grammarsmust consist of a syntactically valid grammar as specified by the JSpeech Grammar Format. If
grammarsis null or empty, large vocabulary continuous speech recognition is attempted.
AudioStreamfrom which speech is recognized
Localein which the target speech is spoken
grammars- The JSpeech Grammar Format grammar specifying allowed statements
STTServiceHandleused to abort recognition
SSTExceptionif any parameter is invalid or a STT problem occurs
Copyright © 2017 Eclipse.org. All rights reserved.