@Override
  protected void onCreate(Bundle savedInstanceState) {
    // Requests a voice menu on this activity.
    getWindow().requestFeature(WindowUtils.FEATURE_VOICE_COMMANDS);
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_training);
    // init
    audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
    // textSpeaker = TextSpeaker(getApplicationContext());
    timerTextView = (TextView) findViewById(R.id.timer_texview);
    playPauseImageView = (ImageView) findViewById(R.id.play_pause_imageview);
    countDownTimer =
        new CountDownTimer(STEP_DISPLAY_TIME + 1000, 1000) {

          public void onTick(long millisUntilFinished) {
            if (play) {
              currentTime = millisUntilFinished / 1000;
              timerTextView.setText(currentTime + "S");
            }
          }

          public void onFinish() {}
        };
    Intent mIntent = getIntent();
    currentFoodItemNumber = mIntent.getIntExtra("currentFoodItemNumber", 0);
    trainingLayout = (RelativeLayout) findViewById(R.id.training_layout);
    if (currentFoodItemNumber != 0) {
      initializeFoodItem();
      displayStepImage();
    }

    try {
      mAri =
          ActiveAri.getInstance(getString(R.string.ari_license_key), this)
              .addListeners(this)
              .addErrorCallback(this);
    } catch (final KeyDecodingException e) {
      Log.e(TAG, "Failed to init Ari: ", e);
      finish();
    }

    startTraining();
  }