|
||||||||||
| 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(Listener<SpeechRequest> listener)
Adds a Listener to be notified when a speech request is made. |
void |
addSpeechEventListener(Listener<SpeechEvent> listener)
Adds a Listener to be notified when a speech event occurs. |
void |
close()
Closes a SpeechService, leaving it unable to speak. |
String |
getSpeechServiceId()
Returns the SpeechService Id. |
void |
removeRequestListener(Listener<SpeechRequest> listener)
Removes a Listener from being notified when a speech request is made. |
void |
removeSpeechEventListener(Listener<SpeechEvent> listener)
Removes a Listener from being notified when a speech event occurs. |
void |
speak(String text)
Sends the SpeechService text to speak. |
void |
start()
Starts the SpeechService, making it ready to speak. |
| Field Detail |
|---|
static final String PROP_ID
| Method Detail |
|---|
String getSpeechServiceId()
void start()
throws Exception
Exceptionvoid speak(String text)
text - the text to speakvoid close()
void addRequestListener(Listener<SpeechRequest> listener)
listener - the Listener to be notifiedvoid removeRequestListener(Listener<SpeechRequest> listener)
listener - the Listener to removevoid addSpeechEventListener(Listener<SpeechEvent> listener)
listener - the Listener to be notifiedvoid removeSpeechEventListener(Listener<SpeechEvent> listener)
listener - the Listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||