speaker-calibration 2.2.181 → 2.2.182
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/example/i18n.js +2249 -1969
- package/dist/main.js +4 -4
- package/package.json +1 -1
- package/src/peer-connection/speaker.js +2 -0
- package/src/server/PythonServerAPI.js +4 -0
- package/src/tasks/combination/combination.js +6 -3
package/package.json
CHANGED
|
@@ -191,6 +191,7 @@ class Speaker extends AudioPeer {
|
|
|
191
191
|
params.calibrateSound1000HzPostSec,
|
|
192
192
|
params.calibrateSoundBackgroundSecs,
|
|
193
193
|
params.calibrateSoundSmoothOctaves,
|
|
194
|
+
params.calibrateSoundSmoothMinBandwidthHz,
|
|
194
195
|
params.calibrateSoundPowerBinDesiredSec,
|
|
195
196
|
params.calibrateSoundPowerDbSDToleratedDb,
|
|
196
197
|
params.calibrateSoundTaperSec,
|
|
@@ -692,6 +693,7 @@ await fetch(url, options)
|
|
|
692
693
|
params.calibrateSound1000HzPostSec,
|
|
693
694
|
params.calibrateSoundBackgroundSecs,
|
|
694
695
|
params.calibrateSoundSmoothOctaves,
|
|
696
|
+
params.calibrateSoundSmoothMinBandwidthHz,
|
|
695
697
|
params.calibrateSoundPowerBinDesiredSec,
|
|
696
698
|
params.calibrateSoundPowerDbSDToleratedDb,
|
|
697
699
|
params.calibrateSoundTaperSec,
|
|
@@ -426,6 +426,7 @@ class PythonServerAPI {
|
|
|
426
426
|
mlsAmplitude,
|
|
427
427
|
irLength,
|
|
428
428
|
calibrateSoundSmoothOctaves,
|
|
429
|
+
calibrateSoundSmoothMinBandwidthHz,
|
|
429
430
|
calibrateSoundBurstFilteredExtraDb,
|
|
430
431
|
calibrateSoundIIRPhase
|
|
431
432
|
}) => {
|
|
@@ -447,6 +448,7 @@ class PythonServerAPI {
|
|
|
447
448
|
mlsAmplitude,
|
|
448
449
|
irLength,
|
|
449
450
|
calibrateSoundSmoothOctaves,
|
|
451
|
+
calibrateSoundSmoothMinBandwidthHz,
|
|
450
452
|
calibrateSoundBurstFilteredExtraDb,
|
|
451
453
|
calibrateSoundIIRPhase
|
|
452
454
|
});
|
|
@@ -583,6 +585,7 @@ class PythonServerAPI {
|
|
|
583
585
|
mlsAmplitude,
|
|
584
586
|
irLength,
|
|
585
587
|
calibrateSoundSmoothOctaves,
|
|
588
|
+
calibrateSoundSmoothMinBandwidthHz,
|
|
586
589
|
calibrateSoundBurstFilteredExtraDb,
|
|
587
590
|
calibrateSoundIIRPhase
|
|
588
591
|
}) => {
|
|
@@ -603,6 +606,7 @@ class PythonServerAPI {
|
|
|
603
606
|
mlsAmplitude,
|
|
604
607
|
irLength,
|
|
605
608
|
calibrateSoundSmoothOctaves,
|
|
609
|
+
calibrateSoundSmoothMinBandwidthHz,
|
|
606
610
|
calibrateSoundBurstFilteredExtraDb,
|
|
607
611
|
calibrateSoundIIRPhase
|
|
608
612
|
});
|
|
@@ -461,6 +461,7 @@ class Combination extends AudioCalibrator {
|
|
|
461
461
|
mlsAmplitude: Math.pow(10, this.power_dB / 20),
|
|
462
462
|
irLength,
|
|
463
463
|
calibrateSoundSmoothOctaves: this._calibrateSoundSmoothOctaves,
|
|
464
|
+
calibrateSoundSmoothMinBandwidthHz: this._calibrateSoundSmoothMinBandwidthHz,
|
|
464
465
|
calibrateSoundBurstFilteredExtraDb: this._calibrateSoundBurstFilteredExtraDb,
|
|
465
466
|
calibrateSoundIIRPhase: this.calibrateSoundIIRPhase
|
|
466
467
|
})
|
|
@@ -2680,6 +2681,7 @@ class Combination extends AudioCalibrator {
|
|
|
2680
2681
|
calibrateSound1000HzPostSec = 0.5,
|
|
2681
2682
|
_calibrateSoundBackgroundSecs = 0,
|
|
2682
2683
|
_calibrateSoundSmoothOctaves = 0.33,
|
|
2684
|
+
_calibrateSoundSmoothMinBandwidthHz = 200,
|
|
2683
2685
|
_calibrateSoundPowerBinDesiredSec = 0.2,
|
|
2684
2686
|
_calibrateSoundPowerDbSDToleratedDb = 1,
|
|
2685
2687
|
_calibrateSoundTaperSec = 0.01,
|
|
@@ -2697,7 +2699,7 @@ class Combination extends AudioCalibrator {
|
|
|
2697
2699
|
userIDs,
|
|
2698
2700
|
restartButton,
|
|
2699
2701
|
reminder,
|
|
2700
|
-
calibrateSoundLimit
|
|
2702
|
+
calibrateSoundLimit
|
|
2701
2703
|
) => {
|
|
2702
2704
|
this.TAPER_SECS = _calibrateSoundTaperSec;
|
|
2703
2705
|
this.calibrateSoundLimit = calibrateSoundLimit;
|
|
@@ -2719,6 +2721,7 @@ class Combination extends AudioCalibrator {
|
|
|
2719
2721
|
this.desired_sampling_rate = _calibrateSoundHz;
|
|
2720
2722
|
this._calibrateSoundBackgroundSecs = _calibrateSoundBackgroundSecs;
|
|
2721
2723
|
this._calibrateSoundSmoothOctaves = _calibrateSoundSmoothOctaves;
|
|
2724
|
+
this._calibrateSoundSmoothMinBandwidthHz = _calibrateSoundSmoothMinBandwidthHz;
|
|
2722
2725
|
this._calibrateSoundPowerBinDesiredSec = _calibrateSoundPowerBinDesiredSec;
|
|
2723
2726
|
this._calibrateSoundBurstUses1000HzGainBool = _calibrateSoundBurstUses1000HzGainBool;
|
|
2724
2727
|
this._calibrateSoundPowerDbSDToleratedDb = _calibrateSoundPowerDbSDToleratedDb;
|
|
@@ -2787,8 +2790,8 @@ class Combination extends AudioCalibrator {
|
|
|
2787
2790
|
await this.readFrqGainFromFirestore(ID, OEM, true).then(data => {
|
|
2788
2791
|
if (data !== null) {
|
|
2789
2792
|
this.componentIR = data.ir;
|
|
2790
|
-
micInfo['parentTimestamp'] = data.createDate;
|
|
2791
|
-
micInfo['parentFilenameJSON'] = data.jsonFileName;
|
|
2793
|
+
micInfo['parentTimestamp'] = data.createDate ? data.createDate : new Date();
|
|
2794
|
+
micInfo['parentFilenameJSON'] = data.jsonFileName ? data.jsonFileName : '';
|
|
2792
2795
|
}
|
|
2793
2796
|
});
|
|
2794
2797
|
|