public interface Speech
| Modifier and Type | Method and Description |
|---|---|
String[] |
listVoices()
Method to get a complete list of the voices this functionality
can use.
|
void |
setVoice(String voiceName)
Set the voice you wish to use when speaking text
If the voice does not exist in the available list
the default boice should be used.
|
void |
speakText(String text)
Method to actually speak the text passed in.
|
boolean |
speechAvailible()
A flag to specify if we can currently speak text.
|
void setVoice(String voiceName)
voiceName - A string representing the name of the voiceboolean speechAvailible()
String[] listVoices()
void speakText(String text)
text - String of text to be spoken.Copyright © 2017. All rights reserved.