sherpa-onnx-node
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -13,3 +13,2 @@ const os = require('os'); | ||
try { | ||
console.log(p); | ||
module.exports = require(p); | ||
@@ -27,3 +26,3 @@ found = true; | ||
`Could not find sherpa-onnx. Tried\n\n ${possible_paths.join('\n ')}\n` | ||
if (os.platform() == 'darwin' && | ||
if (os.platform() == 'darwin' && process.env.DYLD_LIBRARY_PATH && | ||
!process.env.DYLD_LIBRARY_PATH.includes( | ||
@@ -40,3 +39,3 @@ `node_modules/sherpa-onnx-${platform_arch}`)) { | ||
if (os.platform() == 'linux' && | ||
if (os.platform() == 'linux' && process.env.LD_LIBRARY_PATH && | ||
!process.env.LD_LIBRARY_PATH.includes( | ||
@@ -43,0 +42,0 @@ `node_modules/sherpa-onnx-${platform_arch}`)) { |
{ | ||
"name": "sherpa-onnx-node", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Speech-to-text and text-to-speech using Next-gen Kaldi without internet connection", | ||
@@ -48,6 +48,6 @@ "main": "sherpa-onnx.js", | ||
"optionalDependencies": { | ||
"sherpa-onnx-darwin-arm64": "^1.0.8", | ||
"sherpa-onnx-darwin-x64": "^1.0.8", | ||
"sherpa-onnx-linux-x64": "^1.0.8" | ||
"sherpa-onnx-darwin-arm64": "^1.0.9", | ||
"sherpa-onnx-darwin-x64": "^1.0.9", | ||
"sherpa-onnx-linux-x64": "^1.0.9" | ||
} | ||
} |
@@ -6,1 +6,7 @@ # Introduction | ||
for usages. | ||
||Method|Support multiple threads| | ||
|---|---|---| | ||
|this package| https://github.com/nodejs/node-addon-api | Yes | | ||
|https://www.npmjs.com/package/sherpa-onnx| WebAssembly | No | |
const addon = require('./addon.js'); | ||
console.log(addon) | ||
@@ -4,0 +3,0 @@ class OnlineStream { |
4120
12
80
7
1