if (audioPlayer instanceof JavaStreamingAudioPlayer) { streamUtterance(utterance, (JavaStreamingAudioPlayer) audioPlayer); } else { playUtterance(utterance);
int totalSize; try { totalSize = utterance.getInt("mbrolaAudioLength"); } catch (NullPointerException npe) { totalSize = 0; }  audioPlayer.begin(totalSize);  for (Iterator it = audioData.iterator(); it.hasNext();) { byte[] bytes = (byte[]) it.next(); if (!audioPlayer.write(bytes)) { throw new ProcessException ("Cannot write audio data to audio player"); } }  if (!audioPlayer.end()) { throw new ProcessException("audio player reports problem");
    public void processUtterance(Utterance utterance) throws ProcessException {	AudioPlayer audioPlayer = utterance.getVoice().getAudioPlayer();	audioPlayer.setAudioFormat(MBROLA_AUDIO);	audioPlayer.setVolume(utterance.getVoice().getVolume());	utterance.getVoice().log("=== " +                                 utterance.getString("input_text"));        if (audioPlayer instanceof JavaStreamingAudioPlayer) {            streamUtterance(utterance, (JavaStreamingAudioPlayer) audioPlayer);        } else {            playUtterance(utterance);        }    }