qisdk / com.aldebaran.qi.sdk.object.conversation / Listen

Listen

interface Listen

Action to make the robot listen to and recognize a specific set of phrases pronounced by a user. On recognition success, a ListenResult gives the heard phrase and the matching PhraseSet.

Since
1

Types

Async

interface Async

OnStartedListener

Listener for started signal

interface OnStartedListener

Functions

addOnStartedListener

Add a OnStartedListener

abstract fun addOnStartedListener(onStartedListener: OnStartedListener!): Unit

async

abstract fun async(): Async!

removeAllOnStartedListeners

Remove all OnStartedListener

abstract fun removeAllOnStartedListeners(): Unit

removeOnStartedListener

Remove a OnStartedListener

abstract fun removeOnStartedListener(onStartedListener: OnStartedListener!): Unit

run

Make the robot listen for the specific phraseSet. When a phrase from the phrase sets is recognized, the resulting future finishes with a ListenResult.

abstract fun run(): ListenResult!

setOnStartedListener

Set a OnStartedListener

abstract fun setOnStartedListener(onStartedListener: OnStartedListener!): Unit