public class SpeaktoitRecognitionServiceImpl extends AIService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
aiDataService, config, context| Constructor and Description |
|---|
SpeaktoitRecognitionServiceImpl(android.content.Context context,
AIConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel listening process and don't request to AI service
|
void |
pause() |
void |
resume() |
void |
startListening()
Starts listening process
|
void |
startListening(java.util.List<AIContext> contexts)
Starts listening process.
|
void |
stopListening()
Stop listening and start request to the AI service with current recognition results
|
getService, onAudioLevelChanged, onError, onListeningFinished, onListeningStarted, onResult, resetContexts, setListener, textRequestpublic SpeaktoitRecognitionServiceImpl(android.content.Context context,
AIConfiguration config)
public void startListening()
AIServicestartListening in class AIServicepublic void startListening(java.util.List<AIContext> contexts)
AIServicestartListening in class AIServicepublic void stopListening()
AIServicestopListening in class AIServicepublic void cancel()
AIService