speaker-calibration 2.2.236 → 2.2.237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/listener.js +1 -1
- package/dist/main.js +1 -1
- package/dist/phonePeer.js +1 -1
- package/package.json +1 -1
- package/src/tasks/combination/combination.js +3 -3
package/package.json
CHANGED
|
@@ -631,7 +631,8 @@ class Combination extends AudioCalibrator {
|
|
|
631
631
|
// Slice the array from the calculated start index to the end of the array
|
|
632
632
|
const background_rec = background_rec_whole.slice(startIndex);
|
|
633
633
|
console.log('Sending background recording to server for processing');
|
|
634
|
-
this.
|
|
634
|
+
let backgroundSec = (this._calibrateSoundBackgroundSecs + 0.5);
|
|
635
|
+
this.addTimeStamp(`Record ${backgroundSec.toFixed(1)} s of background.`);
|
|
635
636
|
const fBackground = this.sourceSamplingRate / this._calibrateSoundBurstDownsample;
|
|
636
637
|
const background_rec_downsampled = this.downsampleSignal(
|
|
637
638
|
background_rec,
|
|
@@ -651,6 +652,7 @@ class Combination extends AudioCalibrator {
|
|
|
651
652
|
this.background_noise['y_background'] = res['y_background'];
|
|
652
653
|
this.background_noise['recording'] = background_rec;
|
|
653
654
|
}
|
|
655
|
+
this.addTimeStamp('Compute PSD of background');
|
|
654
656
|
})
|
|
655
657
|
.catch(err => {
|
|
656
658
|
console.error(err);
|
|
@@ -2164,8 +2166,6 @@ class Combination extends AudioCalibrator {
|
|
|
2164
2166
|
);
|
|
2165
2167
|
this.incrementStatusBar();
|
|
2166
2168
|
}
|
|
2167
|
-
let backgroundSec = (this._calibrateSoundBackgroundSecs + 0.5);
|
|
2168
|
-
this.addTimeStamp(`Record ${backgroundSec.toFixed(1)} s of background.`);
|
|
2169
2169
|
this.mode = 'unfiltered';
|
|
2170
2170
|
this.numSuccessfulCaptured = 0;
|
|
2171
2171
|
|