while (is.available() > 0) getch();   os.write((s + "\n").getBytes()); os.flush();  while (true) if (getch() == '>') if (getch() == ' ') break;
if (toSetVolume) {  double amplitude = 4.0 * Math.pow(10.0, ((double) volumeOffset / 20.0)); String amplitudeStr = df.format(amplitude);  doFestival("(set! after_synth_hooks (list (lambda (utt) (utt.wave.rescale utt "+amplitudeStr+"))))"); doFestival("(Parameter.set 'Duration_Stretch 1.5)"); toSetVolume = false; } doFestival(s);
  private void festival(String s) throws IOException {      // Do nothing if there's no speech executable.    if (!supported)      return;        try {      startSynthProcess();      while (is.available() > 0)	getch();        //    System.out.println(s);      os.write((s + "\n").getBytes());      os.flush();      while (true)	if (getch() == '>')	  if (getch() == ' ')	    break;       //    System.out.println();    }    catch (IOException e) {      abort();      throw e;    }  }