public void write(byte[] buffer){
  if (isFinal) {
    log.warning("attempting to write to a final SpeechData object");
    return;
  }
  byte[] newData=new byte[data.length + buffer.length];
  System.arraycopy(data,0,newData,0,data.length);
  System.arraycopy(buffer,0,newData,data.length,buffer.length);
  data=newData;
}

public void write ( byte [ ] buffer ) { if ( isFinal ) { log . warning ( "attempting to write to a final SpeechData object" ) ; return ; } byte [ ] newData = new byte [ data . length + buffer . length ] ; System . arraycopy ( data , 0 , newData , 0 , data . length ) ; System . arraycopy ( buffer , 0 , newData , data . length , buffer . length ) ; data = newData ; }
expands the current speech data by appending a new buffer of audio data
