public interface Session
Modifier and Type | Interface and Description |
---|---|
static class |
Session.Factory
Factory used to create new SpeechKit Sessions.
|
Modifier and Type | Method and Description |
---|---|
AudioPlayer |
getAudioPlayer()
The AudioPlayer for this Session.
|
Transaction |
recognize(Transaction.Options options,
Transaction.Listener listener)
Perform speech recognition.
|
Transaction |
recognizeWithService(String service,
org.json.JSONObject data,
Transaction.Options options,
Transaction.Listener listener)
Perform a custom speech recognition.
|
void |
setDefaultOptions(Transaction.Options options) |
Transaction |
speakMarkup(String markup,
Transaction.Options options,
Transaction.Listener listener)
Perform text to speech from SSML markup.
|
Transaction |
speakString(String string,
Transaction.Options options,
Transaction.Listener listener)
Perform text to speech from a string.
|
Transaction |
transactionWithService(String service,
org.json.JSONObject data,
Transaction.Options options,
Transaction.Listener listener)
Send a message to a custom service.
|
void setDefaultOptions(Transaction.Options options)
Transaction recognize(Transaction.Options options, Transaction.Listener listener)
options
- Override options. These will override the default options that the Session was initialized with.listener
- Transaction listener.Transaction recognizeWithService(String service, org.json.JSONObject data, Transaction.Options options, Transaction.Listener listener)
service
- Custom service ID.data
- Application specific data.options
- Override options. These will override the default options that the Session was initialized with.
Pass null to use the default options.listener
- Transaction listener.Transaction transactionWithService(String service, org.json.JSONObject data, Transaction.Options options, Transaction.Listener listener)
service
- Custom service ID.data
- Application specific data.options
- Override options. These will override the default options that the Session was initialized with.
Pass null to use the default options.listener
- Transaction listener.Transaction speakString(String string, Transaction.Options options, Transaction.Listener listener)
string
- The text to synthesize.options
- Override options. These will override the default options that the Session was initialized with.
Pass null to use the default options.listener
- Transaction listener.Transaction speakMarkup(String markup, Transaction.Options options, Transaction.Listener listener)
markup
- The SSML to synthesize.options
- Override options. These will override the default options that the Session was initialized with.
Pass null to use the default options.listener
- Transaction listener.AudioPlayer getAudioPlayer()