|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpeechService
The SpeechService provides a basic interface for an service providing Text-to-Speech or equivalent capabilities.
Field Summary | |
---|---|
static String |
PROP_ID
Property name for the SpeechService Id. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final String PROP_ID
Method Detail |
---|
String getSpeechServiceId()
void start() throws Exception
Exception
SpeechJob 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 remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |