code: public void speak(String text) {
          if (voice == null) {
              throw new IllegalStateException("Cannot find a voice named " + voiceName);
          }
          voice.speak(text);
      }
docs: Synthesizes speech of the given text and plays immediately.
  
  @param text the text that will be transformed to speech