@deepseek-ai/dsh-experimental-client-ui-voice-input 0.1.7-alpha.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DeepSeek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,6 @@
1
+ # Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
2
+ # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
+ # after editing either side, bring the other along and re-record with:
4
+ # pnpm run verify-translation-pairing --write packages/experimental/client-ui-voice-input/README.md
5
+ README.md: 4d859f4d9837c249c564abfbba0682f1493502d9
6
+ README.zh.md: 84a02e4f620feb35706de5b3bc10ec291f32c423
package/README.md ADDED
@@ -0,0 +1,76 @@
1
+ ---
2
+ description: "Record speech and insert reviewable transcripts into the conversation draft."
3
+ kind: "package-reference"
4
+ ---
5
+
6
+ # @deepseek-ai/dsh-experimental-client-ui-voice-input
7
+
8
+ English | [中文](README.zh.md)
9
+
10
+ ## Summary
11
+
12
+ This optional browser plugin adds an outline microphone icon between the model selector and Send. Clicking it opens a recording toolbar with measured audio levels, Cancel and Stop. The waveform stays shorter than the recording buttons. Stopping transcribes into the draft. Recognition preferences and model preparation live in plugin settings; language choices come from the selected provider.
13
+
14
+ ## Table of Contents
15
+
16
+ - [Use this package](#use-this-package)
17
+ - [Understand the implementation](#understand-the-implementation)
18
+ - [Further Exploration](#further-exploration)
19
+ - [Model Experience](#model-experience)
20
+ - [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
21
+ - [Dev Note](#dev-note)
22
+
23
+ -----
24
+
25
+ <a id="use-this-package"></a>
26
+ ## Use this package
27
+
28
+ Enable the [voice input bundle](../voice-input-bundle/README.md) from Plugins. After cache inspection, missing models trigger a setup prompt with Go to setup and Later actions. Go to setup opens bundle details; Download and prepare starts installation there. Intact cached models need no prompt or repeated installation. Before preparation, local providers can show their estimated disk, memory and setup-time requirements. The preparation summary starts collapsed; expand it to inspect completed, current and pending steps. Once ready, click the microphone, allow access and click Stop to transcribe. Cancel or Escape discards capture. Recognition feedback stays inside the toolbar. Provider and language preferences are saved from bundle details through the Settings service. Browser microphone access requires HTTPS or loopback and operating-system permission.
29
+
30
+ -----
31
+
32
+ <a id="understand-the-implementation"></a>
33
+ ## Understand the implementation
34
+
35
+ <details>
36
+ <summary>Maintainer details — click to expand</summary>
37
+
38
+ Native MediaRecorder captures audio and Web Audio converts it to the Host PCM format after flushing the final recorder chunks. Window blur during the microphone permission request does not cancel capture; blur during recording does. Capture failures immediately end the recording UI and offer retry inside the toolbar. Cancellation, failure and plugin disposal share one resource-release promise; the plugin retains ownership until AudioContext closure settles. The original editor selection carries a draft revision: changed drafts retain the transcript for explicit insertion or discard beside the microphone. Session changes, hiding the page during capture and plugin disposal invalidate late results and release tracks. One plugin-owned readiness subscription serves the composer, installation prompt and details. These views use the existing Slot lifecycle and own no preparation tasks. No runtime invariant companion is published because readiness comes from one Host subscription and recording state belongs to one capture operation.
39
+
40
+ </details>
41
+
42
+ -----
43
+
44
+ <a id="further-exploration"></a>
45
+ ## Further Exploration
46
+
47
+ [Voice input subsystem](../../../docs/subsystems/voice-input.md)
48
+
49
+ -----
50
+
51
+ <a id="model-experience"></a>
52
+ ## Model Experience
53
+
54
+ None, as recordings and preparation remain outside model requests; ordinary user submission owns any later text.
55
+
56
+ #### KV Cache effect
57
+
58
+ No direct effect; ordinary submission owns the message content.
59
+
60
+ ## Known Limitations and Deferred Work
61
+
62
+ <a id="known-limitations-and-deferred-work"></a>
63
+
64
+ - No automatic send, always-on microphone, wake word, streaming captions or speech synthesis. “Local” means the Host machine, which can differ from the browser’s machine.
65
+
66
+ -----
67
+
68
+ <a id="dev-note"></a>
69
+ ### Dev Note
70
+
71
+ <details>
72
+ <summary>Maintainer details — click to expand</summary>
73
+
74
+ None.
75
+
76
+ </details>
package/README.zh.md ADDED
@@ -0,0 +1,76 @@
1
+ ---
2
+ description: "录制语音并将可确认的转写文字插入会话草稿。"
3
+ kind: "package-reference"
4
+ ---
5
+
6
+ # @deepseek-ai/dsh-experimental-client-ui-voice-input
7
+
8
+ [English](README.md) | 中文
9
+
10
+ ## 概述
11
+
12
+ 此可选浏览器插件在模型选择器与发送按钮之间添加空心麦克风图标。点击后展开录音栏,显示实际音量以及取消、停止按钮。声波高度低于录音按钮高度。停止后转写到草稿。识别偏好和模型准备放在插件设置中;语言选项来自所选 Provider。
13
+
14
+ ## 目录
15
+
16
+ - [使用此包](#use-this-package)
17
+ - [理解实现](#understand-the-implementation)
18
+ - [进一步探索](#further-exploration)
19
+ - [模型体验](#model-experience)
20
+ - [已知限制与后续工作](#known-limitations-and-deferred-work)
21
+ - [开发备注](#dev-note)
22
+
23
+ -----
24
+
25
+ <a id="use-this-package"></a>
26
+ ## 使用此包
27
+
28
+ 在插件管理页启用[语音输入 Bundle](../voice-input-bundle/README.zh.md)。缓存检查后,缺少模型时弹出安装引导,可选择“前往安装”或“稍后”。“前往安装”打开 Bundle 详情,再点击“下载并准备”才开始安装。缓存完整时不弹引导,也无需重复安装。准备前,本地 Provider 可展示磁盘、内存与安装时间的估算。准备摘要默认折叠;展开后可查看已完成、当前和未开始的步骤。就绪后点击麦克风,允许访问,再点击停止以转写。取消或 Escape 丢弃录音。识别反馈留在工具栏内部。Provider 和语言偏好在 Bundle 详情中通过 Settings 服务保存。浏览器麦克风访问需要 HTTPS 或环回地址,以及操作系统权限。
29
+
30
+ -----
31
+
32
+ <a id="understand-the-implementation"></a>
33
+ ## 理解实现
34
+
35
+ <details>
36
+ <summary>维护者信息 — 点击展开</summary>
37
+
38
+ 原生 MediaRecorder 捕获音频,等待最后一块数据后由 Web Audio 转换为 Host 的 PCM 格式。等待麦克风授权时窗口失焦不会取消采集;录音期间失焦会取消。采集失败立即结束录音界面,并在活动栏内提供重试。取消、失败和插件释放共享同一个资源释放 Promise;插件保留所有权,直到 AudioContext 关闭任务结束。原编辑器选区携带草稿版本:草稿变化时,转写文字保留在麦克风旁,供显式插入或丢弃。切换 Session、录音期间隐藏页面和释放插件会使迟到结果失效并释放轨道。插件拥有的一份准备状态订阅服务于输入框、安装引导和详情。这些视图使用既有 Slot 生命周期,不拥有准备任务。不发布运行时不变量伴随模块,因为准备状态来自一份 Host 订阅,录音状态属于一个捕获操作。
39
+
40
+ </details>
41
+
42
+ -----
43
+
44
+ <a id="further-exploration"></a>
45
+ ## 进一步探索
46
+
47
+ [语音输入子系统](../../../docs/subsystems/voice-input.zh.md)
48
+
49
+ -----
50
+
51
+ <a id="model-experience"></a>
52
+ ## 模型体验
53
+
54
+ 无,因为录音与准备不进入模型请求;之后的文字由普通用户提交拥有。
55
+
56
+ #### KV 缓存影响
57
+
58
+ 没有直接影响;普通提交拥有消息内容。
59
+
60
+ ## 已知限制与后续工作
61
+
62
+ <a id="known-limitations-and-deferred-work"></a>
63
+
64
+ - 不提供自动发送、常开麦克风、唤醒词、流式字幕或语音合成。“本地”指 Host 所在机器,可能与浏览器所在机器不同。
65
+
66
+ -----
67
+
68
+ <a id="dev-note"></a>
69
+ ### 开发备注
70
+
71
+ <details>
72
+ <summary>维护者信息 — 点击展开</summary>
73
+
74
+ 无。
75
+
76
+ </details>