private boolean lineToSpeech(String path){
  boolean ok=true;
  voice.startBatch();
  try {
    BufferedReader reader=new BufferedReader(new FileReader(path));
    String line;
    while ((line=reader.readLine()) != null && ok) {
      ok=textToSpeech(line);
    }
    reader.close();
  }
 catch (  IOException ioe) {
    voice.error("can't read " + path);
  }
  voice.endBatch();
  return ok;
}

private boolean lineToSpeech ( String path ) { boolean ok = true ; voice . startBatch ( ) ; try { BufferedReader reader = new BufferedReader ( new FileReader ( path ) ) ; String line ; while ( ( line = reader . readLine ( ) ) != null && ok ) { ok = textToSpeech ( line ) ; } reader . close ( ) ; } catch ( IOException ioe ) { voice . error ( "can't read " + path ) ; } voice . endBatch ( ) ; return ok ; }
reads the file pointed to by the given path and renders each line as speech individually .
