public interface SpeechEngine
Modifier and Type | Interface and Description |
---|---|
static interface |
SpeechEngine.Async |
static interface |
SpeechEngine.OnSayingChangedListener
Listener for saying property changed event
|
Modifier and Type | Method and Description |
---|---|
void |
addOnSayingChangedListener(SpeechEngine.OnSayingChangedListener onSayingChangedListener)
Add a property changed listener for saying
|
SpeechEngine.Async |
async() |
Phrase |
getSaying()
Exposes the property saying value
|
Say |
makeSay(Phrase phrase)
Create a say action.
|
Say |
makeSay(Phrase phrase,
BodyLanguageOption bodyLanguageOption)
Create a say action.
|
Say |
makeSay(Phrase phrase,
BodyLanguageOption bodyLanguageOption,
Locale locale)
Create a say action.
|
void |
removeAllOnSayingChangedListeners()
Remove all saying changed listeners
|
void |
removeOnSayingChangedListener(SpeechEngine.OnSayingChangedListener onSayingChangedListener)
Remove a property changed listener for saying
|
void |
setOnSayingChangedListener(SpeechEngine.OnSayingChangedListener onSayingChangedListener)
Deprecated.
|
SpeechEngine.Async async()
Say makeSay(Phrase phrase)
phrase
- The phrase to say.Say makeSay(Phrase phrase, BodyLanguageOption bodyLanguageOption)
phrase
- The phrase to say.bodyLanguageOption
- The body language policy to apply.
"neutral" policy: the robot chooses animations to perform accordingly to the spoken words and the syntactic structure of the phrase.Say makeSay(Phrase phrase, BodyLanguageOption bodyLanguageOption, Locale locale)
phrase
- The phrase to say.bodyLanguageOption
- The body language policy to apply.
"neutral" policy: the robot chooses animations to perform accordingly to the spoken words and the syntactic structure of the phrase.locale
- The locale to be used to say the text.Phrase getSaying()
The Phrase said by a Say action from this factory while it is running. This value is set when a Say action from this factory starts running and set to an empty Phrase when the action stops.
@Deprecated void setOnSayingChangedListener(SpeechEngine.OnSayingChangedListener onSayingChangedListener)
onSayingChangedListener
- the listenervoid addOnSayingChangedListener(SpeechEngine.OnSayingChangedListener onSayingChangedListener)
onSayingChangedListener
- the listenervoid removeOnSayingChangedListener(SpeechEngine.OnSayingChangedListener onSayingChangedListener)
onSayingChangedListener
- the listenervoid removeAllOnSayingChangedListeners()