dsh-tinyasr 1.7.0 → 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 +12 -0
- package/index.js +10 -1
- package/lib/routes.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
|
|
13
|
+
## 1.7.1 — 6 December 2026
|
|
14
|
+
|
|
15
|
+
- `/api/tinyasr/state` reports whether the mobile voice bridge is installed, which makes the mobile
|
|
16
|
+
path verifiable from the desktop after a restart.
|
|
17
|
+
|
|
6
18
|
## 1.7.0 — 6 December 2026
|
|
7
19
|
|
|
8
20
|
- Mobile voice works with the local recognizer: the plugin bridges the DSH speech registry to the
|
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)
|
|
@@ -514,6 +522,7 @@ export function apply(ctx, config) {
|
|
|
514
522
|
// Let the mobile plugin's `host` voice provider reach this recognizer.
|
|
515
523
|
const speech = typeof ctx.get === 'function' ? ctx.get('speechToText') : ctx.speechToText
|
|
516
524
|
ctx.effect(() => installMobileVoiceBridge(speech))
|
|
525
|
+
provider.mobileBridge = speech?.__tinyasrBridge === true
|
|
517
526
|
ctx.effect(() => {
|
|
518
527
|
const unregister = ctx.speechToText.register({
|
|
519
528
|
info: provider.info,
|
package/lib/routes.js
CHANGED
|
@@ -179,6 +179,7 @@ export function registerRoutes(ctx, { config, settings, glossary, provider, logg
|
|
|
179
179
|
autoLanguages: config.autoLanguages,
|
|
180
180
|
strategy: config.strategy,
|
|
181
181
|
polishDefault: { provider: config.polishProvider, model: config.polishModel },
|
|
182
|
+
mobileBridge: provider.mobileBridge === true,
|
|
182
183
|
})
|
|
183
184
|
} catch (error) {
|
|
184
185
|
logger?.warn?.('tinyasr: settings read failed', 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.",
|