sherpa-onnx-node
Advanced tools
Comparing version 1.0.26 to 1.0.27
{ | ||
"name": "sherpa-onnx-node", | ||
"version": "1.0.26", | ||
"version": "1.0.27", | ||
"description": "Speech-to-text and text-to-speech using Next-gen Kaldi without internet connection", | ||
@@ -48,8 +48,8 @@ "main": "sherpa-onnx.js", | ||
"optionalDependencies": { | ||
"sherpa-onnx-darwin-arm64": "^1.0.26", | ||
"sherpa-onnx-darwin-x64": "^1.0.26", | ||
"sherpa-onnx-linux-x64": "^1.0.26", | ||
"sherpa-onnx-linux-arm64": "^1.0.26", | ||
"sherpa-onnx-win-x64": "^1.0.26" | ||
"sherpa-onnx-darwin-arm64": "^1.0.27", | ||
"sherpa-onnx-darwin-x64": "^1.0.27", | ||
"sherpa-onnx-linux-x64": "^1.0.27", | ||
"sherpa-onnx-linux-arm64": "^1.0.27", | ||
"sherpa-onnx-win-x64": "^1.0.27" | ||
} | ||
} |
@@ -21,5 +21,5 @@ const addon = require('./addon.js'); | ||
// return a float32 array | ||
compute(stream) { | ||
compute(stream, enableExternalBuffer = true) { | ||
return addon.speakerEmbeddingExtractorComputeEmbedding( | ||
this.handle, stream.handle); | ||
this.handle, stream.handle, enableExternalBuffer); | ||
} | ||
@@ -26,0 +26,0 @@ } |
21
vad.js
@@ -14,4 +14,5 @@ const addon = require('./addon.js'); | ||
// return a float32 array | ||
get(startIndex, n) { | ||
return addon.circularBufferGet(this.handle, startIndex, n); | ||
get(startIndex, n, enableExternalBuffer = true) { | ||
return addon.circularBufferGet( | ||
this.handle, startIndex, n, enableExternalBuffer); | ||
} | ||
@@ -52,19 +53,19 @@ | ||
acceptWaveform(samples) { | ||
addon.voiceActivityDetectorAcceptWaveform(this.handle, samples) | ||
addon.voiceActivityDetectorAcceptWaveform(this.handle, samples); | ||
} | ||
isEmpty() { | ||
return addon.voiceActivityDetectorIsEmpty(this.handle) | ||
return addon.voiceActivityDetectorIsEmpty(this.handle); | ||
} | ||
isDetected() { | ||
return addon.voiceActivityDetectorIsDetected(this.handle) | ||
return addon.voiceActivityDetectorIsDetected(this.handle); | ||
} | ||
pop() { | ||
addon.voiceActivityDetectorPop(this.handle) | ||
addon.voiceActivityDetectorPop(this.handle); | ||
} | ||
clear() { | ||
addon.VoiceActivityDetectorClearWrapper(this.handle) | ||
addon.VoiceActivityDetectorClearWrapper(this.handle); | ||
} | ||
@@ -78,8 +79,8 @@ | ||
*/ | ||
front() { | ||
return addon.voiceActivityDetectorFront(this.handle) | ||
front(enableExternalBuffer = true) { | ||
return addon.voiceActivityDetectorFront(this.handle, enableExternalBuffer); | ||
} | ||
reset() { | ||
return addon.VoiceActivityDetectorResetWrapper(this.handle) | ||
return addon.VoiceActivityDetectorResetWrapper(this.handle); | ||
} | ||
@@ -86,0 +87,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13776
427