qisdk / com.aldebaran.qi.sdk.builder / SayBuilder

SayBuilder

open class SayBuilder

Build a new Say

Functions

build

Return a configured instance of Say

open fun build(): Say!

buildAsync

Return a configured instance of Say

open fun buildAsync(): Future<Say!>!

with

Create a new builder from the QiContext

open static fun with(context: QiContext!): SayBuilder!

Create a new builder from the SpeechEngine

open static fun with(speechEngine: SpeechEngine!): SayBuilder!

withBodyLanguageOption

Configure the bodyLanguageOption used by Say

open fun withBodyLanguageOption(bodyLanguageOption: BodyLanguageOption!): SayBuilder!

withLocale

Configure the locale used by Say

open fun withLocale(locale: Locale!): SayBuilder!

withPhrase

Configure the phrase used by Say

open fun withPhrase(phrase: Phrase!): SayBuilder!

withResource

Configure the text used by Say

open fun withResource(resId: Int, vararg formatArgs: Any!): SayBuilder!

withText

Configure the text used by Say

open fun withText(text: String!): SayBuilder!