speaker-calibration 2.2.228 → 2.2.229
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 +1566 -1525
- package/dist/listener.js +2 -2
- package/dist/main.js +1 -1
- package/dist/phonePeer.js +2 -2
- package/package.json +1 -1
- package/src/peer-connection/listener.js +0 -16
- package/src/peer-connection/speaker.js +1 -0
package/package.json
CHANGED
|
@@ -55,7 +55,6 @@ class Listener extends AudioPeer {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
sendSamplingRate = sampleRate => {
|
|
58
|
-
this.displayUpdate('Listener - sendSamplingRate');
|
|
59
58
|
this.connectionManager.send({
|
|
60
59
|
name: 'SoundCalibration',
|
|
61
60
|
payload: {
|
|
@@ -66,7 +65,6 @@ class Listener extends AudioPeer {
|
|
|
66
65
|
};
|
|
67
66
|
|
|
68
67
|
sendSampleSize = sampleSize => {
|
|
69
|
-
this.displayUpdate('Listener - sendSampleSize');
|
|
70
68
|
this.connectionManager.send({
|
|
71
69
|
name: 'SoundCalibration',
|
|
72
70
|
payload: {
|
|
@@ -77,7 +75,6 @@ class Listener extends AudioPeer {
|
|
|
77
75
|
};
|
|
78
76
|
|
|
79
77
|
sendFlags = flags => {
|
|
80
|
-
this.displayUpdate('Listener - sendFlags');
|
|
81
78
|
this.connectionManager.send({
|
|
82
79
|
name: 'SoundCalibration',
|
|
83
80
|
payload: {
|
|
@@ -142,10 +139,6 @@ class Listener extends AudioPeer {
|
|
|
142
139
|
console.log(track);
|
|
143
140
|
const capabilities = track.getCapabilities();
|
|
144
141
|
|
|
145
|
-
this.displayUpdate(
|
|
146
|
-
`Listener Track Capabilities - ${JSON.stringify(capabilities, undefined, 2)}`
|
|
147
|
-
);
|
|
148
|
-
|
|
149
142
|
const constraints = track.getConstraints();
|
|
150
143
|
|
|
151
144
|
if (capabilities.echoCancellation) {
|
|
@@ -164,8 +157,6 @@ class Listener extends AudioPeer {
|
|
|
164
157
|
constraints.channelCount = 1;
|
|
165
158
|
}
|
|
166
159
|
|
|
167
|
-
this.displayUpdate(`Listener Track Constraints - ${JSON.stringify(constraints, undefined, 2)}`);
|
|
168
|
-
|
|
169
160
|
// await the promise
|
|
170
161
|
try {
|
|
171
162
|
await track.applyConstraints(constraints);
|
|
@@ -261,13 +252,6 @@ class Listener extends AudioPeer {
|
|
|
261
252
|
//audio: {echoCancellation: false, noiseSuppression: false, autoGainControl: false, deviceId: {exact: await this.getDeviceIdByLabel(this.microphoneDeviceId) }},
|
|
262
253
|
})
|
|
263
254
|
.then(stream => {
|
|
264
|
-
this.displayUpdate(
|
|
265
|
-
`Listener Track settings before applied constraints - ${JSON.stringify(
|
|
266
|
-
stream.getAudioTracks()[0].getSettings(),
|
|
267
|
-
undefined,
|
|
268
|
-
2
|
|
269
|
-
)}`
|
|
270
|
-
);
|
|
271
255
|
this.applyHQTrackConstraints(stream)
|
|
272
256
|
.then(settings => {
|
|
273
257
|
console.log(settings);
|
|
@@ -163,6 +163,7 @@ class Speaker extends AudioPeer {
|
|
|
163
163
|
|
|
164
164
|
await speaker.connectionManager.waitForPeerConnection();
|
|
165
165
|
await speaker.connectionManager.resolveWhenHandshakeReceived();
|
|
166
|
+
speaker.connectionManager.sendPageTitle('EasyEyes Microphone');
|
|
166
167
|
|
|
167
168
|
// Send connection parameters to the listener
|
|
168
169
|
speaker.connectionManager.send(speaker.prepareConnectionParams());
|