@juicesharp/rpiv-voice 1.19.1 → 2.0.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 +10 -0
- package/config/voice-config.ts +2 -2
- package/locales/en.json +4 -1
- package/locales/zh.json +47 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to `@juicesharp/rpiv-voice` are documented here.
|
|
|
5
5
|
Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
6
|
Versioning: [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.0.0] - 2026-07-21
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Configuration is now read from the XDG config directory (`XDG_CONFIG_HOME`), falling back to the legacy location when the new path is absent.
|
|
12
|
+
|
|
13
|
+
## [1.20.0] - 2026-06-15
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- Chinese (`zh`) translations (`locales/zh.json`), plus the matching English copy for the equalizer setting label/hint (#68).
|
|
17
|
+
|
|
8
18
|
## [1.19.1] - 2026-06-10
|
|
9
19
|
|
|
10
20
|
## [1.19.0] - 2026-06-09
|
package/config/voice-config.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* the return — see `rpiv-config.saveJsonConfig` for the full contract.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import { configPath,
|
|
14
|
+
import { configPath, loadJsonConfigWithLegacyFallback, saveJsonConfig } from "@juicesharp/rpiv-config";
|
|
15
15
|
|
|
16
16
|
// ── Filesystem layout ────────────────────────────────────────────────────────
|
|
17
17
|
const CONFIG_PATH = configPath("rpiv-voice", "voice.json");
|
|
@@ -42,7 +42,7 @@ export function isEqualizerEnabled(config: { equalizerEnabled?: boolean }): bool
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export function loadVoiceConfig(): VoiceConfig {
|
|
45
|
-
return
|
|
45
|
+
return loadJsonConfigWithLegacyFallback<VoiceConfig>("rpiv-voice", "voice.json");
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export function saveVoiceConfig(config: VoiceConfig): boolean {
|
package/locales/en.json
CHANGED
|
@@ -38,5 +38,8 @@
|
|
|
38
38
|
"settings.language_value_auto": "Auto-detect",
|
|
39
39
|
"settings.language_hint": "Run /languages to change.",
|
|
40
40
|
"settings.hallucination_filter_label": "Filter Whisper noise",
|
|
41
|
-
"settings.hallucination_filter_hint": "Drops silence-segment artifacts. Turn off for single-word dictation."
|
|
41
|
+
"settings.hallucination_filter_hint": "Drops silence-segment artifacts. Turn off for single-word dictation.",
|
|
42
|
+
|
|
43
|
+
"settings.equalizer_label": "Equalizer",
|
|
44
|
+
"settings.equalizer_hint": "Show the live audio waveform under the transcript. Off by default."
|
|
42
45
|
}
|
package/locales/zh.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_meta.notes": "中文翻译。欢迎中文母语者通过 PR 审校。",
|
|
3
|
+
|
|
4
|
+
"command.description": "用语音输入文字——本地 STT,无需云端",
|
|
5
|
+
|
|
6
|
+
"error.requires_interactive": "/voice 需要交互模式",
|
|
7
|
+
"error.model_download_failed": "STT 模型下载失败,请检查网络连接。",
|
|
8
|
+
"error.model_extract_failed": "下载的 STT 模型压缩包已损坏,请重试。",
|
|
9
|
+
"error.model_verify_failed": "STT 模型文件下载不完整,请重试。",
|
|
10
|
+
"error.model_stale_install": "STT 模型文件已被删除或损坏,下次启动时将重新下载。",
|
|
11
|
+
"error.engine_load_failed": "STT 模型加载失败。",
|
|
12
|
+
"error.mic_unavailable": "麦克风不可用。请检查是否连接了输入设备,以及 Pi 是否有麦克风权限。",
|
|
13
|
+
|
|
14
|
+
"splash.preparing": "正在准备模型……",
|
|
15
|
+
"splash.downloading": "正在下载 Whisper……",
|
|
16
|
+
"splash.extracting": "正在解压模型文件……",
|
|
17
|
+
"splash.verifying": "正在校验模型文件……",
|
|
18
|
+
"splash.loading_engine": "正在加载语音模型……",
|
|
19
|
+
"splash.initializing_mic": "正在初始化麦克风……",
|
|
20
|
+
|
|
21
|
+
"footer.enter_paste": "回车粘贴",
|
|
22
|
+
"footer.space_pause": "空格暂停",
|
|
23
|
+
"footer.space_resume": "空格继续",
|
|
24
|
+
"footer.tab_settings": "Tab 设置",
|
|
25
|
+
"footer.esc_cancel": "Esc 取消",
|
|
26
|
+
"footer.esc_back": "Esc 返回",
|
|
27
|
+
"footer.ctrl_s_save": "Ctrl-S 保存",
|
|
28
|
+
"footer.enter_toggle": "回车切换",
|
|
29
|
+
|
|
30
|
+
"transcript.placeholder": "正在聆听……",
|
|
31
|
+
|
|
32
|
+
"notify.settings_saved": "语音设置已保存",
|
|
33
|
+
|
|
34
|
+
"status.recording": "录制中",
|
|
35
|
+
"status.paused": "已暂停",
|
|
36
|
+
|
|
37
|
+
"settings.microphone_label": "麦克风",
|
|
38
|
+
"settings.microphone_value_default": "系统默认输入设备",
|
|
39
|
+
"settings.language_label": "语言",
|
|
40
|
+
"settings.language_value_auto": "自动检测",
|
|
41
|
+
"settings.language_hint": "运行 /languages 切换语言。",
|
|
42
|
+
"settings.hallucination_filter_label": "过滤 Whisper 噪声",
|
|
43
|
+
"settings.hallucination_filter_hint": "丢弃静音段伪影。单词语音转写时可关闭。",
|
|
44
|
+
|
|
45
|
+
"settings.equalizer_label": "均衡器",
|
|
46
|
+
"settings.equalizer_hint": "在转录文本下方显示实时音频波形。默认关闭。"
|
|
47
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juicesharp/rpiv-voice",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Pi extension. Voice dictation via /voice — local on-device STT with sherpa-onnx Whisper (base multilingual int8), microphone capture via decibri.",
|
|
6
6
|
"keywords": [
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@juicesharp/rpiv-config": "^
|
|
82
|
+
"@juicesharp/rpiv-config": "^2.0.0",
|
|
83
83
|
"sherpa-onnx-node": "^1.13.0",
|
|
84
84
|
"decibri": "^3.4.0"
|
|
85
85
|
},
|