Allow access to voice services
Methods
-
addItem
-
Add an item to the list of available applications the system can launch
Parameters:
Name Type Description item
String The name of the item -
cancel
-
Tell the system to cancel voice recognition in progress
-
getSpeechState
-
Retrieve the state of the speech attribute
Returns:
The state of the speech attribute; possible values: 'processing', 'handled'- Type
-
- String
-
getState
-
Retrieve the state of the voice req service
Returns:
The state of the voice req service; possible values: 'idle', 'prompting', 'listening', 'processing'- Type
-
- String
-
listen
-
Tell the system to listen for a voice command
-
say
-
Say a string using text-to-speech
Parameters:
Name Type Description text
String The string to say -
setList
-
Inform the system of a set of available applications it can launch
Parameters:
Name Type Description list
Array The list of applications -
stopListening
-
Tell the system that you are finished saying your voice command