dsh-tinyasr 1.7.1 → 1.8.0
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/CHANGELOG.md +7 -0
- package/index.js +9 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this plugin. Entries up to 1.11.0 are local pre-release iterations of the
|
|
4
4
|
1.0 line; the public package starts at 1.2.0.
|
|
5
5
|
|
|
6
|
+
## 1.8.0 — 7 December 2026
|
|
7
|
+
|
|
8
|
+
- A take is never lost to an empty resident result: when the resident worker returns no text for a
|
|
9
|
+
recording longer than 0.6 s, the take is retried once through a process per recording (the first
|
|
10
|
+
dictation after a restart used to come back empty).
|
|
11
|
+
- The mobile voice bridge is confirmed by `/api/tinyasr/state` (`mobileBridge: true`).
|
|
12
|
+
|
|
6
13
|
## 1.7.1 — 6 December 2026
|
|
7
14
|
|
|
8
15
|
- `/api/tinyasr/state` reports whether the mobile voice bridge is installed, which makes the mobile
|
package/index.js
CHANGED
|
@@ -249,7 +249,15 @@ export class TinyAsrProvider {
|
|
|
249
249
|
const perProcess = async (langs) => await this.run(files, wav, langs, signal)
|
|
250
250
|
if (this.worker === undefined) return await this.decode(perProcess, input, strategy)
|
|
251
251
|
try {
|
|
252
|
-
|
|
252
|
+
const heard = await this.decode(async (langs) => await this.runResident(files, input.audio, langs, signal), input, strategy)
|
|
253
|
+
// The resident worker occasionally trims a whole take (streaming VAD, first call after a
|
|
254
|
+
// restart). A non-empty per-process pass is the safety net: the take is never lost.
|
|
255
|
+
if (typeof heard.text === 'string' && heard.text.trim() !== '') return heard
|
|
256
|
+
if (heard.audioSeconds >= 0.6 && !signal.aborted) {
|
|
257
|
+
const second = await this.decode(perProcess, input, strategy)
|
|
258
|
+
if (second.text.trim() !== '') return second
|
|
259
|
+
}
|
|
260
|
+
return heard
|
|
253
261
|
} catch (error) {
|
|
254
262
|
if (signal.aborted) throw error
|
|
255
263
|
this.logger?.warn?.('tinyasr: resident worker unavailable, using a process per recording', error)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tinyasr",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"description": "Offline Russian and English dictation for the DeepSeek Harness Web GUI through the local tinyasr recognizer, with an optional model cleanup pass.",
|