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