@digipair/skill-web-voice-activity-detection 0.58.2 → 0.58.4

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,8 +3,6 @@
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');
8
6
 
9
7
  function _extends() {
10
8
  _extends = Object.assign || function assign(target) {
@@ -17,6 +15,8 @@ function _extends() {
17
15
  return _extends.apply(this, arguments);
18
16
  }
19
17
 
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
20
  const { MicVAD } = window['vad'];
21
21
  let VADService = class VADService {
22
22
  async listen(params, _pinsSettingsList, context) {
package/index.esm.js CHANGED
@@ -1,6 +1,3 @@
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
-
4
1
  function _extends() {
5
2
  _extends = Object.assign || function assign(target) {
6
3
  for(var i = 1; i < arguments.length; i++){
@@ -27956,6 +27953,8 @@ const preparePinsSettings = async (settings, context)=>{
27956
27953
  });
27957
27954
  };
27958
27955
 
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';
27959
27958
  const { MicVAD } = window['vad'];
27960
27959
  let VADService = class VADService {
27961
27960
  async listen(params, _pinsSettingsList, context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-voice-activity-detection",
3
- "version": "0.58.2",
3
+ "version": "0.58.4",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
@@ -1,6 +1,4 @@
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';
4
2
  export declare const listen: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
5
3
  export declare const start: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
6
4
  export declare const pause: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;