speaker-calibration 2.2.144 → 2.2.146
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 +10374 -10527
- package/dist/main.js +3 -3
- package/package.json +1 -1
- package/src/peer-connection/speaker.js +2 -0
- package/src/tasks/combination/combination.js +5 -0
package/package.json
CHANGED
|
@@ -99,6 +99,7 @@ class Speaker extends AudioPeer {
|
|
|
99
99
|
params.calibrateSoundBurstDb,
|
|
100
100
|
params.calibrateSoundBurstFilteredExtraDb,
|
|
101
101
|
params.calibrateSoundBurstLevelReTBool,
|
|
102
|
+
params.calibrateSoundBurstUses1000HzGainBool,
|
|
102
103
|
params.calibrateSoundBurstRepeats,
|
|
103
104
|
params.calibrateSoundBurstSec,
|
|
104
105
|
params.calibrateSoundBurstsWarmup,
|
|
@@ -503,6 +504,7 @@ class Speaker extends AudioPeer {
|
|
|
503
504
|
params.calibrateSoundBurstDb,
|
|
504
505
|
params.calibrateSoundBurstFilteredExtraDb,
|
|
505
506
|
params.calibrateSoundBurstLevelReTBool,
|
|
507
|
+
params.calibrateSoundBurstUses1000HzGainBool,
|
|
506
508
|
params.calibrateSoundBurstRepeats,
|
|
507
509
|
params.calibrateSoundBurstSec,
|
|
508
510
|
params.calibrateSoundBurstsWarmup,
|
|
@@ -279,6 +279,7 @@ class Combination extends AudioCalibrator {
|
|
|
279
279
|
componentFMaxHz = 0;
|
|
280
280
|
|
|
281
281
|
L_new_n;
|
|
282
|
+
fs2;
|
|
282
283
|
|
|
283
284
|
/**generate string template that gets reevaluated as variable increases */
|
|
284
285
|
generateTemplate = () => {
|
|
@@ -568,6 +569,7 @@ class Combination extends AudioCalibrator {
|
|
|
568
569
|
});
|
|
569
570
|
this.autocorrelations.push(res['autocorrelation']);
|
|
570
571
|
this.L_new_n = res['L_new_n'];
|
|
572
|
+
this.fs2 = res['fs2'];
|
|
571
573
|
return res['ir'];
|
|
572
574
|
}
|
|
573
575
|
})
|
|
@@ -2468,6 +2470,7 @@ class Combination extends AudioCalibrator {
|
|
|
2468
2470
|
_calibrateSoundBurstDb = -18,
|
|
2469
2471
|
_calibrateSoundBurstFilteredExtraDb = 6,
|
|
2470
2472
|
_calibrateSoundBurstLevelReTBool = false,
|
|
2473
|
+
_calibrateSoundBurstUses1000HzGainBool = false,
|
|
2471
2474
|
_calibrateSoundBurstRepeats = 3,
|
|
2472
2475
|
_calibrateSoundBurstSec = 1,
|
|
2473
2476
|
_calibrateSoundBurstsWarmup = 1,
|
|
@@ -2515,6 +2518,7 @@ class Combination extends AudioCalibrator {
|
|
|
2515
2518
|
this._calibrateSoundBackgroundSecs = _calibrateSoundBackgroundSecs;
|
|
2516
2519
|
this._calibrateSoundSmoothOctaves = _calibrateSoundSmoothOctaves;
|
|
2517
2520
|
this._calibrateSoundPowerBinDesiredSec = _calibrateSoundPowerBinDesiredSec;
|
|
2521
|
+
this._calibrateSoundBurstUses1000HzGainBool = _calibrateSoundBurstUses1000HzGainBool;
|
|
2518
2522
|
this._calibrateSoundPowerDbSDToleratedDb = _calibrateSoundPowerDbSDToleratedDb;
|
|
2519
2523
|
this.webAudioDeviceNames = webAudioDeviceNames;
|
|
2520
2524
|
if (isSmartPhone) this.webAudioDeviceNames.microphone = this.deviceInfo.microphoneFromAPI;
|
|
@@ -2667,6 +2671,7 @@ class Combination extends AudioCalibrator {
|
|
|
2667
2671
|
impulseResponseResults['system']['fMaxHz'] = this.systemFMaxHz;
|
|
2668
2672
|
impulseResponseResults['component']['fMaxHz'] = this.componentFMaxHz;
|
|
2669
2673
|
impulseResponseResults['L_new_n'] = this.L_new_n;
|
|
2674
|
+
impulseResponseResults['fs2'] = this.fs2;
|
|
2670
2675
|
|
|
2671
2676
|
if (componentIR != null) {
|
|
2672
2677
|
// I corrected microphone/loudpeaker IR scale in easyeyes,
|