@tensamin/audio 0.2.1 → 0.2.2
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/README.md +0 -1
- package/dist/{chunk-DTIMONGP.mjs → chunk-7IKKNKM7.mjs} +4 -4
- package/dist/{chunk-BSYE2MWZ.mjs → chunk-BAUJY4Q2.mjs} +4 -4
- package/dist/{chunk-JBGGED5Q.mjs → chunk-YQPL2O7D.mjs} +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +3 -3
- package/dist/livekit/integration.js +8 -8
- package/dist/livekit/integration.mjs +3 -3
- package/dist/pipeline/audio-pipeline.js +4 -4
- package/dist/pipeline/audio-pipeline.mjs +1 -1
- package/dist/pipeline/remote-audio-monitor.js +4 -4
- package/dist/pipeline/remote-audio-monitor.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,6 @@ DeepFilterNet3-based noise suppression and realtime speaking detection for LiveK
|
|
|
12
12
|
> [Noise suppression is provided via the `deepfilternet3-noise-filter` package.](https://www.npmjs.com/package/deepfilternet3-noise-filter)
|
|
13
13
|
> [That package is based on DeepFilterNet by Rikorose.](https://github.com/Rikorose/DeepFilterNet)
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
## Installation
|
|
17
16
|
|
|
18
17
|
```bash
|
|
@@ -17,12 +17,12 @@ async function createRemoteAudioMonitor(sourceTrack, config = {}) {
|
|
|
17
17
|
registerPipeline();
|
|
18
18
|
const fullConfig = {
|
|
19
19
|
speaking: {
|
|
20
|
-
minDb: config.speaking?.minDb ?? -
|
|
20
|
+
minDb: config.speaking?.minDb ?? -55,
|
|
21
21
|
maxDb: config.speaking?.maxDb ?? -20,
|
|
22
|
-
speakOnRatio: config.speaking?.speakOnRatio ?? 0.
|
|
22
|
+
speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
|
|
23
23
|
speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
|
|
24
|
-
hangoverMs: config.speaking?.hangoverMs ??
|
|
25
|
-
attackMs: config.speaking?.attackMs ??
|
|
24
|
+
hangoverMs: config.speaking?.hangoverMs ?? 500,
|
|
25
|
+
attackMs: config.speaking?.attackMs ?? 100,
|
|
26
26
|
releaseMs: config.speaking?.releaseMs ?? 120
|
|
27
27
|
}
|
|
28
28
|
};
|
|
@@ -28,12 +28,12 @@ async function createAudioPipeline(sourceTrack, config = {}) {
|
|
|
28
28
|
const fullConfig = {
|
|
29
29
|
noiseSuppression: nsConfig,
|
|
30
30
|
speaking: {
|
|
31
|
-
minDb: config.speaking?.minDb ?? -
|
|
31
|
+
minDb: config.speaking?.minDb ?? -55,
|
|
32
32
|
maxDb: config.speaking?.maxDb ?? -20,
|
|
33
|
-
speakOnRatio: config.speaking?.speakOnRatio ?? 0.
|
|
33
|
+
speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
|
|
34
34
|
speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
|
|
35
|
-
hangoverMs: config.speaking?.hangoverMs ??
|
|
36
|
-
attackMs: config.speaking?.attackMs ??
|
|
35
|
+
hangoverMs: config.speaking?.hangoverMs ?? 500,
|
|
36
|
+
attackMs: config.speaking?.attackMs ?? 100,
|
|
37
37
|
releaseMs: config.speaking?.releaseMs ?? 120
|
|
38
38
|
},
|
|
39
39
|
output: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAudioPipeline
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BAUJY4Q2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRemoteAudioMonitor
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7IKKNKM7.mjs";
|
|
7
7
|
|
|
8
8
|
// src/livekit/integration.ts
|
|
9
9
|
async function attachSpeakingDetectionToTrack(track, options = {}) {
|
package/dist/index.js
CHANGED
|
@@ -242,12 +242,12 @@ async function createAudioPipeline(sourceTrack, config = {}) {
|
|
|
242
242
|
const fullConfig = {
|
|
243
243
|
noiseSuppression: nsConfig,
|
|
244
244
|
speaking: {
|
|
245
|
-
minDb: config.speaking?.minDb ?? -
|
|
245
|
+
minDb: config.speaking?.minDb ?? -55,
|
|
246
246
|
maxDb: config.speaking?.maxDb ?? -20,
|
|
247
|
-
speakOnRatio: config.speaking?.speakOnRatio ?? 0.
|
|
247
|
+
speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
|
|
248
248
|
speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
|
|
249
|
-
hangoverMs: config.speaking?.hangoverMs ??
|
|
250
|
-
attackMs: config.speaking?.attackMs ??
|
|
249
|
+
hangoverMs: config.speaking?.hangoverMs ?? 500,
|
|
250
|
+
attackMs: config.speaking?.attackMs ?? 100,
|
|
251
251
|
releaseMs: config.speaking?.releaseMs ?? 120
|
|
252
252
|
},
|
|
253
253
|
output: {
|
|
@@ -394,12 +394,12 @@ async function createRemoteAudioMonitor(sourceTrack, config = {}) {
|
|
|
394
394
|
registerPipeline();
|
|
395
395
|
const fullConfig = {
|
|
396
396
|
speaking: {
|
|
397
|
-
minDb: config.speaking?.minDb ?? -
|
|
397
|
+
minDb: config.speaking?.minDb ?? -55,
|
|
398
398
|
maxDb: config.speaking?.maxDb ?? -20,
|
|
399
|
-
speakOnRatio: config.speaking?.speakOnRatio ?? 0.
|
|
399
|
+
speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
|
|
400
400
|
speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
|
|
401
|
-
hangoverMs: config.speaking?.hangoverMs ??
|
|
402
|
-
attackMs: config.speaking?.attackMs ??
|
|
401
|
+
hangoverMs: config.speaking?.hangoverMs ?? 500,
|
|
402
|
+
attackMs: config.speaking?.attackMs ?? 100,
|
|
403
403
|
releaseMs: config.speaking?.releaseMs ?? 120
|
|
404
404
|
}
|
|
405
405
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import "./chunk-WBQAMGXK.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
attachSpeakingDetectionToRemoteTrack,
|
|
4
4
|
attachSpeakingDetectionToTrack
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-YQPL2O7D.mjs";
|
|
6
|
+
import "./chunk-BAUJY4Q2.mjs";
|
|
7
7
|
import "./chunk-IS37FHDN.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-7IKKNKM7.mjs";
|
|
9
9
|
import "./chunk-AQ5RVY33.mjs";
|
|
10
10
|
import "./chunk-OZ7KMC4S.mjs";
|
|
11
11
|
import "./chunk-QNQK6QFB.mjs";
|
|
@@ -242,12 +242,12 @@ async function createAudioPipeline(sourceTrack, config = {}) {
|
|
|
242
242
|
const fullConfig = {
|
|
243
243
|
noiseSuppression: nsConfig,
|
|
244
244
|
speaking: {
|
|
245
|
-
minDb: config.speaking?.minDb ?? -
|
|
245
|
+
minDb: config.speaking?.minDb ?? -55,
|
|
246
246
|
maxDb: config.speaking?.maxDb ?? -20,
|
|
247
|
-
speakOnRatio: config.speaking?.speakOnRatio ?? 0.
|
|
247
|
+
speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
|
|
248
248
|
speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
|
|
249
|
-
hangoverMs: config.speaking?.hangoverMs ??
|
|
250
|
-
attackMs: config.speaking?.attackMs ??
|
|
249
|
+
hangoverMs: config.speaking?.hangoverMs ?? 500,
|
|
250
|
+
attackMs: config.speaking?.attackMs ?? 100,
|
|
251
251
|
releaseMs: config.speaking?.releaseMs ?? 120
|
|
252
252
|
},
|
|
253
253
|
output: {
|
|
@@ -394,12 +394,12 @@ async function createRemoteAudioMonitor(sourceTrack, config = {}) {
|
|
|
394
394
|
registerPipeline();
|
|
395
395
|
const fullConfig = {
|
|
396
396
|
speaking: {
|
|
397
|
-
minDb: config.speaking?.minDb ?? -
|
|
397
|
+
minDb: config.speaking?.minDb ?? -55,
|
|
398
398
|
maxDb: config.speaking?.maxDb ?? -20,
|
|
399
|
-
speakOnRatio: config.speaking?.speakOnRatio ?? 0.
|
|
399
|
+
speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
|
|
400
400
|
speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
|
|
401
|
-
hangoverMs: config.speaking?.hangoverMs ??
|
|
402
|
-
attackMs: config.speaking?.attackMs ??
|
|
401
|
+
hangoverMs: config.speaking?.hangoverMs ?? 500,
|
|
402
|
+
attackMs: config.speaking?.attackMs ?? 100,
|
|
403
403
|
releaseMs: config.speaking?.releaseMs ?? 120
|
|
404
404
|
}
|
|
405
405
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
attachSpeakingDetectionToRemoteTrack,
|
|
3
3
|
attachSpeakingDetectionToTrack
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-YQPL2O7D.mjs";
|
|
5
|
+
import "../chunk-BAUJY4Q2.mjs";
|
|
6
6
|
import "../chunk-IS37FHDN.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-7IKKNKM7.mjs";
|
|
8
8
|
import "../chunk-AQ5RVY33.mjs";
|
|
9
9
|
import "../chunk-OZ7KMC4S.mjs";
|
|
10
10
|
import "../chunk-QNQK6QFB.mjs";
|
|
@@ -239,12 +239,12 @@ async function createAudioPipeline(sourceTrack, config = {}) {
|
|
|
239
239
|
const fullConfig = {
|
|
240
240
|
noiseSuppression: nsConfig,
|
|
241
241
|
speaking: {
|
|
242
|
-
minDb: config.speaking?.minDb ?? -
|
|
242
|
+
minDb: config.speaking?.minDb ?? -55,
|
|
243
243
|
maxDb: config.speaking?.maxDb ?? -20,
|
|
244
|
-
speakOnRatio: config.speaking?.speakOnRatio ?? 0.
|
|
244
|
+
speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
|
|
245
245
|
speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
|
|
246
|
-
hangoverMs: config.speaking?.hangoverMs ??
|
|
247
|
-
attackMs: config.speaking?.attackMs ??
|
|
246
|
+
hangoverMs: config.speaking?.hangoverMs ?? 500,
|
|
247
|
+
attackMs: config.speaking?.attackMs ?? 100,
|
|
248
248
|
releaseMs: config.speaking?.releaseMs ?? 120
|
|
249
249
|
},
|
|
250
250
|
output: {
|
|
@@ -201,12 +201,12 @@ async function createRemoteAudioMonitor(sourceTrack, config = {}) {
|
|
|
201
201
|
registerPipeline();
|
|
202
202
|
const fullConfig = {
|
|
203
203
|
speaking: {
|
|
204
|
-
minDb: config.speaking?.minDb ?? -
|
|
204
|
+
minDb: config.speaking?.minDb ?? -55,
|
|
205
205
|
maxDb: config.speaking?.maxDb ?? -20,
|
|
206
|
-
speakOnRatio: config.speaking?.speakOnRatio ?? 0.
|
|
206
|
+
speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
|
|
207
207
|
speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
|
|
208
|
-
hangoverMs: config.speaking?.hangoverMs ??
|
|
209
|
-
attackMs: config.speaking?.attackMs ??
|
|
208
|
+
hangoverMs: config.speaking?.hangoverMs ?? 500,
|
|
209
|
+
attackMs: config.speaking?.attackMs ?? 100,
|
|
210
210
|
releaseMs: config.speaking?.releaseMs ?? 120
|
|
211
211
|
}
|
|
212
212
|
};
|