csukuangfj commited on
Commit
ddaeb15
1 Parent(s): 56268ab

update model

Browse files
sherpa-onnx-speaker-diarization.js CHANGED
@@ -64,7 +64,7 @@ function initSherpaOnnxOfflineSpeakerSegmentationModelConfig(config, Module) {
64
  Module.setValue(ptr + offset, config.numThreads || 1, 'i32');
65
  offset += 4;
66
 
67
- Module.setValue(ptr + offset, config.debug || 1, 'i32');
68
  offset += 4;
69
 
70
  const providerLen = Module.lengthBytesUTF8(config.provider || 'cpu') + 1;
@@ -103,7 +103,7 @@ function initSherpaOnnxSpeakerEmbeddingExtractorConfig(config, Module) {
103
  Module.setValue(ptr + offset, config.numThreads || 1, 'i32');
104
  offset += 4;
105
 
106
- Module.setValue(ptr + offset, config.debug || 1, 'i32');
107
  offset += 4;
108
 
109
  Module.setValue(ptr + offset, buffer + modelLen, 'i8*');
@@ -270,11 +270,15 @@ class OfflineSpeakerDiarization {
270
  }
271
 
272
  function createOfflineSpeakerDiarization(Module, myConfig) {
273
- const config = {
274
  segmentation: {
275
  pyannote: {model: './segmentation.onnx'},
 
 
 
 
 
276
  },
277
- embedding: {model: './embedding.onnx'},
278
  clustering: {numClusters: -1, threshold: 0.5},
279
  minDurationOn: 0.3,
280
  minDurationOff: 0.5,
 
64
  Module.setValue(ptr + offset, config.numThreads || 1, 'i32');
65
  offset += 4;
66
 
67
+ Module.setValue(ptr + offset, config.debug || 0, 'i32');
68
  offset += 4;
69
 
70
  const providerLen = Module.lengthBytesUTF8(config.provider || 'cpu') + 1;
 
103
  Module.setValue(ptr + offset, config.numThreads || 1, 'i32');
104
  offset += 4;
105
 
106
+ Module.setValue(ptr + offset, config.debug || 0, 'i32');
107
  offset += 4;
108
 
109
  Module.setValue(ptr + offset, buffer + modelLen, 'i8*');
 
270
  }
271
 
272
  function createOfflineSpeakerDiarization(Module, myConfig) {
273
+ let config = {
274
  segmentation: {
275
  pyannote: {model: './segmentation.onnx'},
276
+ debug: 1,
277
+ },
278
+ embedding: {
279
+ model: './embedding.onnx',
280
+ debug: 1,
281
  },
 
282
  clustering: {numClusters: -1, threshold: 0.5},
283
  minDurationOn: 0.3,
284
  minDurationOff: 0.5,
sherpa-onnx-wasm-main-speaker-diarization.data CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e45fdcb5e23f5024e06680f07d4b5cb975170750211e38c16e520991e0d24adb
3
- size 45587689
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bcccef65907abc4102b21f93a4135e3db6ed595e21167da55bb74fe00f8835c
3
+ size 45587685
sherpa-onnx-wasm-main-speaker-diarization.js CHANGED
The diff for this file is too large to render. See raw diff
 
sherpa-onnx-wasm-main-speaker-diarization.wasm CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:97850196ac6177a846f58538e9d9dc11efca954d0f82a4b2e7bb9ea0107f30cc
3
- size 10454456
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8332378773a964d5ff33eda0a0d842344d189cf29eae4fdabc8b0bd3390b275c
3
+ size 10454809