Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sherpa-onnx-node

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sherpa-onnx-node - npm Package Compare versions

Comparing version 1.0.26 to 1.0.27

12

package.json
{
"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 @@ }

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc