@ds-hu/dsh-better-voice-input 0.2.0 → 0.3.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/README.en.md +32 -24
- package/README.md +28 -22
- package/docs/ARCHITECTURE.md +28 -12
- package/docs/CONTRACTS.md +77 -14
- package/docs/DETAIL.md +6 -4
- package/docs/DETAIL.zh.md +4 -3
- package/docs/VERIFICATION.md +61 -10
- package/docs/preview-settings-en.svg +86 -66
- package/docs/preview-settings.svg +86 -66
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +7 -7
package/README.en.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[中文 →](README.md)
|
|
4
4
|
|
|
5
|
-
**21 speech-recognition services for the DeepSeek Harness Web GUI
|
|
6
|
-
hold-to-talk composer with
|
|
7
|
-
keyboard shortcut.**
|
|
5
|
+
**21 speech-recognition services for the DeepSeek Harness Web GUI — 7 of them with live
|
|
6
|
+
streaming — plus a DeepSeek-App-style hold-to-talk composer with a fly-to-composer animation and
|
|
7
|
+
a configurable keyboard shortcut.**
|
|
8
8
|
|
|
9
9
|

|
|
10
10
|
|
|
@@ -17,8 +17,13 @@ keyboard shortcut.**
|
|
|
17
17
|
you like.
|
|
18
18
|
- **Hold the composer to talk.** Desktop and touch share one hold detector: hold the input box to
|
|
19
19
|
get a full-screen recording overlay with a live waveform; slide up into the cancel zone and
|
|
20
|
-
release to discard, release anywhere else to transcribe. With a streaming model
|
|
21
|
-
|
|
20
|
+
release to discard, release anywhere else to transcribe. With a streaming model the transcript
|
|
21
|
+
appears live above the overlay while you speak and flies into the composer on release.
|
|
22
|
+
- **7 models stream live.** Local **X-ASR** (480 ms incremental decoding) plus six cloud services
|
|
23
|
+
with realtime WebSocket channels: **ElevenLabs, Soniox, DashScope, OpenAI Realtime /
|
|
24
|
+
OpenAI-compatible, Volcengine and Tencent Cloud**. The realtime model is configured separately
|
|
25
|
+
from the batch model (the `streamModel` / `streamResourceId` fields in settings). If the live
|
|
26
|
+
channel fails, the same recording is retranscribed through the batch path, so no take is lost.
|
|
22
27
|
- **Configurable shortcut.** Record a key combination (for example `Ctrl+Shift+Space`) in the
|
|
23
28
|
settings and hold it to dictate from anywhere in a conversation; `Esc` cancels, releasing
|
|
24
29
|
inserts.
|
|
@@ -41,8 +46,9 @@ keyboard shortcut.**
|
|
|
41
46
|

|
|
42
47
|
|
|
43
48
|
1. After installing, enable this plugin in **Plugins** and open its detail page → **Settings**.
|
|
44
|
-
2.
|
|
45
|
-
|
|
49
|
+
2. The page is split into three tabs — Services, Models and Interaction — with the dependency
|
|
50
|
+
status and tab bar pinned at the top. Both lists are master-detail: pick an entry first, and
|
|
51
|
+
only that entry's form expands in place, so a phone never scrolls through every field at once.
|
|
46
52
|
3. Pick a cloud service and paste its API key (environment variables work as a fallback; the
|
|
47
53
|
OpenAI-compatible self-hosted entry may stay empty), or download a local model. Under
|
|
48
54
|
*Interaction* you can turn live text off; under *Shortcut* you can record a key combination.
|
|
@@ -51,26 +57,28 @@ keyboard shortcut.**
|
|
|
51
57
|
|
|
52
58
|
## Cloud services
|
|
53
59
|
|
|
54
|
-
| Provider | Default model | Environment variable |
|
|
55
|
-
| --- | --- | --- |
|
|
56
|
-
| SiliconFlow | `FunAudioLLM/SenseVoiceSmall` | `SILICONFLOW_API_KEY` |
|
|
57
|
-
| Volcengine | `bigmodel` (flash) | `VOLCENGINE_API_KEY` |
|
|
58
|
-
| ElevenLabs | `scribe_v3` | `ELEVENLABS_API_KEY` |
|
|
59
|
-
| OpenAI / OpenAI-compatible | `gpt-transcribe` (editable) | `OPENAI_API_KEY` (optional) |
|
|
60
|
-
| OpenRouter | `qwen/qwen3-asr-1.7b` | `OPENROUTER_API_KEY` |
|
|
61
|
-
| DashScope (Alibaba Cloud) | `qwen-audio-3.1-asr-flash` | `DASHSCOPE_API_KEY` |
|
|
62
|
-
| DeepSeek | service default | `DEEPSEEK_API_KEY` |
|
|
63
|
-
| Google Gemini | `gemini-3.5-transcribe` | `GEMINI_API_KEY` |
|
|
64
|
-
| Xiaomi MiMo | `mimo-v2.5-asr` | `MIMO_API_KEY` |
|
|
65
|
-
| Tencent Cloud | engine `16k_zh` | `TENCENT_ASR_APP_ID` / `TENCENT_ASR_SECRET_ID` / `TENCENT_ASR_SECRET_KEY` |
|
|
66
|
-
| Soniox | `stt-async-v6` | `SONIOX_API_KEY` |
|
|
67
|
-
| StepAudio | `stepaudio-2.5-asr` | `STEPFUN_API_KEY` |
|
|
68
|
-
| Zhipu GLM | `glm-asr-2512` | `ZHIPU_API_KEY` |
|
|
69
|
-
| Cohere | `cohere-transcribe-03-2026` | `COHERE_API_KEY` |
|
|
60
|
+
| Provider | Default batch model | Realtime model | Environment variable |
|
|
61
|
+
| --- | --- | --- | --- |
|
|
62
|
+
| SiliconFlow | `FunAudioLLM/SenseVoiceSmall` | — | `SILICONFLOW_API_KEY` |
|
|
63
|
+
| Volcengine | `bigmodel` (flash) | `volc.seedasr.sauc.duration` resource | `VOLCENGINE_API_KEY` |
|
|
64
|
+
| ElevenLabs | `scribe_v3` | `scribe_v3_live` | `ELEVENLABS_API_KEY` |
|
|
65
|
+
| OpenAI / OpenAI-compatible | `gpt-transcribe` (editable) | `gpt-4o-mini-transcribe` | `OPENAI_API_KEY` (optional) |
|
|
66
|
+
| OpenRouter | `qwen/qwen3-asr-1.7b` | — | `OPENROUTER_API_KEY` |
|
|
67
|
+
| DashScope (Alibaba Cloud) | `qwen-audio-3.1-asr-flash` | `qwen3-asr-flash-realtime` | `DASHSCOPE_API_KEY` |
|
|
68
|
+
| DeepSeek | service default | — | `DEEPSEEK_API_KEY` |
|
|
69
|
+
| Google Gemini | `gemini-3.5-transcribe` | — | `GEMINI_API_KEY` |
|
|
70
|
+
| Xiaomi MiMo | `mimo-v2.5-asr` | — | `MIMO_API_KEY` |
|
|
71
|
+
| Tencent Cloud | engine `16k_zh` | engine `16k_zh` | `TENCENT_ASR_APP_ID` / `TENCENT_ASR_SECRET_ID` / `TENCENT_ASR_SECRET_KEY` |
|
|
72
|
+
| Soniox | `stt-async-v6` | `stt-rt-v6` | `SONIOX_API_KEY` |
|
|
73
|
+
| StepAudio | `stepaudio-2.5-asr` | — | `STEPFUN_API_KEY` |
|
|
74
|
+
| Zhipu GLM | `glm-asr-2512` | — | `ZHIPU_API_KEY` |
|
|
75
|
+
| Cohere | `cohere-transcribe-03-2026` | — | `COHERE_API_KEY` |
|
|
70
76
|
|
|
71
77
|
Most services accept a custom base URL (proxies, regional endpoints) and their documented model
|
|
72
78
|
and language-hint options. The OpenAI-compatible entry can point at a fully self-hosted gateway
|
|
73
|
-
(for example a local X-ASR model exposed through an OpenAI endpoint) with no API key at all.
|
|
79
|
+
(for example a local X-ASR model exposed through an OpenAI endpoint) with no API key at all. The
|
|
80
|
+
realtime model is configured independently from the batch model; "—" means the vendor has no
|
|
81
|
+
public realtime websocket yet and stays batch-only.
|
|
74
82
|
|
|
75
83
|
## Local models
|
|
76
84
|
|
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[English →](README.en.md)
|
|
4
4
|
|
|
5
|
-
为 DeepSeek Harness 的 Web GUI 增加 **21
|
|
6
|
-
|
|
5
|
+
为 DeepSeek Harness 的 Web GUI 增加 **21 个语音识别服务**(其中 **7 个支持实时流式转写**),并把
|
|
6
|
+
输入框变成 DeepSeek App 那样**按住说话**的录音入口:支持浮层文字落位动画、可自定义的快捷键长按。
|
|
7
7
|
|
|
8
8
|

