    if (textToSpeech == null) {
      throw new IllegalStateException("You forgot to call AndroidTextToSpeech.initialize!");
    }
    try {
      waitForInitializationToFinish();
      return textToSpeech.isLanguageAvailable(locale) == LANG_COUNTRY_VAR_AVAILABLE;
    } catch (InterruptedException e) {
      RobotLog.ww(TAG, e, "InterruptedException thrown while waiting for TTS initialization");
      Thread.currentThread().interrupt();
      return false;
    }