@digipair/skill-web-voice-activity-detection 0.58.6 → 0.58.7

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/index.cjs.js CHANGED
@@ -27,7 +27,7 @@ let VADService = class VADService {
27
27
  autoGainControl: true,
28
28
  noiseSuppression: true
29
29
  }
30
- }), startOnLoad = true, onFrameProcessed = [], onVADMisfire = [], onSpeechStart = [], onSpeechEnd = [], model = 'v5', positiveSpeechThreshold = 0.4, negativeSpeechThreshold = 0.4, minSpeechFrames = 15, preSpeechPadFrames = 30, additionalAudioConstraints = {}, redemptionFrames = 24, frameSamples = 512, baseAssetPath = 'https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.22/dist/', onnxWASMBasePath = 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.14.0/dist/' } = params;
30
+ }), onFrameProcessed = [], onVADMisfire = [], onSpeechStart = [], onSpeechEnd = [], model = 'legacy', additionalAudioConstraints = {}, baseAssetPath = 'https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.22/dist/', onnxWASMBasePath = 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.18.0/dist/', submitUserSpeechOnPause = false, positiveSpeechThreshold = 0.5, negativeSpeechThreshold = 0.35, preSpeechPadFrames = 1, redemptionFrames = 8, frameSamples = 1536, minSpeechFrames = 3 } = params;
31
31
  const vad = await MicVAD.new({
32
32
  stream,
33
33
  onFrameProcessed: (probabilities, frame)=>{
@@ -53,7 +53,6 @@ let VADService = class VADService {
53
53
  vad
54
54
  }));
55
55
  },
56
- startOnLoad,
57
56
  additionalAudioConstraints,
58
57
  positiveSpeechThreshold,
59
58
  negativeSpeechThreshold,
@@ -63,7 +62,8 @@ let VADService = class VADService {
63
62
  minSpeechFrames,
64
63
  model,
65
64
  baseAssetPath,
66
- onnxWASMBasePath
65
+ onnxWASMBasePath,
66
+ submitUserSpeechOnPause
67
67
  });
68
68
  return vad;
69
69
  }
package/index.esm.js CHANGED
@@ -23899,14 +23899,14 @@ function indent(str, spaces) {
23899
23899
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23900
23900
  // match is required
23901
23901
  if (!match) {
23902
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23902
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23903
23903
  v: nextMatch1
23904
23904
  };
23905
23905
  }
23906
23906
  var token = match.token, offset = match.offset;
23907
23907
  i1 += offset;
23908
23908
  if (token === " ") {
23909
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23909
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23910
23910
  }
23911
23911
  tokens1 = _to_consumable_array$1(tokens1).concat([
23912
23912
  token
@@ -23925,7 +23925,7 @@ function indent(str, spaces) {
23925
23925
  if (contextKeys.some(function(el) {
23926
23926
  return el.startsWith(name);
23927
23927
  })) {
23928
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23928
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23929
23929
  }
23930
23930
  if (dateTimeIdentifiers.some(function(el) {
23931
23931
  return el === name;
@@ -23944,9 +23944,9 @@ function indent(str, spaces) {
23944
23944
  if (dateTimeIdentifiers.some(function(el) {
23945
23945
  return el.startsWith(name);
23946
23946
  })) {
23947
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23947
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23948
23948
  }
23949
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23949
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23950
23950
  v: nextMatch1
23951
23951
  };
23952
23952
  };
@@ -27965,7 +27965,7 @@ let VADService = class VADService {
27965
27965
  autoGainControl: true,
27966
27966
  noiseSuppression: true
27967
27967
  }
27968
- }), startOnLoad = true, onFrameProcessed = [], onVADMisfire = [], onSpeechStart = [], onSpeechEnd = [], model = 'v5', positiveSpeechThreshold = 0.4, negativeSpeechThreshold = 0.4, minSpeechFrames = 15, preSpeechPadFrames = 30, additionalAudioConstraints = {}, redemptionFrames = 24, frameSamples = 512, baseAssetPath = 'https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.22/dist/', onnxWASMBasePath = 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.14.0/dist/' } = params;
27968
+ }), onFrameProcessed = [], onVADMisfire = [], onSpeechStart = [], onSpeechEnd = [], model = 'legacy', additionalAudioConstraints = {}, baseAssetPath = 'https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.22/dist/', onnxWASMBasePath = 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.18.0/dist/', submitUserSpeechOnPause = false, positiveSpeechThreshold = 0.5, negativeSpeechThreshold = 0.35, preSpeechPadFrames = 1, redemptionFrames = 8, frameSamples = 1536, minSpeechFrames = 3 } = params;
27969
27969
  const vad = await MicVAD.new({
27970
27970
  stream,
27971
27971
  onFrameProcessed: (probabilities, frame)=>{
@@ -27991,7 +27991,6 @@ let VADService = class VADService {
27991
27991
  vad
27992
27992
  }));
27993
27993
  },
27994
- startOnLoad,
27995
27994
  additionalAudioConstraints,
27996
27995
  positiveSpeechThreshold,
27997
27996
  negativeSpeechThreshold,
@@ -28001,7 +28000,8 @@ let VADService = class VADService {
28001
28000
  minSpeechFrames,
28002
28001
  model,
28003
28002
  baseAssetPath,
28004
- onnxWASMBasePath
28003
+ onnxWASMBasePath,
28004
+ submitUserSpeechOnPause
28005
28005
  });
28006
28006
  return vad;
28007
28007
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-voice-activity-detection",
3
- "version": "0.58.6",
3
+ "version": "0.58.7",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.fr.json CHANGED
@@ -125,10 +125,10 @@
125
125
  }
126
126
  },
127
127
  {
128
- "name": "startOnLoad",
129
- "summary": "Démarrage au chargement",
128
+ "name": "submitUserSpeechOnPause",
129
+ "summary": "Soumettre la parole de l'utilisateur en pause",
130
130
  "required": false,
131
- "description": "Démarrage de la détection vocale au chargement",
131
+ "description": "Soumettre la parole de l'utilisateur en pause",
132
132
  "schema": {
133
133
  "type": "boolean"
134
134
  }
package/schema.json CHANGED
@@ -125,10 +125,10 @@
125
125
  }
126
126
  },
127
127
  {
128
- "name": "startOnLoad",
129
- "summary": "Start on load",
128
+ "name": "submitUserSpeechOnPause",
129
+ "summary": "Submit user speech on pause",
130
130
  "required": false,
131
- "description": "Start voice detection on load",
131
+ "description": "Submit user speech on pause",
132
132
  "schema": {
133
133
  "type": "boolean"
134
134
  }