sherpa-onnx-node 1.0.24 → 1.0.26
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/README.md +1 -1
- package/addon.js +8 -6
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -7,5 +7,5 @@ for usages.
|
|
|
7
7
|
|
|
8
8
|
||Method|Support multiple threads|Minimum required node version|
|
|
9
9
|
|---|---|---|---|
|
|
10
|
-
|this package| https://github.com/nodejs/node-addon-api | Yes |
|
|
10
|
+
|this package| https://github.com/nodejs/node-addon-api | Yes | v16|
|
|
11
11
|
|https://www.npmjs.com/package/sherpa-onnx| WebAssembly | No | v18|
|
package/addon.js
CHANGED
|
@@ -27,9 +27,10 @@ for (const p of possible_paths) {
|
|
|
27
27
|
if (!found) {
|
|
28
28
|
let msg = `Could not find sherpa-onnx-node. Tried\n\n ${
|
|
29
29
|
possible_paths.join('\n ')}\n`
|
|
30
|
-
if (os.platform() == 'darwin' &&
|
|
31
|
-
!process.env.DYLD_LIBRARY_PATH
|
|
32
|
-
|
|
30
|
+
if (os.platform() == 'darwin' &&
|
|
31
|
+
(!process.env.DYLD_LIBRARY_PATH ||
|
|
32
|
+
!process.env.DYLD_LIBRARY_PATH.includes(
|
|
33
|
+
`node_modules/sherpa-onnx-${platform_arch}`))) {
|
|
33
34
|
msg +=
|
|
34
35
|
'Please remeber to set the following environment variable and try again:\n';
|
|
35
36
|
|
|
@@ -39,9 +40,10 @@ if (!found) {
|
|
|
39
40
|
msg += ':$DYLD_LIBRARY_PATH\n';
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
if (os.platform() == 'linux' &&
|
|
43
|
-
!process.env.LD_LIBRARY_PATH
|
|
44
|
-
|
|
43
|
+
if (os.platform() == 'linux' &&
|
|
44
|
+
(!process.env.LD_LIBRARY_PATH ||
|
|
45
|
+
!process.env.LD_LIBRARY_PATH.includes(
|
|
46
|
+
`node_modules/sherpa-onnx-${platform_arch}`))) {
|
|
45
47
|
msg +=
|
|
46
48
|
'Please remeber to set the following environment variable and try again:\n';
|
|
47
49
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sherpa-onnx-node",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"description": "Speech-to-text and text-to-speech using Next-gen Kaldi without internet connection",
|
|
5
5
|
"main": "sherpa-onnx.js",
|
|
6
6
|
"scripts": {
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/csukuangfj/sherpa-onnx#readme",
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"sherpa-onnx-darwin-arm64": "^1.0.
|
|
49
|
-
"sherpa-onnx-darwin-x64": "^1.0.
|
|
50
|
-
"sherpa-onnx-linux-x64": "^1.0.
|
|
51
|
-
"sherpa-onnx-linux-arm64": "^1.0.
|
|
52
|
-
"sherpa-onnx-win-x64": "^1.0.
|
|
48
|
+
"sherpa-onnx-darwin-arm64": "^1.0.26",
|
|
49
|
+
"sherpa-onnx-darwin-x64": "^1.0.26",
|
|
50
|
+
"sherpa-onnx-linux-x64": "^1.0.26",
|
|
51
|
+
"sherpa-onnx-linux-arm64": "^1.0.26",
|
|
52
|
+
"sherpa-onnx-win-x64": "^1.0.26"
|
|
53
53
|
}
|
|
54
54
|
}
|