@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 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 ?? -60,
20
+ minDb: config.speaking?.minDb ?? -55,
21
21
  maxDb: config.speaking?.maxDb ?? -20,
22
- speakOnRatio: config.speaking?.speakOnRatio ?? 0.6,
22
+ speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
23
23
  speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
24
- hangoverMs: config.speaking?.hangoverMs ?? 350,
25
- attackMs: config.speaking?.attackMs ?? 50,
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 ?? -60,
31
+ minDb: config.speaking?.minDb ?? -55,
32
32
  maxDb: config.speaking?.maxDb ?? -20,
33
- speakOnRatio: config.speaking?.speakOnRatio ?? 0.6,
33
+ speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
34
34
  speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
35
- hangoverMs: config.speaking?.hangoverMs ?? 350,
36
- attackMs: config.speaking?.attackMs ?? 50,
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-BSYE2MWZ.mjs";
3
+ } from "./chunk-BAUJY4Q2.mjs";
4
4
  import {
5
5
  createRemoteAudioMonitor
6
- } from "./chunk-DTIMONGP.mjs";
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 ?? -60,
245
+ minDb: config.speaking?.minDb ?? -55,
246
246
  maxDb: config.speaking?.maxDb ?? -20,
247
- speakOnRatio: config.speaking?.speakOnRatio ?? 0.6,
247
+ speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
248
248
  speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
249
- hangoverMs: config.speaking?.hangoverMs ?? 350,
250
- attackMs: config.speaking?.attackMs ?? 50,
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 ?? -60,
397
+ minDb: config.speaking?.minDb ?? -55,
398
398
  maxDb: config.speaking?.maxDb ?? -20,
399
- speakOnRatio: config.speaking?.speakOnRatio ?? 0.6,
399
+ speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
400
400
  speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
401
- hangoverMs: config.speaking?.hangoverMs ?? 350,
402
- attackMs: config.speaking?.attackMs ?? 50,
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-JBGGED5Q.mjs";
6
- import "./chunk-BSYE2MWZ.mjs";
5
+ } from "./chunk-YQPL2O7D.mjs";
6
+ import "./chunk-BAUJY4Q2.mjs";
7
7
  import "./chunk-IS37FHDN.mjs";
8
- import "./chunk-DTIMONGP.mjs";
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 ?? -60,
245
+ minDb: config.speaking?.minDb ?? -55,
246
246
  maxDb: config.speaking?.maxDb ?? -20,
247
- speakOnRatio: config.speaking?.speakOnRatio ?? 0.6,
247
+ speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
248
248
  speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
249
- hangoverMs: config.speaking?.hangoverMs ?? 350,
250
- attackMs: config.speaking?.attackMs ?? 50,
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 ?? -60,
397
+ minDb: config.speaking?.minDb ?? -55,
398
398
  maxDb: config.speaking?.maxDb ?? -20,
399
- speakOnRatio: config.speaking?.speakOnRatio ?? 0.6,
399
+ speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
400
400
  speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
401
- hangoverMs: config.speaking?.hangoverMs ?? 350,
402
- attackMs: config.speaking?.attackMs ?? 50,
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-JBGGED5Q.mjs";
5
- import "../chunk-BSYE2MWZ.mjs";
4
+ } from "../chunk-YQPL2O7D.mjs";
5
+ import "../chunk-BAUJY4Q2.mjs";
6
6
  import "../chunk-IS37FHDN.mjs";
7
- import "../chunk-DTIMONGP.mjs";
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 ?? -60,
242
+ minDb: config.speaking?.minDb ?? -55,
243
243
  maxDb: config.speaking?.maxDb ?? -20,
244
- speakOnRatio: config.speaking?.speakOnRatio ?? 0.6,
244
+ speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
245
245
  speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
246
- hangoverMs: config.speaking?.hangoverMs ?? 350,
247
- attackMs: config.speaking?.attackMs ?? 50,
246
+ hangoverMs: config.speaking?.hangoverMs ?? 500,
247
+ attackMs: config.speaking?.attackMs ?? 100,
248
248
  releaseMs: config.speaking?.releaseMs ?? 120
249
249
  },
250
250
  output: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createAudioPipeline
3
- } from "../chunk-BSYE2MWZ.mjs";
3
+ } from "../chunk-BAUJY4Q2.mjs";
4
4
  import "../chunk-IS37FHDN.mjs";
5
5
  import "../chunk-AQ5RVY33.mjs";
6
6
  import "../chunk-OZ7KMC4S.mjs";
@@ -201,12 +201,12 @@ async function createRemoteAudioMonitor(sourceTrack, config = {}) {
201
201
  registerPipeline();
202
202
  const fullConfig = {
203
203
  speaking: {
204
- minDb: config.speaking?.minDb ?? -60,
204
+ minDb: config.speaking?.minDb ?? -55,
205
205
  maxDb: config.speaking?.maxDb ?? -20,
206
- speakOnRatio: config.speaking?.speakOnRatio ?? 0.6,
206
+ speakOnRatio: config.speaking?.speakOnRatio ?? 0.5,
207
207
  speakOffRatio: config.speaking?.speakOffRatio ?? 0.3,
208
- hangoverMs: config.speaking?.hangoverMs ?? 350,
209
- attackMs: config.speaking?.attackMs ?? 50,
208
+ hangoverMs: config.speaking?.hangoverMs ?? 500,
209
+ attackMs: config.speaking?.attackMs ?? 100,
210
210
  releaseMs: config.speaking?.releaseMs ?? 120
211
211
  }
212
212
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createRemoteAudioMonitor
3
- } from "../chunk-DTIMONGP.mjs";
3
+ } from "../chunk-7IKKNKM7.mjs";
4
4
  import "../chunk-AQ5RVY33.mjs";
5
5
  import "../chunk-OZ7KMC4S.mjs";
6
6
  import "../chunk-QNQK6QFB.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tensamin/audio",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "author": {
5
5
  "email": "aloisianer@proton.me",
6
6
  "name": "Alois"