public class WakeUpManager extends Object
Modifier and Type | Class and Description |
---|---|
class |
WakeUpManager.WakeUpWord
Wakeup word info include index, word, description.
|
Modifier and Type | Method and Description |
---|---|
void |
disable()
Disable detect wakeup word.
|
void |
enable()
Enable detect wakeup word.
|
static WakeUpManager |
getInstance()
Returns WakeUpManager instance
|
Hashtable |
getWakeUpWords()
Returns all the supported wakeup words.
|
void |
setWakeUpListener(WakeUpListener listener)
Register a callback to be invoked when a wakeup word has been detected.
|
public static WakeUpManager getInstance()
public void enable() throws IOException
IOException
- if failed to start wakeup word detectpublic void disable() throws IOException
IOException
- if error occurs.public void setWakeUpListener(WakeUpListener listener)
listener
- the callback that will be run.WakeUpListener
public Hashtable getWakeUpWords()
WakeUpWord
object.