speaker-calibration 2.2.263 → 2.2.264
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 +7884 -7898
- package/dist/listener.js +1 -1
- package/dist/main.js +3 -3
- package/dist/phonePeer.js +1 -1
- package/package.json +1 -1
- package/src/peer-connection/speaker.js +6 -3
- package/src/tasks/combination/combination.js +3 -3
- package/src/utils.js +1 -1
package/package.json
CHANGED
|
@@ -525,8 +525,8 @@ class Speaker extends AudioPeer {
|
|
|
525
525
|
explanation.style.lineHeight = '1.5';
|
|
526
526
|
explanation.innerHTML = formatLineBreak(
|
|
527
527
|
this.phrases.RC_skipQR_ExplanationWithoutPreferNot[this.language]
|
|
528
|
-
.replace('xxx', `<b style="user-select: text">${shortURL}</b>`)
|
|
529
|
-
.replace('
|
|
528
|
+
.replace('[[xxx]]', `<b style="user-select: text">${shortURL}</b>`)
|
|
529
|
+
.replace('[[XXX]]', `<b style="user-select: text">${shortURL}</b>`),
|
|
530
530
|
this.phrases.RC_checkInternetConnection[this.language]
|
|
531
531
|
);
|
|
532
532
|
|
|
@@ -629,7 +629,10 @@ class Speaker extends AudioPeer {
|
|
|
629
629
|
const timeToCalibrateDisplay = document.getElementById(this.timeToCalibrateDisplay);
|
|
630
630
|
if (timeToCalibrateDisplay) {
|
|
631
631
|
const timeToCalibrateText = this.phrases.RC_howLongToCalibrate[this.language];
|
|
632
|
-
timeToCalibrateDisplay.innerHTML = timeToCalibrateText.replace(
|
|
632
|
+
timeToCalibrateDisplay.innerHTML = timeToCalibrateText.replace(
|
|
633
|
+
'[[111]]',
|
|
634
|
+
this.timeToCalibrate
|
|
635
|
+
);
|
|
633
636
|
timeToCalibrateDisplay.style.fontWeight = 'normal';
|
|
634
637
|
timeToCalibrateDisplay.style.fontSize = '1rem';
|
|
635
638
|
// timeToCalibrateDisplay.style.paddingTop = '20px';
|
|
@@ -375,9 +375,9 @@ class Combination extends AudioCalibrator {
|
|
|
375
375
|
: '';
|
|
376
376
|
|
|
377
377
|
const samplingParamText = this.phrases.RC_SamplingHzBits[this.language]
|
|
378
|
-
.replace('
|
|
379
|
-
.replace('
|
|
380
|
-
.replace('
|
|
378
|
+
.replace('[[111]]', this.sourceSamplingRate)
|
|
379
|
+
.replace('[[222]]', this.sinkSamplingRate)
|
|
380
|
+
.replace('[[333]]', this.calibrateSoundSamplingDesiredBits);
|
|
381
381
|
const reportParameters = `${simulateText}${samplingParamText} ↓${this._calibrateSoundBurstDownsample}:1`;
|
|
382
382
|
if (this.flags) {
|
|
383
383
|
flags = `<br> autoGainControl: ${this.flags.autoGainControl}, echoCancellation: ${this.flags.echoCancellation}, noiseSuppression: ${this.flags.noiseSuppression}`;
|
package/src/utils.js
CHANGED
|
@@ -136,7 +136,7 @@ function interpolate(x, x0, x1, y0, y1) {
|
|
|
136
136
|
export const formatLineBreak = (inputStr, checkInternetConnection) => {
|
|
137
137
|
let finalStr = inputStr
|
|
138
138
|
.replace(/\n/g, '<br>')
|
|
139
|
-
.replace('
|
|
139
|
+
.replace('[[LLL]]', `<a href="#" id="check-connection">${checkInternetConnection}</a>`);
|
|
140
140
|
|
|
141
141
|
console.log(finalStr);
|
|
142
142
|
|