@gjsify/sherpa-native 0.64.30 → 0.64.32
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/package.json +4 -4
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ const rec = new GjsifySherpa.OnlineRecognizer({
|
|
|
75
75
|
encoder: enc, decoder: dec, joiner: join, tokens: tok,
|
|
76
76
|
});
|
|
77
77
|
rec.open();
|
|
78
|
-
const stream = rec.create_stream();
|
|
78
|
+
const stream = rec.create_stream(null); // GJS needs the nullable hotwords argument passed
|
|
79
79
|
stream.accept(16000, samples);
|
|
80
80
|
while (stream.is_ready()) stream.decode();
|
|
81
81
|
const text = stream.get_text(); // also get_json() for timestamps + per-token data
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/sherpa-native",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.32",
|
|
4
4
|
"description": "Optional Vala/GObject bridge over sherpa-onnx's C API, exposing the parts that cannot be expressed in JavaScript: a Silero voice activity detector and streaming/whole-utterance transducer recognizers, each an opaque handle configured through nested C structs. sherpa-onnx and onnxruntime are linked in statically, so the prebuild needs only the host GLib. Models are never bundled. Used by @gjsify/vad.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/esm/index.js",
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"@girs/gjs": "5.4.0",
|
|
71
71
|
"@girs/glib-2.0": "5.4.0",
|
|
72
72
|
"@girs/gobject-2.0": "5.4.0",
|
|
73
|
-
"@gjsify/utils": "^0.64.
|
|
73
|
+
"@gjsify/utils": "^0.64.32"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@gjsify/cli": "^0.64.
|
|
76
|
+
"@gjsify/cli": "^0.64.32",
|
|
77
77
|
"@ts-for-gir/cli": "^4.1.0",
|
|
78
78
|
"@types/node": "^25.9.2",
|
|
79
79
|
"typescript": "^6.0.3"
|
|
@@ -89,6 +89,6 @@
|
|
|
89
89
|
},
|
|
90
90
|
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/web/sherpa-native#readme",
|
|
91
91
|
"optionalDependencies": {
|
|
92
|
-
"@gjsify/sherpa-native-linux-x64": "0.64.
|
|
92
|
+
"@gjsify/sherpa-native-linux-x64": "0.64.32"
|
|
93
93
|
}
|
|
94
94
|
}
|