public interface SpeechService
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_ID
Property name for the SpeechService Id.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestListener(org.jflux.api.core.Listener<SpeechRequest> listener)
Adds a Listener to be notified when a speech request is made.
|
void |
addSpeechEventListener(org.jflux.api.core.Listener<SpeechEventList<SpeechEvent>> listener)
Adds a Listener to be notified when a speech event occurs.
|
void |
cancelSpeech() |
String |
getSpeechServiceId()
Returns the SpeechService Id.
|
void |
removeRequestListener(org.jflux.api.core.Listener<SpeechRequest> listener)
Removes a Listener from being notified when a speech request is made.
|
void |
removeSpeechEventListener(org.jflux.api.core.Listener<SpeechEventList<SpeechEvent>> listener)
Removes a Listener from being notified when a speech event occurs.
|
SpeechJob |
speak(String text)
Sends the SpeechService text to speak.
|
void |
start()
Starts the SpeechService, making it ready to speak.
|
void |
stop()
Closes a SpeechService, leaving it unable to speak.
|
static final String PROP_ID
String getSpeechServiceId()
void start()
throws Exception
ExceptionSpeechJob speak(String text)
text - the text to speakvoid cancelSpeech()
void stop()
void addRequestListener(org.jflux.api.core.Listener<SpeechRequest> listener)
listener - the Listener to be notifiedvoid removeRequestListener(org.jflux.api.core.Listener<SpeechRequest> listener)
listener - the Listener to removevoid addSpeechEventListener(org.jflux.api.core.Listener<SpeechEventList<SpeechEvent>> listener)
listener - the Listener to be notifiedvoid removeSpeechEventListener(org.jflux.api.core.Listener<SpeechEventList<SpeechEvent>> listener)
listener - the Listener to removeCopyright © 2011-2014. All Rights Reserved.