@digipair/skill-web-voice-activity-detection 0.58.1 → 0.58.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/index.cjs.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var engine = require('@digipair/engine');
|
|
6
|
+
require('https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.js');
|
|
7
|
+
require('https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.22/dist/bundle.min.js');
|
|
6
8
|
|
|
7
9
|
function _extends() {
|
|
8
10
|
_extends = Object.assign || function assign(target) {
|
|
@@ -15,7 +17,7 @@ function _extends() {
|
|
|
15
17
|
return _extends.apply(this, arguments);
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
const { MicVAD } =
|
|
20
|
+
const { MicVAD } = window['vad'];
|
|
19
21
|
let VADService = class VADService {
|
|
20
22
|
async listen(params, _pinsSettingsList, context) {
|
|
21
23
|
const { stream = await navigator.mediaDevices.getUserMedia({
|
package/index.esm.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.js';
|
|
2
|
+
import 'https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.22/dist/bundle.min.js';
|
|
3
|
+
|
|
1
4
|
function _extends() {
|
|
2
5
|
_extends = Object.assign || function assign(target) {
|
|
3
6
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -23899,14 +23902,14 @@ function indent(str, spaces) {
|
|
|
23899
23902
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23900
23903
|
// match is required
|
|
23901
23904
|
if (!match) {
|
|
23902
|
-
return
|
|
23905
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23903
23906
|
v: nextMatch1
|
|
23904
23907
|
};
|
|
23905
23908
|
}
|
|
23906
23909
|
var token = match.token, offset = match.offset;
|
|
23907
23910
|
i1 += offset;
|
|
23908
23911
|
if (token === " ") {
|
|
23909
|
-
return
|
|
23912
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23910
23913
|
}
|
|
23911
23914
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23912
23915
|
token
|
|
@@ -23925,7 +23928,7 @@ function indent(str, spaces) {
|
|
|
23925
23928
|
if (contextKeys.some(function(el) {
|
|
23926
23929
|
return el.startsWith(name);
|
|
23927
23930
|
})) {
|
|
23928
|
-
return
|
|
23931
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23929
23932
|
}
|
|
23930
23933
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23931
23934
|
return el === name;
|
|
@@ -23944,9 +23947,9 @@ function indent(str, spaces) {
|
|
|
23944
23947
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23945
23948
|
return el.startsWith(name);
|
|
23946
23949
|
})) {
|
|
23947
|
-
return
|
|
23950
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23948
23951
|
}
|
|
23949
|
-
return
|
|
23952
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23950
23953
|
v: nextMatch1
|
|
23951
23954
|
};
|
|
23952
23955
|
};
|
|
@@ -27953,7 +27956,7 @@ const preparePinsSettings = async (settings, context)=>{
|
|
|
27953
27956
|
});
|
|
27954
27957
|
};
|
|
27955
27958
|
|
|
27956
|
-
const { MicVAD } =
|
|
27959
|
+
const { MicVAD } = window['vad'];
|
|
27957
27960
|
let VADService = class VADService {
|
|
27958
27961
|
async listen(params, _pinsSettingsList, context) {
|
|
27959
27962
|
const { stream = await navigator.mediaDevices.getUserMedia({
|
package/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { PinsSettings } from '@digipair/engine';
|
|
2
|
+
import 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.js';
|
|
3
|
+
import 'https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.22/dist/bundle.min.js';
|
|
2
4
|
export declare const listen: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
3
5
|
export declare const start: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
4
6
|
export declare const pause: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|