@goodandready/dsh-voice 0.8.19 → 0.8.21
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/lib/client-src/10-locale.js +14 -0
- package/lib/client-src/40-recording.js +3 -0
- package/lib/client-src/70-settings.js +347 -222
- package/lib/client.js +364 -222
- package/lib/index.js +8 -4
- package/lib/providers.js +16 -5
- package/package.json +1 -1
|
@@ -139,6 +139,20 @@
|
|
|
139
139
|
'visDynamicOrb': 'Dynamic Orb',
|
|
140
140
|
'visBars': 'Classic Bars',
|
|
141
141
|
'visOff': 'Off',
|
|
142
|
+
'statusTitle': 'Connection & Engine Status',
|
|
143
|
+
'statusDesc': 'Current runtime connectivity to voice backends and recognition services.',
|
|
144
|
+
'badgeHostOnline': 'Host online ({ms} ms)',
|
|
145
|
+
'badgeHostOffline': 'Host unreachable',
|
|
146
|
+
'badgeWhisperActive': 'Whisper active',
|
|
147
|
+
'badgeWhisperInactive': 'Whisper offline',
|
|
148
|
+
'badgeSenseVoiceActive': 'SenseVoice active',
|
|
149
|
+
'badgeSenseVoiceInactive': 'SenseVoice offline',
|
|
150
|
+
'badgeProviders': '{count} providers ready',
|
|
151
|
+
'refreshStats': 'Refresh Stats',
|
|
152
|
+
'hardwareTitle': 'Hardware & Local Engines',
|
|
153
|
+
'hardwareDesc': 'Microphone device, local whisper.cpp and SenseVoice runtime settings.',
|
|
154
|
+
'uiError': 'Voice UI Error:',
|
|
155
|
+
'retry': 'Retry',
|
|
142
156
|
}
|
|
143
157
|
|
|
144
158
|
// Strings are also needed outside components — in recording handlers and
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// to use browser recognition or record a file.
|
|
2
2
|
let chainsPromise = null
|
|
3
|
+
if (typeof window !== 'undefined') {
|
|
4
|
+
window.addEventListener('dsh-voice:settings-saved', () => { chainsPromise = null })
|
|
5
|
+
}
|
|
3
6
|
function modeChain(mode) {
|
|
4
7
|
if (!chainsPromise) {
|
|
5
8
|
chainsPromise = fetch('/dsh-voice/status', { cache: 'no-store' })
|