speaker-calibration 2.2.78 → 2.2.80
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.
|
@@ -171,8 +171,10 @@ window.onload = () => {
|
|
|
171
171
|
const speakerParameters = {
|
|
172
172
|
siteUrl: window.location.href.substring(0, location.href.lastIndexOf('/')),
|
|
173
173
|
targetElementId: 'display',
|
|
174
|
-
soundMessageId:'speak123',
|
|
175
|
-
calibrateSoundSamplingDesiredBits: document.getElementById(
|
|
174
|
+
soundMessageId: 'speak123',
|
|
175
|
+
calibrateSoundSamplingDesiredBits: document.getElementById(
|
|
176
|
+
'calibrateSoundSamplingDesiredBitsBox'
|
|
177
|
+
).value,
|
|
176
178
|
// gainValues: [0.1, 0.5, 0.9], // example gain values
|
|
177
179
|
// gainValues: [
|
|
178
180
|
// 0.6998419960022735, 0.44668359215096315, 0.31622776601683794, 0.17782794100389226, 0.1,
|
|
@@ -220,7 +222,9 @@ window.onload = () => {
|
|
|
220
222
|
mlsOrder: document.getElementById('mlsOrder').value,
|
|
221
223
|
download: document.getElementById('flexSwitchCheckDownload').checked,
|
|
222
224
|
calibrateSoundHz: document.getElementById('calibrateSoundHzBox').value,
|
|
223
|
-
calibrateSoundSamplingDesiredBits: document.getElementById(
|
|
225
|
+
calibrateSoundSamplingDesiredBits: document.getElementById(
|
|
226
|
+
'calibrateSoundSamplingDesiredBitsBox'
|
|
227
|
+
).value,
|
|
224
228
|
};
|
|
225
229
|
|
|
226
230
|
const calibrator = new CombinationCalibration(calibratorParams);
|
|
@@ -231,9 +235,6 @@ window.onload = () => {
|
|
|
231
235
|
|
|
232
236
|
try {
|
|
233
237
|
if (calibrationLevel == 0) {
|
|
234
|
-
const trial = await Speaker.getMicrophoneNamesFromDatabase().then(microphoneList => {
|
|
235
|
-
console.log('microphoneList', microphoneList);
|
|
236
|
-
});
|
|
237
238
|
invertedIR = await Speaker.startCalibration(speakerParameters, calibrator);
|
|
238
239
|
console.log({invertedIR});
|
|
239
240
|
await useIRResult(invertedIR);
|