Conversation Feedbacks

Providing feedbacks is essential to be sure that Humans really understand what’s going on when talking with Pepper.

A bar, called SpeechBar, is displayed on the top of the tablet. It helps to understand if the robot is listening, hearing something and what has been understood.

Listening States

../_images/listen_sign_feedback.png

When Pepper is listening, his:

  • SpeechBar is blue,
  • shoulders are also blue.

When Pepper is not listening, his:

  • SpeechBar is grey,
  • shoulders are off.

Additional tips

Hearing Human Voice

../_images/bar_listening_hearing.png

Not Understood

../_images/bar_listening_not_understood.png

Understood

../_images/bar_not_listening_understood.png

The SpeechBar displays the understood text.

Customizing SpeechBar display

In order to adapt to many interfaces, RobotActivity provides multiple SpeechBar display strategies. The default DisplayStrategy is ALWAYS.

The allowed strategies are stored in the SpeechBarDisplayStrategy enum.

public enum SpeechBarDisplayStrategy {
   /*
    * Strategy that always displays the SpeechBar
    */
    ALWAYS,

   /*
    * Strategy that only displays the SpeechBar when running a Conversation action
    * The bar will automatically appear and disappear overlapping the content in a way similar to notifications
    */
    OVERLAY,
}
  • ALWAYS: the bar is always shown.
  • OVERLAY: the bar appears each time the robot starts listening. The bar disappears when the robot is not listening for more than 8 seconds.

To select another displayStrategy you may use the method setSpeechBarDisplayStrategy.

public class SpeechBarActivity extends RobotActivity implements RobotLifecycleCallbacks {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setSpeechBarDisplayStrategy(SpeechBarDisplayStrategy.OVERLAY);
        setContentView(R.layout.activity_sample);

        QiSDK.register(this, this);
    }
}