|
|
9
9
|
|
|
@@ -14,8 +14,12 @@
|
|
|
14
14
|
DeepSeek),加上 7 个在本机运行的模型系列(SenseVoice、FunASR Nano、Qwen3-ASR、Parakeet、
|
|
15
15
|
GigaAM、FireRedASR、X-ASR)。在插件面板里选中即用,随时切换。
|
|
16
16
|
- **按住输入框说话。** 桌面与触屏共用同一套长按判定:按住输入框出现全屏录音浮层与实时波形,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
上滑离开取消区、松手取消,其他位置松手开始转写。挑中支持实时流式的模型时,转写文字会在
|
|
18
|
+
录音过程中实时出现在浮层上方,松手后从屏幕中间平滑飞入输入框。
|
|
19
|
+
- **7 个模型支持实时流式。** 本地 **X-ASR**(480 ms 增量解码),加上 6 家带实时 WebSocket 通道的
|
|
20
|
+
云端服务:**ElevenLabs、Soniox、阿里云百炼、OpenAI Realtime / OpenAI 兼容、火山引擎、腾讯云**。
|
|
21
|
+
实时通道与批量模型分开配置(设置页里的「流式模型 / 流式资源 ID」字段),实时失败会自动改用
|
|
22
|
+
整段录音走批量识别,不会丢话。
|
|
19
23
|
- **自定义快捷键。** 除按住输入框外,还可以在设置里录一个组合键(例如 `Ctrl+Shift+Space`),
|
|
20
24
|
长按它随时开始语音输入;`Esc` 取消,松手插入。桌面、移动端行为一致。
|
|
21
25
|
- **不打扰输入法。** 手机点开键盘、光标在输入框里时,长按输入框不会再触发录音(避免键盘被推走、
|
|
@@ -31,33 +35,35 @@
|
|
|
31
35
|

|
|
32
36
|
|
|
33
37
|
1. 安装后在 **Plugins** 面板启用本插件,打开详情页 → **设置**。
|
|
34
|
-
2.
|
|
35
|
-
|
|
38
|
+
2. 设置页按「服务 / 模型 / 交互」分为三个分区,依赖状态与分区切换固定在顶部;
|
|
39
|
+
云端/本地列表都是「先点选、再在行内展开表单」,移动端不必在几十个输入框之间找。
|
|
36
40
|
3. 选择云端服务并填写 API Key(也支持环境变量兜底;OpenAI 兼容的自部署服务可留空),
|
|
37
41
|
或下载一个本地模型;在「交互」里可以关闭实时文字、在「快捷键」里录一个组合键。
|
|
38
42
|
4. 回到对话,把光标放到要插入文字的位置,按住输入框(或长按快捷键)说话。
|
|
39
43
|
|
|
40
44
|
## 云端服务
|
|
41
45
|
|
|
42
|
-
| 供应商 |
|
|
43
|
-
| --- | --- | --- |
|
|
44
|
-
| SiliconFlow 硅基流动 | `FunAudioLLM/SenseVoiceSmall` | `SILICONFLOW_API_KEY` |
|
|
45
|
-
| 火山引擎 | `bigmodel`(flash) | `VOLCENGINE_API_KEY` |
|
|
46
|
-
| ElevenLabs | `scribe_v3` | `ELEVENLABS_API_KEY` |
|
|
47
|
-
| OpenAI / OpenAI 兼容 | `gpt-transcribe`(可自定义) | `OPENAI_API_KEY`(可留空) |
|
|
48
|
-
| OpenRouter | `qwen/qwen3-asr-1.7b` | `OPENROUTER_API_KEY` |
|
|
49
|
-
| 阿里云百炼 | `qwen-audio-3.1-asr-flash` | `DASHSCOPE_API_KEY` |
|
|
50
|
-
| DeepSeek | 服务默认 | `DEEPSEEK_API_KEY` |
|
|
51
|
-
| Google Gemini | `gemini-3.5-transcribe` | `GEMINI_API_KEY` |
|
|
52
|
-
| 小米 MiMo | `mimo-v2.5-asr` | `MIMO_API_KEY` |
|
|
53
|
-
| 腾讯云 | 引擎 `16k_zh` | `TENCENT_ASR_APP_ID` / `TENCENT_ASR_SECRET_ID` / `TENCENT_ASR_SECRET_KEY` |
|
|
54
|
-
| Soniox | `stt-async-v6` | `SONIOX_API_KEY` |
|
|
55
|
-
| 阶跃星辰 | `stepaudio-2.5-asr` | `STEPFUN_API_KEY` |
|
|
56
|
-
| 智谱 GLM | `glm-asr-2512` | `ZHIPU_API_KEY` |
|
|
57
|
-
| Cohere | `cohere-transcribe-03-2026` | `COHERE_API_KEY` |
|
|
46
|
+
| 供应商 | 默认批量模型 | 实时流式模型 | 环境变量 |
|
|
47
|
+
| --- | --- | --- | --- |
|
|
48
|
+
| SiliconFlow 硅基流动 | `FunAudioLLM/SenseVoiceSmall` | — | `SILICONFLOW_API_KEY` |
|
|
49
|
+
| 火山引擎 | `bigmodel`(flash) | 资源 ID `volc.seedasr.sauc.duration` | `VOLCENGINE_API_KEY` |
|
|
50
|
+
| ElevenLabs | `scribe_v3` | `scribe_v3_live` | `ELEVENLABS_API_KEY` |
|
|
51
|
+
| OpenAI / OpenAI 兼容 | `gpt-transcribe`(可自定义) | `gpt-4o-mini-transcribe` | `OPENAI_API_KEY`(可留空) |
|
|
52
|
+
| OpenRouter | `qwen/qwen3-asr-1.7b` | — | `OPENROUTER_API_KEY` |
|
|
53
|
+
| 阿里云百炼 | `qwen-audio-3.1-asr-flash` | `qwen3-asr-flash-realtime` | `DASHSCOPE_API_KEY` |
|
|
54
|
+
| DeepSeek | 服务默认 | — | `DEEPSEEK_API_KEY` |
|
|
55
|
+
| Google Gemini | `gemini-3.5-transcribe` | — | `GEMINI_API_KEY` |
|
|
56
|
+
| 小米 MiMo | `mimo-v2.5-asr` | — | `MIMO_API_KEY` |
|
|
57
|
+
| 腾讯云 | 引擎 `16k_zh` | 引擎 `16k_zh` | `TENCENT_ASR_APP_ID` / `TENCENT_ASR_SECRET_ID` / `TENCENT_ASR_SECRET_KEY` |
|
|
58
|
+
| Soniox | `stt-async-v6` | `stt-rt-v6` | `SONIOX_API_KEY` |
|
|
59
|
+
| 阶跃星辰 | `stepaudio-2.5-asr` | — | `STEPFUN_API_KEY` |
|
|
60
|
+
| 智谱 GLM | `glm-asr-2512` | — | `ZHIPU_API_KEY` |
|
|
61
|
+
| Cohere | `cohere-transcribe-03-2026` | — | `COHERE_API_KEY` |
|
|
58
62
|
|
|
59
63
|
多数服务支持自定义 base URL(代理、区域端点)与文档化的 model、语言提示等选项;OpenAI 兼容
|
|
60
64
|
一项可以完整指向自建网关(例如把本地 X-ASR 模型以 OpenAI 接口暴露),无需 API Key。
|
|
65
|
+
实时流式模型独立于批量模型配置;「—」表示该供应商暂无公开的实时 WebSocket 接口,仍可正常
|
|
66
|
+
批量识别。
|
|
61
67
|
|
|
62
68
|
## 本地模型
|
|
63
69
|
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Architecture — better voice input for DSH
|
|
2
2
|
|
|
3
|
-
Status: design of record for v0.
|
|
3
|
+
Status: design of record for v0.3. Everything here is plain ESM JavaScript, no build step.
|
|
4
4
|
|
|
5
5
|
## 1. Product
|
|
6
6
|
|
|
@@ -99,6 +99,18 @@ settings page reports the missing official dependency.
|
|
|
99
99
|
local X-ASR gateway exposed as an OpenAI `/v1/audio/transcriptions` server can be selected
|
|
100
100
|
directly.
|
|
101
101
|
- Failures throw `Error` messages that the service relays to the UI (no secrets, bounded length).
|
|
102
|
+
- Realtime (v0.3): six vendors also expose a live websocket channel through the optional
|
|
103
|
+
`provider.bviStreaming` extension — ElevenLabs, Soniox, DashScope, OpenAI Realtime,
|
|
104
|
+
Volcengine and Tencent. `lib/catalog.js` joins each `streaming: true` record with its protocol
|
|
105
|
+
module; `lib/streaming/session.js` owns the vendor-neutral lifecycle (credential resolution,
|
|
106
|
+
language check, `ws` handshake with a 10 s timeout, cumulative partials, one terminal state,
|
|
107
|
+
15 s finish deadline), `lib/streaming/socket.js` is the only `ws` import, and each vendor file
|
|
108
|
+
is a pure frame codec (`url/headers/open/push/finish/message/close`) that sends and parses its
|
|
109
|
+
own protocol through the session's `emit.send`/`emit.partial`/`emit.final`/`emit.fail`
|
|
110
|
+
callbacks. A failed live take is not fatal: the input component retranscribes the same
|
|
111
|
+
recording through the batch path, so `streaming: true` never means "live text or nothing".
|
|
112
|
+
Protocol table and settings fields: `docs/CONTRACTS.md`; wire details:
|
|
113
|
+
`docs/research/cloud-providers.md` §0.2 and each vendor section.
|
|
102
114
|
|
|
103
115
|
### 3.4 Local providers (`local`)
|
|
104
116
|
|
|
@@ -254,10 +266,11 @@ reference; text is centered around 38 % of the viewport height, waveform band ar
|
|
|
254
266
|
so iOS/desktop autoplay policies are satisfied), AudioWorklet (inline blob module) captures
|
|
255
267
|
Float32 frames and posts RMS/peak meter values at ~30 Hz.
|
|
256
268
|
- Two capture modes share one microphone: **batch** keeps `MediaRecorder` and produces the
|
|
257
|
-
canonical WAV at release; **streaming** (v0.
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
269
|
+
canonical WAV at release; **streaming** (v0.3, selected provider declares `streaming` — local
|
|
270
|
+
X-ASR or one of the six cloud realtime vendors) taps the AudioWorklet Float32 frames,
|
|
271
|
+
downsamples to 16 kHz, chunks every ~200 ms and POSTs them to `/stream/chunk`. If
|
|
272
|
+
`AudioWorklet` is unavailable, or `/stream/start` fails, the recording transparently falls
|
|
273
|
+
back to batch. The waveform meter works in both modes.
|
|
261
274
|
- Stop: disconnect tracks, resample to 16 kHz linear interpolation, encode canonical mono PCM16
|
|
262
275
|
WAV (44-byte header), enforce `limits.maxAudioBytes`/`maxDurationSeconds`.
|
|
263
276
|
- The recording limit auto-finishes the take instead of dropping it.
|
|
@@ -268,7 +281,10 @@ reference; text is centered around 38 % of the viewport height, waveform band ar
|
|
|
268
281
|
|
|
269
282
|
- Streaming: `finish` returns the final transcript; a DOM flight clone animates the last live
|
|
270
283
|
line into the composer, then the normal insertion runs (reduced-motion skips the animation).
|
|
271
|
-
Slide-up cancel or Escape calls `/stream/cancel` and inserts nothing.
|
|
284
|
+
Slide-up cancel or Escape calls `/stream/cancel` and inserts nothing. If the live session
|
|
285
|
+
fails or times out (handshake, vendor error, 15 s finish deadline), the same recording is
|
|
286
|
+
retranscribed through `/transcribe` and inserted normally; the user sees live text only when
|
|
287
|
+
the channel actually works.
|
|
272
288
|
- `insert` (default): `inputActions.insertText(text, inputActions.captureInsertion())`; if the
|
|
273
289
|
draft moved concurrently, fall back to `setDraft(current + text)`; empty/whitespace -> notice.
|
|
274
290
|
- `send`: insert with the same guards, then `inputActions.submit()` on the next microtask.
|
|
@@ -294,8 +310,9 @@ reference; text is centered around 38 % of the viewport height, waveform band ar
|
|
|
294
310
|
`speechToText` service, local catalog/provision/worker protocol and recognizer-config builders
|
|
295
311
|
(no native load), both browser entries loaded in a `vm` harness (factory contract, placement,
|
|
296
312
|
gesture state machine, WAV encoder, preference handling), streaming session relays and the
|
|
297
|
-
optional-credential path,
|
|
298
|
-
|
|
313
|
+
optional-credential path, the six cloud realtime frame codecs against the shared session
|
|
314
|
+
harness (no network: fake socket + fake protocol), and one cross-component test that holds the
|
|
315
|
+
21-provider and release/documentation contracts together.
|
|
299
316
|
- `npm run lint` is part of `npm run check`; CI (`.github/workflows/ci.yml`) is the only place
|
|
300
317
|
these run, on Node 20 and 22.
|
|
301
318
|
- `.github/workflows/release.yml` publishes core -> service/cloud/local/input -> bundle on a `v*`
|
|
@@ -307,11 +324,10 @@ reference; text is centered around 38 % of the viewport height, waveform band ar
|
|
|
307
324
|
adapter with an **empty API key**, and asserts the transcript plus the absence of an
|
|
308
325
|
authorization header. Neither runs on PRs. Evidence is recorded in `docs/VERIFICATION.md`.
|
|
309
326
|
|
|
310
|
-
## 7. Non-goals for v0.
|
|
327
|
+
## 7. Non-goals for v0.3
|
|
311
328
|
|
|
312
|
-
-
|
|
313
|
-
|
|
314
|
-
protocols that deserve their own adapters.
|
|
329
|
+
- Realtime channels for vendors without a documented public websocket (the other eight cloud
|
|
330
|
+
entries) — they stay batch-only; `streaming` is a per-record catalog fact, not a universal mode.
|
|
315
331
|
- Selecting a browser microphone device (system default only).
|
|
316
332
|
- Downloading models in the browser; all model I/O stays on the host.
|
|
317
333
|
- Replacing the official recording component (both can coexist; keep the official bundle's
|
package/docs/CONTRACTS.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Module contracts (v0.
|
|
1
|
+
# Module contracts (v0.3)
|
|
2
2
|
|
|
3
3
|
Implementation contract between the five packages. Names are exact: the same identifiers are
|
|
4
4
|
imported across packages and asserted by tests. Plain ESM, JSDoc only.
|
|
@@ -255,7 +255,7 @@ Success is HTTP 2xx with `{ ok: true, ... }`; failure is a non-2xx with
|
|
|
255
255
|
"providers": [{ "id": "bvi-cloud-openai", "name": "…", "location": "cloud",
|
|
256
256
|
"languages": ["auto", "zh"],
|
|
257
257
|
"preparation": { "phase": "ready" },
|
|
258
|
-
"streaming":
|
|
258
|
+
"streaming": true }],
|
|
259
259
|
"selection": { "providerId": "bvi-cloud-openai", "language": "zh" },
|
|
260
260
|
"config": { "bvi-cloud-openai": { "configured": true,
|
|
261
261
|
"fields": { "apiKey": "sk-…4f2a", "baseURL": "…" } } },
|
|
@@ -318,7 +318,7 @@ view shows the configured cloud/local counts.
|
|
|
318
318
|
`POST /api/better-voice-input/transcribe?language=…`). Gesture, overlay and audio rules:
|
|
319
319
|
`docs/ARCHITECTURE.md` §4.
|
|
320
320
|
|
|
321
|
-
## Streaming extension (v0.
|
|
321
|
+
## Streaming extension (v0.3, our providers only)
|
|
322
322
|
|
|
323
323
|
The official speech seam has no streaming API, so live transcripts use a **service-owned relay**
|
|
324
324
|
plus an optional extension object on our own registered providers. Nothing official is modified.
|
|
@@ -341,9 +341,13 @@ provider.bviStreaming = {
|
|
|
341
341
|
|
|
342
342
|
- Records omit `streaming` (or keep `false`) unless the family has a native incremental
|
|
343
343
|
recognizer; absence means `false`. Only a provider whose catalog record declares
|
|
344
|
-
`streaming: true` may implement the extension; the service
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
`streaming: true` may implement the extension; the service marks those entries in `/state`
|
|
345
|
+
(`providers[].streaming`) and refuses `/stream/start` for any other provider
|
|
346
|
+
(`streaming-unavailable`, HTTP 409).
|
|
347
|
+
- v0.3 declares `streaming: true` for seven families: local X-ASR (sherpa `OnlineRecognizer`
|
|
348
|
+
in the worker, §"Worker private protocol") and six cloud vendors with real websocket
|
|
349
|
+
transports (ElevenLabs, Soniox, DashScope, OpenAI Realtime, Volcengine, Tencent, table
|
|
350
|
+
below). The other eight cloud vendors and six local families stay batch-only.
|
|
347
351
|
- The service obtains the provider object with `ctx.speechToText.resolve({ audio: new
|
|
348
352
|
Uint8Array(0), language, providerId })` and checks `provider.bviStreaming` at request time.
|
|
349
353
|
The pinned provider lifetime is the session lifetime; `/stream/finish|cancel` release it.
|
|
@@ -353,6 +357,49 @@ provider.bviStreaming = {
|
|
|
353
357
|
- `bviStreaming` is the only non-official property we add to a provider object; official
|
|
354
358
|
consumers ignore it.
|
|
355
359
|
|
|
360
|
+
#### Cloud realtime implementation (`packages/cloud/lib/streaming/`)
|
|
361
|
+
|
|
362
|
+
The cloud row attaches `provider.bviStreaming = createCloudStreaming(descriptor, { readConfig,
|
|
363
|
+
env })` only when the joined descriptor has `streaming: true`; `packages/cloud/lib/catalog.js`
|
|
364
|
+
gives that descriptor a `streamingAdapter` (the vendor protocol module) and refuses to start if a
|
|
365
|
+
streaming record lacks one. The lifecycle lives in
|
|
366
|
+
`session.js`, the only `ws` import lives in `socket.js`, and each vendor file is a pure frame
|
|
367
|
+
codec:
|
|
368
|
+
|
|
369
|
+
```js
|
|
370
|
+
// packages/cloud/lib/streaming/<vendor>.js
|
|
371
|
+
export function createStreamSession({ settings, language, sampleRate, emit }) {
|
|
372
|
+
return {
|
|
373
|
+
url() …, // -> ws(s) URL; may read settings/credentials
|
|
374
|
+
headers() …, // -> header-based auth only
|
|
375
|
+
open() { emit.send(JSON.stringify(initialFrame)) },
|
|
376
|
+
push(pcm) { emit.send(pcm) }, // PCM16LE mono 16 kHz, raw or base64 per vendor
|
|
377
|
+
finish() { emit.send(commitFrame) },
|
|
378
|
+
message(data) { … emit.partial(text) / emit.final(text) / emit.fail(error) },
|
|
379
|
+
close?() { … assemble a final from buffered state on server close },
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
- `emit.send(data: string | Uint8Array)` is installed before the protocol is constructed (lazy
|
|
385
|
+
socket closure); it throws `ProviderError('network')` before the upgrade or after teardown.
|
|
386
|
+
- The shared session resolves credentials with `resolveProviderSettings` (same
|
|
387
|
+
`missing-credential` error as batch, before any socket), validates the language against the
|
|
388
|
+
catalog list, applies a 10 s HTTP-upgrade timeout, keeps a single terminal state and enforces
|
|
389
|
+
a 15 s finish deadline; a timed-out/closed/failed live take rejects, and the input component
|
|
390
|
+
falls back to `/transcribe` with the same recording, so live mode never loses a take.
|
|
391
|
+
- Vendor failures map onto the existing `ProviderError` codes (`http` with `status`, `timeout`,
|
|
392
|
+
`network`, `parse`, `unsupported`) so `/stream/*` and `/transcribe` report the same shapes.
|
|
393
|
+
|
|
394
|
+
| vendor | realtime endpoint | auth | realtime model field (default) | client frames | final signal |
|
|
395
|
+
| --- | --- | --- | --- | --- | --- |
|
|
396
|
+
| `elevenlabs` | `wss://…/v1/speech-to-text/realtime` | `xi-api-key` | `streamModel` (`scribe_v3_live`) | JSON `input_audio_chunk` with base64 PCM; commit chunk on finish | `committed_transcript` |
|
|
397
|
+
| `soniox` | `wss://…/transcribe-websocket` | `Authorization: Bearer` | `streamModel` (`stt-rt-v6`) | config JSON, then binary PCM; `{type:'finalize'}` + empty frame on finish | token stream `finished: true` |
|
|
398
|
+
| `dashscope` | `wss://…/api-ws/v1/realtime` | Bearer + `OpenAI-Beta: realtime=v1` | `streamModel` (`qwen3-asr-flash-realtime`) | `session.update`, base64 appends, `session.finish` | `.text` previews; final on `session.finished` (accumulated `.completed`) |
|
|
399
|
+
| `openai` | `wss://…/v1/realtime?intent=transcription` | Bearer (blank key = none) | `streamModel` (`gpt-4o-mini-transcribe`) | `session.update`, base64 appends, `input_audio_buffer.commit` | transcription `.completed` |
|
|
400
|
+
| `volc` | `wss://…/api/v3/sauc/bigmodel_async` | `X-Api-Key` or `X-Api-App-Key`+`X-Api-Access-Key` | `streamResourceId` (`volc.seedasr.sauc.duration`) | gzip binary protocol: full client request, audio frames, last frame | server frame with `flags & 3 === 3`, `result.text` |
|
|
401
|
+
| `tencent` | `wss://…/asr/v2/{appid}?{signed query}` | HMAC-SHA1 signed URL | `engineType` (`16k_zh`) | binary PCM, then `{"type":"end"}` | `final: 1` / `result.slice_type` |
|
|
402
|
+
|
|
356
403
|
### Worker private protocol (`packages/local`, X-ASR only)
|
|
357
404
|
|
|
358
405
|
`sherpa-onnx-node`'s `OnlineRecognizer` provides incremental results. The worker child exposes
|
|
@@ -395,14 +442,25 @@ cancelStream` and measures `inferenceSeconds` on the parent side.
|
|
|
395
442
|
`cubic-bezier(.2,.8,.2,1)`, opacity/scale), then the real insertion happens. `prefers-reduced-
|
|
396
443
|
motion` skips the animation.
|
|
397
444
|
|
|
398
|
-
### Settings page layout (v0.
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
445
|
+
### Settings page layout (v0.3)
|
|
446
|
+
|
|
447
|
+
The page is **container-width responsive, mobile-first**: one column, `container-type: inline-size`
|
|
448
|
+
on the root, and a single `@container (min-width: 560px)` refinement — never `@media` for the form
|
|
449
|
+
layout, because the host Plugins panel can be narrow inside a wide desktop viewport. Three
|
|
450
|
+
segmented tabs (服务 / 模型 / 交互) sit under a slim dependency status row; all three panels stay
|
|
451
|
+
mounted and are hidden with the `hidden` attribute so state survives tab switches and assistive
|
|
452
|
+
technology sees stable ids (`role="tablist"`, `aria-selected`, `aria-controls`, ArrowLeft/Right).
|
|
453
|
+
|
|
454
|
+
Cloud and local lists are **master-detail accordion rows** inside one inset hairline group: a
|
|
455
|
+
full-width row (name, secondary meta, streaming/configured chips, rotating chevron) and only the
|
|
456
|
+
selected entry expands its form in place (fields, env hint, docs, save; variant, estimate,
|
|
457
|
+
download/cancel/progress). Selecting a row is local component state; the first selection defaults
|
|
458
|
+
to the current `selection.providerId` (cloud) and the first installed local model (local); an empty
|
|
459
|
+
catalog shows a hint instead of a row. Touch targets are ≥ 40 px, inputs use 16 px text on mobile
|
|
460
|
+
to prevent iOS zoom, secret fields get an inline clear action, and the shortcut recorder renders as
|
|
461
|
+
a single `<kbd>` label. Motion is limited to short transitions and disabled by
|
|
462
|
+
`prefers-reduced-motion`. The summary view stays a flat two-line overview. No API change is needed
|
|
463
|
+
for this layout.
|
|
406
464
|
|
|
407
465
|
### OpenAI-compatible endpoints and optional credentials
|
|
408
466
|
|
|
@@ -430,6 +488,11 @@ Every module is testable without native dependencies and without a host process:
|
|
|
430
488
|
- service host: `apply(ctx, { dataRoot })` with a fake Cordis context whose
|
|
431
489
|
`connection.fetch.register` records the routes; the tests drive the handlers with Fetch
|
|
432
490
|
`Request`/`Response` objects (`test/service-host.test.mjs`).
|
|
491
|
+
- cloud realtime codecs: pure protocol modules instantiated with a captured `emit`
|
|
492
|
+
(`test/support/cloud-stream-harness.mjs`), fake server frames, and no socket; the shared
|
|
493
|
+
session lifecycle is driven with a fake transport that records `openSocket` options and lets a
|
|
494
|
+
test push server frames; the `ws` seam itself is exercised against loopback servers
|
|
495
|
+
(`test/cloud-stream-socket.test.mjs`), so no vendor account or external network is involved.
|
|
433
496
|
- browser entries: `test/client-harness.mjs` evaluates the classic script in a `vm` context,
|
|
434
497
|
captures `window.__ModuleLoader__.load({ id, factory })`, calls `factory(require)` with a
|
|
435
498
|
minimal React hook runtime, a fake document, fake timers and a fetch stub, and exposes the
|
package/docs/DETAIL.md
CHANGED
|
@@ -54,10 +54,12 @@ The official voice UI is click-to-record. This bundle reproduces the DeepSeek Ap
|
|
|
54
54
|
- Escape, a hidden tab or a lost focus cancels the recording — the microphone never stays open in
|
|
55
55
|
the background.
|
|
56
56
|
|
|
57
|
-
The settings page is
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
The settings page is split into three tabs — Services, Models and Interaction — with the
|
|
58
|
+
dependency status and tab bar always within reach. Cloud services and local models stay
|
|
59
|
+
master-detail: pick an entry first, and only that entry's form expands in place, so a phone never
|
|
60
|
+
flattens every field into one long scroll. The interaction section decides release behavior, hold
|
|
61
|
+
delay, cancel distance, the composer hint and live text; the shortcut section records the keyboard
|
|
62
|
+
combination.
|
|
61
63
|
|
|
62
64
|
Component: **更好的语音输入**.
|
|
63
65
|
|
package/docs/DETAIL.zh.md
CHANGED
|
@@ -44,9 +44,10 @@
|
|
|
44
44
|
(此前会把键盘推下去、浮层错位);收起键盘后按住即可说话。
|
|
45
45
|
- Esc、切到后台标签页、窗口失焦都会取消录音——麦克风不会在后台保持开启。
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
设置页按「服务 / 模型 / 交互」分成三个分区,依赖状态与分区切换始终在顶部可及;云端服务与本地
|
|
48
|
+
模型采用「先选模型、再看设置」的 master-detail 折叠列表:先点一个服务或模型,只展开它自己的
|
|
49
|
+
表单,手机上不需要在几十个输入框之间长距离滚动。交互区决定松手行为、长按时长、取消距离、输入框
|
|
50
|
+
提示与实时文字;快捷键区负责录制组合键。
|
|
50
51
|
|
|
51
52
|
组件:**更好的语音输入**。
|
|
52
53
|
|
package/docs/VERIFICATION.md
CHANGED
|
@@ -12,13 +12,48 @@ Node 22, then verifies the exact file list each package would publish
|
|
|
12
12
|
publishing.
|
|
13
13
|
|
|
14
14
|
- Latest green run on `main`: see the [CI runs](https://github.com/ds-hu/dsh-better-voice-input/actions/workflows/ci.yml).
|
|
15
|
+
- v0.3.0 pre-merge run on the feature branch:
|
|
16
|
+
[47636376413](https://github.com/ds-hu/dsh-better-voice-input/actions/runs/47636376413) —
|
|
17
|
+
406 tests on Node 20 and 22 (eslint clean, every package tarball verified at 0.3.0).
|
|
15
18
|
- Test suites: core config store / WAV / HTTP / cloud provider factory, 14 cloud wire-format
|
|
16
|
-
adapters against recorded responses,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
adapters against recorded responses, six cloud realtime frame codecs plus the shared session
|
|
20
|
+
lifecycle (fake transport) and the `ws` seam against loopback servers, service API, streaming
|
|
21
|
+
session relay and host routes against a fake speech registry, local catalog / downloads / zip
|
|
22
|
+
extraction / provider preparation / worker protocol (including the X-ASR `/stream/*` relay),
|
|
23
|
+
both browser entries in a `vm` React harness (gesture state machine, virtual-keyboard guard,
|
|
24
|
+
keyboard shortcut, live streaming client, fly-to-composer animation degradation, tabbed
|
|
25
|
+
mobile settings page), plus a cross-component test that holds the 21-provider, seven-streaming-
|
|
26
|
+
family, release-order and documentation contracts together.
|
|
27
|
+
|
|
28
|
+
## Cloud realtime streaming (v0.3)
|
|
29
|
+
|
|
30
|
+
No vendor account is part of this repository, so CI cannot open a real vendor websocket. The
|
|
31
|
+
realtime channels are verified in two layers instead:
|
|
32
|
+
|
|
33
|
+
1. **Protocol codecs** (`test/cloud-stream-elevenlabs|soniox|dashscope|openai|volc|tencent.test.mjs`)
|
|
34
|
+
instantiate each vendor module with a captured `emit`, assert the exact URL/auth/query strings,
|
|
35
|
+
handshake frame bytes (including Volcengine's gzip binary framing), audio encodings
|
|
36
|
+
(base64/binary/resampled 24 kHz), server-frame parsing (partials, finals, error mapping) and the
|
|
37
|
+
exact commit/finalize frames.
|
|
38
|
+
2. **Lifecycle and transport** (`test/cloud-streaming.test.mjs`, `test/cloud-stream-socket.test.mjs`)
|
|
39
|
+
drive the shared session with a fake transport (credentials, language checks, handshake failure,
|
|
40
|
+
early close, cancel, finish deadline, late sends) and the `ws` seam against loopback servers
|
|
41
|
+
(text/binary frames, 401 upgrade, handshake timeout, one close callback).
|
|
42
|
+
|
|
43
|
+
A live manual check per vendor is still the acceptance test. With a real key configured in
|
|
44
|
+
**Plugins → 更好的语音输入 → 设置 → 服务**, hold the composer and confirm:
|
|
45
|
+
|
|
46
|
+
| Vendor | What to check |
|
|
47
|
+
| --- | --- |
|
|
48
|
+
| ElevenLabs | live draft appears while speaking; release inserts the committed transcript; wrong key shows an error and the take is still retranscribed via batch |
|
|
49
|
+
| Soniox | live draft + final agree; a custom `baseURL` proxy reaches `<proxy>/transcribe-websocket` |
|
|
50
|
+
| DashScope | `qwen3-asr-flash-realtime` streaming model; preview keeps earlier utterances across pauses |
|
|
51
|
+
| OpenAI Realtime | official host uses 24 kHz internally (no config needed); a keyless compatible gateway also streams or falls back cleanly |
|
|
52
|
+
| Volcengine | `streamResourceId` resource id accepted; binary frames produce incremental text |
|
|
53
|
+
| Tencent | `engineType` (`16k_zh`) accepted; signed URL connects; `final:1` text inserted on release |
|
|
54
|
+
|
|
55
|
+
Falling back is not an error: if a live session fails at any step (handshake, vendor error,
|
|
56
|
+
15 s finish deadline), the input component transcribes the same recording through the batch path.
|
|
22
57
|
|
|
23
58
|
## Local models — real download and inference
|
|
24
59
|
|
|
@@ -67,13 +102,29 @@ through the real `bvi-cloud-openai` adapter.
|
|
|
67
102
|
| --- | --- | --- |
|
|
68
103
|
| OpenAI-compatible, keyless | [47626933281](https://github.com/ds-hu/dsh-better-voice-input/actions/runs/47626933281) | cloud transcript equals the local model output (“开放时间早上九点至下午五点”); server logged `authorization=none`; exactly one request, WAV bytes forwarded unchanged |
|
|
69
104
|
|
|
105
|
+
## Release v0.2.0
|
|
106
|
+
|
|
107
|
+
The tag `v0.2.0` ran `.github/workflows/release.yml` on the exact tagged tree:
|
|
108
|
+
quality gate (Node 22) → publish-file verification → publish all six packages with
|
|
109
|
+
`--provenance` → poll the registry until every package resolves → create the GitHub release.
|
|
110
|
+
|
|
111
|
+
| Check | Run | Result |
|
|
112
|
+
| --- | --- | --- |
|
|
113
|
+
| Release pipeline | [47627124896](https://github.com/ds-hu/dsh-better-voice-input/actions/runs/47627124896) | success: `@ds-hu/dsh-bvi-{core,service,cloud,local,input}` and `@ds-hu/dsh-better-voice-input` all published and visible at `0.2.0` with SLSA provenance |
|
|
114
|
+
|
|
115
|
+
The GitHub release is
|
|
116
|
+
[v0.2.0](https://github.com/ds-hu/dsh-better-voice-input/releases/tag/v0.2.0).
|
|
117
|
+
|
|
70
118
|
## What is not verified end-to-end
|
|
71
119
|
|
|
72
120
|
- **Cloud vendors** are implemented against their public HTTP APIs but were not called with real
|
|
73
|
-
credentials (no vendor account is part of this repository).
|
|
74
|
-
|
|
75
|
-
unit-tested
|
|
76
|
-
|
|
121
|
+
credentials (no vendor account is part of this repository). The six **cloud realtime
|
|
122
|
+
websocket** channels (ElevenLabs, Soniox, DashScope, OpenAI Realtime, Volcengine, Tencent) are
|
|
123
|
+
likewise unit-tested at the frame level against the reference app and vendor docs, and their
|
|
124
|
+
handshake/teardown/timeout behaviour is exercised with fake transports and loopback sockets —
|
|
125
|
+
but no real vendor handshake, key, or final-transcript timing is part of CI. A live call per
|
|
126
|
+
vendor is the first thing to try when a vendor changes its realtime API; the input component
|
|
127
|
+
automatically falls back to batch transcription when a live take fails.
|
|
77
128
|
- **The Web GUI integration** (slot rendering, the overlay's real-browser visuals, and the
|
|
78
129
|
settings page styling) is exercised through a `vm` React harness and the official slot contract,
|
|
79
130
|
not in a browser session, because this repository does not run browsers in CI.
|
|
@@ -1,69 +1,89 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="1280" height="1000" viewBox="0 0 1280 1000">
|
|
2
2
|
<rect width="1280" height="1000" fill="#0e1014"/>
|
|
3
|
-
<text x="640" y="
|
|
4
|
-
<text x="
|
|
5
|
-
|
|
6
|
-
<rect x="
|
|
7
|
-
<
|
|
8
|
-
<text x="
|
|
9
|
-
<text x="
|
|
10
|
-
|
|
11
|
-
<rect x="
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
<text x="
|
|
16
|
-
<
|
|
17
|
-
<rect x="
|
|
18
|
-
<
|
|
19
|
-
<text x="
|
|
20
|
-
<rect x="
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<text x="
|
|
26
|
-
|
|
27
|
-
<
|
|
28
|
-
<text x="
|
|
29
|
-
<
|
|
30
|
-
<
|
|
31
|
-
<
|
|
32
|
-
<text x="
|
|
33
|
-
<
|
|
34
|
-
<
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
<
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
<
|
|
41
|
-
<
|
|
42
|
-
<rect x="
|
|
43
|
-
<text x="
|
|
44
|
-
<text x="
|
|
45
|
-
<
|
|
46
|
-
<
|
|
47
|
-
<
|
|
48
|
-
<text x="
|
|
49
|
-
<
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
<text x="
|
|
53
|
-
<rect x="
|
|
54
|
-
<
|
|
55
|
-
<rect x="
|
|
56
|
-
<text x="
|
|
57
|
-
<text x="
|
|
58
|
-
<
|
|
59
|
-
<
|
|
60
|
-
<text x="
|
|
61
|
-
<
|
|
62
|
-
<text x="
|
|
63
|
-
|
|
64
|
-
<
|
|
65
|
-
<
|
|
66
|
-
<text x="
|
|
67
|
-
<
|
|
68
|
-
<text x="
|
|
3
|
+
<text x="640" y="44" fill="#e8ecf6" font-size="23" text-anchor="middle" font-family="Songti SC, Noto Serif SC, serif">Settings · pick a model first, then edit it</text>
|
|
4
|
+
<text x="640" y="70" fill="#6f7688" font-size="12" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Dependency status and three tabs stay on top; a row expands its own form in place</text>
|
|
5
|
+
|
|
6
|
+
<rect x="340" y="92" width="600" height="770" rx="20" fill="#16181d" stroke="#282c34"/>
|
|
7
|
+
<circle cx="378" cy="127" r="4" fill="#6fae7d"/>
|
|
8
|
+
<text x="392" y="132" fill="#eef2fb" font-size="13" font-weight="600" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Dependency</text>
|
|
9
|
+
<text x="474" y="132" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">The official speech-to-text service is connected.</text>
|
|
10
|
+
|
|
11
|
+
<rect x="370" y="156" width="540" height="56" rx="12" fill="#1a1d23" stroke="#262a32"/>
|
|
12
|
+
<rect x="374" y="160" width="172" height="48" rx="9" fill="#1d2027" stroke="#4f7fd6"/>
|
|
13
|
+
<circle cx="432" cy="184" r="6" fill="none" stroke="#8fb6ff" stroke-width="1.3"/>
|
|
14
|
+
<path d="M426 184h12M432 178c2 2 3 3.8 3 6s-1 4-3 6c-2-2-3-3.8-3-6s1-4 3-6z" fill="none" stroke="#8fb6ff" stroke-width="1"/>
|
|
15
|
+
<text x="448" y="189" fill="#eef2fb" font-size="12" font-weight="600" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Services</text>
|
|
16
|
+
<rect x="550" y="160" width="172" height="48" rx="9" fill="none"/>
|
|
17
|
+
<rect x="568" y="178" width="12" height="12" rx="2" fill="none" stroke="#6f7688" stroke-width="1.2"/>
|
|
18
|
+
<path d="M571 175v3M574 175v3M577 175v3M571 190v3M574 190v3M577 190v3M565 181h3M565 184h3M565 187h3M581 181h3M581 184h3M581 187h3" stroke="#6f7688" stroke-width="1"/>
|
|
19
|
+
<text x="590" y="189" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Models</text>
|
|
20
|
+
<rect x="726" y="160" width="172" height="48" rx="9" fill="none"/>
|
|
21
|
+
<path d="M744 180h12M744 184h12M744 188h12" stroke="#6f7688" stroke-width="1.2" stroke-linecap="round"/>
|
|
22
|
+
<circle cx="748" cy="180" r="2" fill="#1a1d23" stroke="#6f7688" stroke-width="1.2"/>
|
|
23
|
+
<circle cx="752" cy="184" r="2" fill="#1a1d23" stroke="#6f7688" stroke-width="1.2"/>
|
|
24
|
+
<circle cx="747" cy="188" r="2" fill="#1a1d23" stroke="#6f7688" stroke-width="1.2"/>
|
|
25
|
+
<text x="766" y="189" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Interaction</text>
|
|
26
|
+
|
|
27
|
+
<text x="370" y="250" fill="#eef2fb" font-size="13" font-weight="600" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Default recognizer</text>
|
|
28
|
+
<text x="370" y="274" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Recognizer</text>
|
|
29
|
+
<rect x="370" y="282" width="258" height="40" rx="10" fill="#1d2027" stroke="#2c313a"/>
|
|
30
|
+
<text x="386" y="307" fill="#e7ebf4" font-size="13" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">OpenAI speech recognition</text>
|
|
31
|
+
<path d="M610 298l5 5 5-5" fill="none" stroke="#8f96a6" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
32
|
+
<text x="652" y="274" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Language</text>
|
|
33
|
+
<rect x="652" y="282" width="258" height="40" rx="10" fill="#1d2027" stroke="#2c313a"/>
|
|
34
|
+
<text x="668" y="307" fill="#e7ebf4" font-size="13" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Chinese</text>
|
|
35
|
+
<path d="M892 298l5 5 5-5" fill="none" stroke="#8f96a6" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
36
|
+
|
|
37
|
+
<text x="370" y="352" fill="#eef2fb" font-size="13" font-weight="600" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Cloud recognizers</text>
|
|
38
|
+
<text x="370" y="370" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">API keys stay on this machine; only the expanded row renders its form.</text>
|
|
39
|
+
|
|
40
|
+
<rect x="370" y="384" width="540" height="364" rx="12" fill="#16181d" stroke="#282c34"/>
|
|
41
|
+
<rect x="370" y="384" width="540" height="54" rx="12" fill="#1d2027"/>
|
|
42
|
+
<rect x="370" y="426" width="540" height="12" fill="#1d2027"/>
|
|
43
|
+
<text x="386" y="410" fill="#eef2fb" font-size="14" font-weight="500" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">OpenAI speech recognition</text>
|
|
44
|
+
<text x="386" y="428" fill="#6f7688" font-size="11.5" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Auto-detect · Chinese · English</text>
|
|
45
|
+
<rect x="726" y="398" width="38" height="22" rx="11" fill="#1b2333" stroke="#2f4470"/>
|
|
46
|
+
<text x="745" y="414" fill="#8fb6ff" font-size="11" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Live</text>
|
|
47
|
+
<rect x="770" y="398" width="76" height="22" rx="11" fill="#1b2a22" stroke="#2f5d40"/>
|
|
48
|
+
<text x="808" y="414" fill="#7fc48f" font-size="11" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Configured</text>
|
|
49
|
+
<path d="M862 414l6-6 6 6" fill="none" stroke="#8f96a6" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
50
|
+
<line x1="370" y1="438" x2="910" y2="438" stroke="#282c34"/>
|
|
51
|
+
|
|
52
|
+
<text x="388" y="466" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">API key</text>
|
|
53
|
+
<rect x="388" y="476" width="430" height="38" rx="10" fill="#1d2027" stroke="#2c313a"/>
|
|
54
|
+
<text x="404" y="500" fill="#c9d1e0" font-size="13" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Stored sk-…1234; leave blank to keep it</text>
|
|
55
|
+
<rect x="826" y="476" width="68" height="38" rx="10" fill="#23272f" stroke="#2c313a"/>
|
|
56
|
+
<text x="860" y="500" fill="#aab2c2" font-size="12" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Clear</text>
|
|
57
|
+
<text x="388" y="540" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Base URL</text>
|
|
58
|
+
<rect x="388" y="550" width="506" height="38" rx="10" fill="#1d2027" stroke="#2c313a"/>
|
|
59
|
+
<text x="404" y="574" fill="#c9d1e0" font-size="13" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">https://api.openai.com/v1</text>
|
|
60
|
+
<text x="388" y="622" fill="#8fb6ff" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">API docs</text>
|
|
61
|
+
<rect x="762" y="602" width="132" height="36" rx="9" fill="#2563c9"/>
|
|
62
|
+
<text x="828" y="625" fill="#ffffff" font-size="13" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Save this service</text>
|
|
63
|
+
|
|
64
|
+
<line x1="370" y1="638" x2="910" y2="638" stroke="#282c34"/>
|
|
65
|
+
<text x="386" y="668" fill="#e7ebf4" font-size="14" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Volcengine</text>
|
|
66
|
+
<text x="386" y="686" fill="#6f7688" font-size="11.5" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Auto-detect · Chinese · English</text>
|
|
67
|
+
<rect x="738" y="656" width="38" height="22" rx="11" fill="#1b2333" stroke="#2f4470"/>
|
|
68
|
+
<text x="757" y="672" fill="#8fb6ff" font-size="11" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Live</text>
|
|
69
|
+
<rect x="782" y="656" width="64" height="22" rx="11" fill="#1a1d23" stroke="#2c313a"/>
|
|
70
|
+
<text x="814" y="672" fill="#8f96a6" font-size="11" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Not set</text>
|
|
71
|
+
<path d="M862 665l6 6 6-6" fill="none" stroke="#8f96a6" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
72
|
+
|
|
73
|
+
<line x1="370" y1="700" x2="910" y2="700" stroke="#282c34"/>
|
|
74
|
+
<text x="386" y="730" fill="#e7ebf4" font-size="14" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">DashScope</text>
|
|
75
|
+
<text x="386" y="748" fill="#6f7688" font-size="11.5" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Auto-detect · Chinese · English</text>
|
|
76
|
+
<rect x="738" y="716" width="38" height="22" rx="11" fill="#1b2333" stroke="#2f4470"/>
|
|
77
|
+
<text x="757" y="732" fill="#8fb6ff" font-size="11" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Live</text>
|
|
78
|
+
<rect x="782" y="716" width="64" height="22" rx="11" fill="#1a1d23" stroke="#2c313a"/>
|
|
79
|
+
<text x="814" y="732" fill="#8f96a6" font-size="11" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Not set</text>
|
|
80
|
+
<path d="M862 727l6 6 6-6" fill="none" stroke="#8f96a6" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
81
|
+
|
|
82
|
+
<rect x="370" y="766" width="540" height="52" rx="12" fill="#1a1d23" stroke="#262a32"/>
|
|
83
|
+
<text x="386" y="797" fill="#eef2fb" font-size="13" font-weight="600" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Notes</text>
|
|
84
|
+
<path d="M868 791l6 6 6-6" fill="none" stroke="#8f96a6" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
85
|
+
|
|
86
|
+
<text x="640" y="920" fill="#8f96a6" font-size="12" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Three equal tabs stay sticky on top; services and models share an inset list with in-place forms.</text>
|
|
87
|
+
<text x="640" y="944" fill="#6f7688" font-size="12" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">16px inputs on mobile avoid iOS zoom; a ≥560px container query switches to two columns.</text>
|
|
88
|
+
<text x="640" y="968" fill="#6f7688" font-size="12" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">44×26 switches, visible focus rings, native controls and prefers-reduced-motion support.</text>
|
|
69
89
|
</svg>
|
|
@@ -1,69 +1,89 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="1280" height="1000" viewBox="0 0 1280 1000">
|
|
2
2
|
<rect width="1280" height="1000" fill="#0e1014"/>
|
|
3
|
-
<text x="640" y="
|
|
4
|
-
<text x="
|
|
5
|
-
|
|
6
|
-
<rect x="
|
|
7
|
-
<
|
|
8
|
-
<text x="
|
|
9
|
-
<text x="
|
|
10
|
-
|
|
11
|
-
<rect x="
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
<text x="
|
|
16
|
-
<
|
|
17
|
-
<rect x="
|
|
18
|
-
<
|
|
19
|
-
<text x="
|
|
20
|
-
<rect x="
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<text x="
|
|
26
|
-
|
|
27
|
-
<
|
|
28
|
-
<text x="
|
|
29
|
-
<
|
|
30
|
-
<
|
|
31
|
-
<
|
|
32
|
-
<text x="
|
|
33
|
-
<
|
|
34
|
-
<
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
<
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
<
|
|
41
|
-
<
|
|
42
|
-
<rect x="
|
|
43
|
-
<text x="
|
|
44
|
-
<text x="
|
|
45
|
-
<
|
|
46
|
-
<
|
|
47
|
-
<
|
|
48
|
-
<text x="
|
|
49
|
-
<
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
<text x="
|
|
53
|
-
<rect x="
|
|
54
|
-
<
|
|
55
|
-
<rect x="
|
|
56
|
-
<text x="
|
|
57
|
-
<text x="
|
|
58
|
-
<
|
|
59
|
-
<
|
|
60
|
-
<text x="
|
|
61
|
-
<
|
|
62
|
-
<text x="
|
|
63
|
-
|
|
64
|
-
<
|
|
65
|
-
<
|
|
66
|
-
<text x="
|
|
67
|
-
<
|
|
68
|
-
<text x="
|
|
3
|
+
<text x="640" y="44" fill="#e8ecf6" font-size="23" text-anchor="middle" font-family="Songti SC, Noto Serif SC, serif">设置 · 先选模型,再看设置</text>
|
|
4
|
+
<text x="640" y="70" fill="#6f7688" font-size="12" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">顶部依赖状态与三个分区常驻;点一行,只在原位展开它的表单</text>
|
|
5
|
+
|
|
6
|
+
<rect x="340" y="92" width="600" height="770" rx="20" fill="#16181d" stroke="#282c34"/>
|
|
7
|
+
<circle cx="378" cy="127" r="4" fill="#6fae7d"/>
|
|
8
|
+
<text x="392" y="132" fill="#eef2fb" font-size="13" font-weight="600" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">依赖状态</text>
|
|
9
|
+
<text x="470" y="132" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">官方语音识别服务已连接,可以正常使用。</text>
|
|
10
|
+
|
|
11
|
+
<rect x="370" y="156" width="540" height="56" rx="12" fill="#1a1d23" stroke="#262a32"/>
|
|
12
|
+
<rect x="374" y="160" width="172" height="48" rx="9" fill="#1d2027" stroke="#4f7fd6"/>
|
|
13
|
+
<circle cx="432" cy="184" r="6" fill="none" stroke="#8fb6ff" stroke-width="1.3"/>
|
|
14
|
+
<path d="M426 184h12M432 178c2 2 3 3.8 3 6s-1 4-3 6c-2-2-3-3.8-3-6s1-4 3-6z" fill="none" stroke="#8fb6ff" stroke-width="1"/>
|
|
15
|
+
<text x="448" y="189" fill="#eef2fb" font-size="12" font-weight="600" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">服务</text>
|
|
16
|
+
<rect x="550" y="160" width="172" height="48" rx="9" fill="none"/>
|
|
17
|
+
<rect x="568" y="178" width="12" height="12" rx="2" fill="none" stroke="#6f7688" stroke-width="1.2"/>
|
|
18
|
+
<path d="M571 175v3M574 175v3M577 175v3M571 190v3M574 190v3M577 190v3M565 181h3M565 184h3M565 187h3M581 181h3M581 184h3M581 187h3" stroke="#6f7688" stroke-width="1"/>
|
|
19
|
+
<text x="590" y="189" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">模型</text>
|
|
20
|
+
<rect x="726" y="160" width="172" height="48" rx="9" fill="none"/>
|
|
21
|
+
<path d="M744 180h12M744 184h12M744 188h12" stroke="#6f7688" stroke-width="1.2" stroke-linecap="round"/>
|
|
22
|
+
<circle cx="748" cy="180" r="2" fill="#1a1d23" stroke="#6f7688" stroke-width="1.2"/>
|
|
23
|
+
<circle cx="752" cy="184" r="2" fill="#1a1d23" stroke="#6f7688" stroke-width="1.2"/>
|
|
24
|
+
<circle cx="747" cy="188" r="2" fill="#1a1d23" stroke="#6f7688" stroke-width="1.2"/>
|
|
25
|
+
<text x="766" y="189" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">交互</text>
|
|
26
|
+
|
|
27
|
+
<text x="370" y="250" fill="#eef2fb" font-size="13" font-weight="600" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">默认服务</text>
|
|
28
|
+
<text x="370" y="274" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">识别服务</text>
|
|
29
|
+
<rect x="370" y="282" width="258" height="40" rx="10" fill="#1d2027" stroke="#2c313a"/>
|
|
30
|
+
<text x="386" y="307" fill="#e7ebf4" font-size="13" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">OpenAI 语音识别</text>
|
|
31
|
+
<path d="M610 298l5 5 5-5" fill="none" stroke="#8f96a6" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
32
|
+
<text x="652" y="274" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">识别语言</text>
|
|
33
|
+
<rect x="652" y="282" width="258" height="40" rx="10" fill="#1d2027" stroke="#2c313a"/>
|
|
34
|
+
<text x="668" y="307" fill="#e7ebf4" font-size="13" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">中文</text>
|
|
35
|
+
<path d="M892 298l5 5 5-5" fill="none" stroke="#8f96a6" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
36
|
+
|
|
37
|
+
<text x="370" y="352" fill="#eef2fb" font-size="13" font-weight="600" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">云端识别服务</text>
|
|
38
|
+
<text x="370" y="370" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">API Key 只保存在本机配置文件;只有展开的服务才渲染表单。</text>
|
|
39
|
+
|
|
40
|
+
<rect x="370" y="384" width="540" height="364" rx="12" fill="#16181d" stroke="#282c34"/>
|
|
41
|
+
<rect x="370" y="384" width="540" height="54" rx="12" fill="#1d2027"/>
|
|
42
|
+
<rect x="370" y="426" width="540" height="12" fill="#1d2027"/>
|
|
43
|
+
<text x="386" y="410" fill="#eef2fb" font-size="14" font-weight="500" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">OpenAI 语音识别</text>
|
|
44
|
+
<text x="386" y="428" fill="#6f7688" font-size="11.5" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">自动检测 · 中文 · 英语</text>
|
|
45
|
+
<rect x="740" y="398" width="36" height="22" rx="11" fill="#1b2333" stroke="#2f4470"/>
|
|
46
|
+
<text x="758" y="414" fill="#8fb6ff" font-size="11" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">流式</text>
|
|
47
|
+
<rect x="782" y="398" width="64" height="22" rx="11" fill="#1b2a22" stroke="#2f5d40"/>
|
|
48
|
+
<text x="814" y="414" fill="#7fc48f" font-size="11" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">已配置</text>
|
|
49
|
+
<path d="M862 414l6-6 6 6" fill="none" stroke="#8f96a6" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
50
|
+
<line x1="370" y1="438" x2="910" y2="438" stroke="#282c34"/>
|
|
51
|
+
|
|
52
|
+
<text x="388" y="466" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">API Key</text>
|
|
53
|
+
<rect x="388" y="476" width="430" height="38" rx="10" fill="#1d2027" stroke="#2c313a"/>
|
|
54
|
+
<text x="404" y="500" fill="#c9d1e0" font-size="13" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">已保存 sk-…1234,留空则不修改</text>
|
|
55
|
+
<rect x="826" y="476" width="68" height="38" rx="10" fill="#23272f" stroke="#2c313a"/>
|
|
56
|
+
<text x="860" y="500" fill="#aab2c2" font-size="12" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">清除</text>
|
|
57
|
+
<text x="388" y="540" fill="#8f96a6" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">Base URL</text>
|
|
58
|
+
<rect x="388" y="550" width="506" height="38" rx="10" fill="#1d2027" stroke="#2c313a"/>
|
|
59
|
+
<text x="404" y="574" fill="#c9d1e0" font-size="13" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">https://api.openai.com/v1</text>
|
|
60
|
+
<text x="388" y="622" fill="#8fb6ff" font-size="12" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">接口文档</text>
|
|
61
|
+
<rect x="772" y="602" width="122" height="36" rx="9" fill="#2563c9"/>
|
|
62
|
+
<text x="833" y="625" fill="#ffffff" font-size="13" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">保存此服务</text>
|
|
63
|
+
|
|
64
|
+
<line x1="370" y1="638" x2="910" y2="638" stroke="#282c34"/>
|
|
65
|
+
<text x="386" y="668" fill="#e7ebf4" font-size="14" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">火山引擎 Volcengine</text>
|
|
66
|
+
<text x="386" y="686" fill="#6f7688" font-size="11.5" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">自动检测 · 中文 · 英语</text>
|
|
67
|
+
<rect x="740" y="656" width="36" height="22" rx="11" fill="#1b2333" stroke="#2f4470"/>
|
|
68
|
+
<text x="758" y="672" fill="#8fb6ff" font-size="11" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">流式</text>
|
|
69
|
+
<rect x="782" y="656" width="64" height="22" rx="11" fill="#1a1d23" stroke="#2c313a"/>
|
|
70
|
+
<text x="814" y="672" fill="#8f96a6" font-size="11" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">未配置</text>
|
|
71
|
+
<path d="M862 665l6 6 6-6" fill="none" stroke="#8f96a6" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
72
|
+
|
|
73
|
+
<line x1="370" y1="700" x2="910" y2="700" stroke="#282c34"/>
|
|
74
|
+
<text x="386" y="730" fill="#e7ebf4" font-size="14" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">阿里云百炼 DashScope</text>
|
|
75
|
+
<text x="386" y="748" fill="#6f7688" font-size="11.5" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">自动检测 · 中文 · 英语</text>
|
|
76
|
+
<rect x="740" y="716" width="36" height="22" rx="11" fill="#1b2333" stroke="#2f4470"/>
|
|
77
|
+
<text x="758" y="732" fill="#8fb6ff" font-size="11" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">流式</text>
|
|
78
|
+
<rect x="782" y="716" width="64" height="22" rx="11" fill="#1a1d23" stroke="#2c313a"/>
|
|
79
|
+
<text x="814" y="732" fill="#8f96a6" font-size="11" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">未配置</text>
|
|
80
|
+
<path d="M862 727l6 6 6-6" fill="none" stroke="#8f96a6" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
81
|
+
|
|
82
|
+
<rect x="370" y="766" width="540" height="52" rx="12" fill="#1a1d23" stroke="#262a32"/>
|
|
83
|
+
<text x="386" y="797" fill="#eef2fb" font-size="13" font-weight="600" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">说明</text>
|
|
84
|
+
<path d="M868 791l6 6 6-6" fill="none" stroke="#8f96a6" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
85
|
+
|
|
86
|
+
<text x="640" y="920" fill="#8f96a6" font-size="12" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">三个等宽分区常驻在 sticky 顶部;服务与模型采用内嵌列表 + 原位展开的表单。</text>
|
|
87
|
+
<text x="640" y="944" fill="#6f7688" font-size="12" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">移动端 16px 输入框避免 iOS 缩放,≥560px 容器查询再切双列;只用 --dsw-* 主题变量。</text>
|
|
88
|
+
<text x="640" y="968" fill="#6f7688" font-size="12" text-anchor="middle" font-family="-apple-system, Segoe UI, 'Noto Sans SC', sans-serif">44×26 开关、可见焦点环,并尊重 prefers-reduced-motion。</text>
|
|
69
89
|
</svg>
|
package/locale/en.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "Better voice input",
|
|
4
|
-
"description": "Extends the official experimental voice input plugin: 14 cloud speech-recognition providers plus 7 local sherpa-onnx models (21 in total), and a DeepSeek-App-style hold-to-talk composer — long-press the input box to record, slide up to cancel, release to insert the transcript (or send it). Requires the official voice input bundle for its speech-to-text registry.",
|
|
4
|
+
"description": "Extends the official experimental voice input plugin: 14 cloud speech-recognition providers plus 7 local sherpa-onnx models (21 in total, 7 of them with live realtime streaming), and a DeepSeek-App-style hold-to-talk composer — long-press the input box to record, slide up to cancel, release to insert the transcript (or send it). Requires the official voice input bundle for its speech-to-text registry.",
|
|
5
5
|
"detail": "docs/DETAIL.md"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "更好的语音输入",
|
|
4
|
-
"description": "在官方实验性语音输入插件之上扩展:14 家云端语音识别服务 + 7 个本地 sherpa-onnx 模型(共 21
|
|
4
|
+
"description": "在官方实验性语音输入插件之上扩展:14 家云端语音识别服务 + 7 个本地 sherpa-onnx 模型(共 21 个,其中 7 个支持实时流式转写),以及复刻 DeepSeek App 的长按说话输入框——长按输入框录音,上滑取消,松手把识别结果插入草稿(或直接发送)。依赖官方语音输入插件的语音识别注册表。",
|
|
5
5
|
"detail": "docs/DETAIL.zh.md"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ds-hu/dsh-better-voice-input",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Better voice input for the DeepSeek Harness Web GUI: 21 speech-recognition models
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Better voice input for the DeepSeek Harness Web GUI: 21 speech-recognition models (14 cloud APIs + 7 downloadable sherpa-onnx local models, 7 with live realtime streaming) on the official experimental speech-to-text seam, plus a DeepSeek-App-style hold-to-talk composer — long-press to talk, release to insert, slide up to cancel.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"dsh": ">=0.2.2-rc.5 <0.3.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@ds-hu/dsh-bvi-core": "0.
|
|
31
|
-
"@ds-hu/dsh-bvi-service": "0.
|
|
32
|
-
"@ds-hu/dsh-bvi-cloud": "0.
|
|
33
|
-
"@ds-hu/dsh-bvi-local": "0.
|
|
34
|
-
"@ds-hu/dsh-bvi-input": "0.
|
|
30
|
+
"@ds-hu/dsh-bvi-core": "0.3.0",
|
|
31
|
+
"@ds-hu/dsh-bvi-service": "0.3.0",
|
|
32
|
+
"@ds-hu/dsh-bvi-cloud": "0.3.0",
|
|
33
|
+
"@ds-hu/dsh-bvi-local": "0.3.0",
|
|
34
|
+
"@ds-hu/dsh-bvi-input": "0.3.0"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|