index.js
/**
   * Append buffer to current active speech
   * @param  {Buffer} buffer - Chunk of current silence or speech
   */
Append buffer to current active speech
@param  {Buffer} buffer - Chunk of current silence or speech
Append buffer to current active speech @param { Buffer } buffer - Chunk of current silence or speech
appendToActiveSpeechBuffer(buffer) {
    if (typeof(this.activeSpeechBuffer) !== 'object') {
      this.activeSpeechBuffer = buffer;
    } else {
      let bufferLength = this.activeSpeechBuffer.length + buffer.length;
      let bufferList = [this.activeSpeechBuffer, buffer];
      this.activeSpeechBuffer = Buffer.concat(bufferList, bufferLength);
    }
  }
appendToActiveSpeechBuffer ( buffer ) { if ( typeof ( this . activeSpeechBuffer ) !== 'object' ) { this . activeSpeechBuffer = buffer ; } else { let bufferLength = this . activeSpeechBuffer . length + buffer . length ; let bufferList = [ this . activeSpeechBuffer , buffer ] ; this . activeSpeechBuffer = Buffer . concat ( bufferList , bufferLength ) ; } }
Append buffer to current active speech
 @param  {Buffer} buffer - Chunk of current silence or speech
Append buffer to current active speech @param { Buffer } buffer - Chunk of current silence or speech
// append to the buffer of active speech