dsh-tinyasr 1.8.0 → 1.9.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 +6 -0
- package/index.js +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.9.0 — 7 December 2026
|
|
7
|
+
|
|
8
|
+
- When both single-language passes come back empty, one combined-language pass decodes the take
|
|
9
|
+
before the recognizer gives up. A phone take that the language passes miss (mixed speech, a quiet
|
|
10
|
+
or interrupted recording) is now more likely to produce text instead of an empty result.
|
|
11
|
+
|
|
6
12
|
## 1.8.0 — 7 December 2026
|
|
7
13
|
|
|
8
14
|
- A take is never lost to an empty resident result: when the resident worker returns no text for a
|
package/index.js
CHANGED
|
@@ -275,7 +275,16 @@ export class TinyAsrProvider {
|
|
|
275
275
|
const primary = await runOnce(this.config.primaryLanguage)
|
|
276
276
|
if (!this.sparse(primary)) return primary
|
|
277
277
|
const fallback = await runOnce(this.config.fallbackLanguage)
|
|
278
|
-
|
|
278
|
+
const best = this.better(primary, fallback)
|
|
279
|
+
if (best.text.trim() !== '') return best
|
|
280
|
+
// Both single-language passes came back empty (quiet take, mixed speech, a cancelled phone
|
|
281
|
+
// request): one combined pass decodes the audio with the whole language set before giving up.
|
|
282
|
+
const combinedLangs = this.languagesFor('auto')
|
|
283
|
+
if (combinedLangs.includes(',')) {
|
|
284
|
+
const combined = await runOnce(combinedLangs)
|
|
285
|
+
if (combined.text.trim() !== '') return combined
|
|
286
|
+
}
|
|
287
|
+
return best
|
|
279
288
|
}
|
|
280
289
|
|
|
281
290
|
/** One recording through the resident worker, which keeps the models loaded. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tinyasr",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.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.",
|