code: public void trim(double leftTrimSecond, double rightTrimSecond) {
  
          int sampleRate = waveHeader.getSampleRate();
          int bitsPerSample = waveHeader.getBitsPerSample();
          int channels = waveHeader.getChannels();
  
          int leftTrimNumberOfSample = (int) (sampleRate * bitsPerSample / 8 * channels * leftTrimSecond);
          int rightTrimNumberOfSample = (int) (sampleRate * bitsPerSample / 8 * channels * rightTrimSecond);
  
          trim(leftTrimNumberOfSample, rightTrimNumberOfSample);
      }
docs: Trim the wave data
  
  @param leftTrimSecond
  Seconds trimmed from beginning
  @param rightTrimSecond
  Seconds trimmed from ending