|
||||||||||
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.
Method Summary | |
---|---|
void |
addRequestListener(org.robokind.api.common.utils.Listener<SpeechRequest> listener)
Adds a Listener to be notified when a speech request is made. |
void |
addSpeechEventListener(org.robokind.api.common.utils.Listener<SpeechEventList> listener)
Adds a Listener to be notified when a speech event occurs. |
void |
close()
Closes a SpeechService, leaving it unable to speak. |
void |
removeRequestListener(org.robokind.api.common.utils.Listener<SpeechRequest> listener)
Removes a Listener from being notified when a speech request is made. |
void |
removeSpeechEventListener(org.robokind.api.common.utils.Listener<SpeechEventList> 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. |
Method Detail |
---|
void start() throws Exception
Exception
void speak(String text)
text
- the text to speakvoid close()
void addRequestListener(org.robokind.api.common.utils.Listener<SpeechRequest> listener)
listener
- the Listener to be notifiedvoid removeRequestListener(org.robokind.api.common.utils.Listener<SpeechRequest> listener)
listener
- the Listener to removevoid addSpeechEventListener(org.robokind.api.common.utils.Listener<SpeechEventList> listener)
listener
- the Listener to be notifiedvoid removeSpeechEventListener(org.robokind.api.common.utils.Listener<SpeechEventList> listener)
listener
- the Listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |