dsh-xiaomi-tts 2.3.2 → 2.3.3
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 +84 -6
- package/README.md +19 -10
- package/assets/menu.png +0 -0
- package/assets/preset.png +0 -0
- package/assets/social.png +0 -0
- package/assets/voice-avatars/baihua.webp +0 -0
- package/assets/voice-avatars/bingtang.webp +0 -0
- package/assets/voice-avatars/chloe.webp +0 -0
- package/assets/voice-avatars/dean.webp +0 -0
- package/assets/voice-avatars/mia.webp +0 -0
- package/assets/voice-avatars/milo.webp +0 -0
- package/assets/voice-avatars/moli.webp +0 -0
- package/assets/voice-avatars/suda.webp +0 -0
- package/assets/voice-presets/energetic-girl.webp +0 -0
- package/assets/voice-presets/liang-wenfeng.webp +0 -0
- package/cordis.patch.yml +4 -1
- package/lib/client/built-in-voice-picker.d.ts +10 -0
- package/lib/client/built-in-voice-picker.d.ts.map +1 -0
- package/lib/client/conversation.d.ts.map +1 -1
- package/lib/client/live-speech-controller.d.ts +6 -0
- package/lib/client/live-speech-controller.d.ts.map +1 -1
- package/lib/client/localization.d.ts +10 -4
- package/lib/client/localization.d.ts.map +1 -1
- package/lib/client/pcm-audio-queue.d.ts +7 -0
- package/lib/client/pcm-audio-queue.d.ts.map +1 -1
- package/lib/client/settings-card.d.ts.map +1 -1
- package/lib/client/settings-scope.d.ts.map +1 -1
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.d.ts.map +1 -1
- package/lib/client/voice-design-picker.d.ts.map +1 -1
- package/lib/client.js +559 -224
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +8 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +121 -33
- package/lib/{shared-9qFFYsWe.js → shared-Cf9qZwUl.js} +104 -32
- package/lib/shared.d.ts +82 -26
- package/lib/shared.d.ts.map +1 -1
- package/lib/shared.js +2 -2
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
1
3
|
# dsh-xiaomi-tts
|
|
2
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/dsh-xiaomi-tts)
|
|
6
|
+
[](https://github.com/ppy-web/dsh-plugin-xiaomi-mimo-tts)
|
|
7
|
+
|
|
3
8
|
<p><a href="README.md"><strong>中文说明 →</strong></a></p>
|
|
4
9
|
|
|
5
10
|
Add Xiaomi MiMo TTS read-aloud playback to assistant replies in DeepSeek Harness Web.
|
|
@@ -17,9 +22,10 @@ Add Xiaomi MiMo TTS read-aloud playback to assistant replies in DeepSeek Harness
|
|
|
17
22
|
## Features
|
|
18
23
|
|
|
19
24
|
- Shows a read-aloud button below each completed assistant reply body when needed; enabled by default.
|
|
20
|
-
- Uses Xiaomi MiMo's currently limited-time-free TTS models: `mimo-v2.5-tts` outputs smooth, clear audio
|
|
25
|
+
- Uses Xiaomi MiMo's currently limited-time-free TTS models: `mimo-v2.5-tts` outputs smooth, clear audio with selectable PCM streaming or complete MP3/WAV playback.
|
|
21
26
|
- Uses `mimo-v2.5-tts-voicedesign` Voice Design to create the voice you want from a text description.
|
|
22
|
-
- Lets you switch between the preset-voice model and the custom voice-design model under **Settings → Plugins → Plugin configuration**, and configure the API key, autoplay, voice,
|
|
27
|
+
- Lets you switch between the preset-voice model and the custom voice-design model under **Settings → Plugins → Plugin configuration**, and configure the API key, autoplay, voice, audio format, and voice description.
|
|
28
|
+
- Presents built-in voices in a two-column selector using Xiaomi MiMo's official avatars, names, and summaries.
|
|
23
29
|
- Keeps the API key on the DSH Host. The browser sends only the reply body text to a same-origin Host route.
|
|
24
30
|
- Supports pause, resume, regeneration, and autoplay-blocked prompts. Automatic playback only triggers for the latest reply newly completed in the current run; opening messages from history does not play them.
|
|
25
31
|
- Aggressively cleans speech text before sending it to TTS: URLs, file paths, code blocks, emoji, icons, and control characters are removed, and common Chinese punctuation is converted to ASCII punctuation.
|
|
@@ -57,7 +63,7 @@ After installation, restart `dsh web`, then open **Settings → Plugins → Plug
|
|
|
57
63
|
When updating or switching from the local development link to the npm package, stop DSH Web before changing the profile dependencies. This prevents a running Node process from holding the Windows Junction that pnpm needs to replace:
|
|
58
64
|
|
|
59
65
|
```powershell
|
|
60
|
-
.\start\dsh-plugin-reinstall.bat 2.3.
|
|
66
|
+
.\start\dsh-plugin-reinstall.bat 2.3.3
|
|
61
67
|
```
|
|
62
68
|
|
|
63
69
|
The script stops DSH Web, removes the current plugin from the profile, installs the requested npm version, and starts DSH Web again. If you run the steps manually, keep the same order:
|
|
@@ -65,7 +71,7 @@ The script stops DSH Web, removes the current plugin from the profile, installs
|
|
|
65
71
|
```powershell
|
|
66
72
|
.\start\dsh-web-stop.bat
|
|
67
73
|
dsh plugin --profile web remove dsh-xiaomi-tts
|
|
68
|
-
dsh plugin --profile web add dsh-xiaomi-tts@2.3.
|
|
74
|
+
dsh plugin --profile web add dsh-xiaomi-tts@2.3.3
|
|
69
75
|
.\start\dsh-web-start.bat
|
|
70
76
|
```
|
|
71
77
|
|
|
@@ -78,6 +84,8 @@ Available built-in voices for `mimo-v2.5-tts`:
|
|
|
78
84
|
- English female: `Mia`, `Chloe`
|
|
79
85
|
- English male: `Milo`, `Dean`
|
|
80
86
|
|
|
87
|
+
Preset voices default to **PCM (streaming)**. A complete reply starts playing as soon as audio chunks arrive, reducing the wait, but pause and resume are unavailable; a failure before the first chunk falls back to MP3. **MP3 (complete audio)** and **WAV (complete audio)** wait for the whole file and support pause and resume. MP3 is smaller, while WAV preserves lossless audio at a larger size.
|
|
88
|
+
|
|
81
89
|
Custom voice design with `mimo-v2.5-tts-voicedesign`
|
|
82
90
|
|
|
83
91
|
The plugin provides common voice-description templates. The selector defaults to **Custom**, so users can edit and save the description directly. After switching to another template and back to **Custom**, the previously saved custom content is restored.
|
|
@@ -92,18 +100,88 @@ Browsers may block autoplay. If that happens, click the read-aloud button first.
|
|
|
92
100
|
|
|
93
101
|
### Speech text preprocessing
|
|
94
102
|
|
|
95
|
-
Read-aloud uses only the cleaned reply body and does not modify the assistant message shown in the chat. Markdown links keep their readable labels while their targets are removed; URLs, file paths, complete code blocks, emoji, icons, zero-width characters, and control characters are not sent to Xiaomi MiMo. Parentheses, brackets, book-title marks, quotation marks, and other non-boundary punctuation are removed; retained sentence-boundary punctuation is converted to ASCII.
|
|
103
|
+
Read-aloud uses only the cleaned reply body and does not modify the assistant message shown in the chat. Markdown links keep their readable labels while their targets are removed; URLs, file paths, complete code blocks, emoji, icons, zero-width characters, and control characters are not sent to Xiaomi MiMo. Parentheses, brackets, book-title marks, quotation marks, and other non-boundary punctuation are removed; retained sentence-boundary punctuation is converted to ASCII. Only preset voices configured for PCM stream partial replies after accumulating at least 20 speakable characters. Completed replies are sent in one PCM/SSE request and play as chunks arrive. MP3 and WAV always request complete audio.
|
|
104
|
+
|
|
105
|
+
Complete-audio responses are limited to 32 MiB for MP3 and 128 MiB for WAV by default. Advanced Cordis configuration can override these limits with `maxMp3AudioBytes` and `maxWavAudioBytes`. The Host enforces the response limit before JSON parsing and Base64 decoding.
|
|
96
106
|
|
|
97
107
|
## Privacy
|
|
98
108
|
|
|
99
109
|
- The API key stays on the DSH Host and is never sent to the browser.
|
|
100
110
|
- Reply text is sent to Xiaomi MiMo when speech is generated.
|
|
101
|
-
- Audio is played through a temporary Blob URL
|
|
111
|
+
- Audio stays in browser memory and is played through Web Audio or a temporary Blob URL; it is not persisted to disk.
|
|
102
112
|
|
|
103
113
|
## Feedback and support
|
|
104
114
|
|
|
105
115
|
Please use [GitHub Issues](https://github.com/ppy-web/dsh-plugin-xiaomi-mimo-tts/issues) for bug reports, feature requests, or feedback.
|
|
106
116
|
|
|
117
|
+
## Architecture
|
|
118
|
+
|
|
119
|
+
- `src/index.ts`: Host entry; registers Schemastery settings, both voice-asset groups, and complete-audio plus PCM/SSE synthesis routes.
|
|
120
|
+
- `src/shared.ts`: Shared Host/Client domain contracts, including settings types, defaults, text cleaning, sentence splitting, stream batching, and SSE parsing.
|
|
121
|
+
- `src/client/index.tsx`: Web Client composition entry; binds DSH services, registers slots, injects styles, and owns controller lifecycles.
|
|
122
|
+
- `src/client/conversation.tsx`: React conversation adapter; observes DSH conversation snapshots and renders read-aloud actions.
|
|
123
|
+
- `src/client/settings-card.tsx`, `built-in-voice-picker.tsx`, and `voice-design-picker.tsx`: Plugin settings form, official built-in voice panel, and Voice Design voice selector UI.
|
|
124
|
+
- `src/client/live-speech-controller.ts`, `pcm-audio-queue.ts`, and `playback-controller.ts`: Realtime speech state machine, Web Audio PCM scheduling, and complete-audio playback.
|
|
125
|
+
- `src/client/settings-scope.ts`: Connects the DSH Settings Scope to React safely with `useSyncExternalStore`.
|
|
126
|
+
|
|
127
|
+
```mermaid
|
|
128
|
+
flowchart TD
|
|
129
|
+
DSH["DeepSeek Harness"]
|
|
130
|
+
|
|
131
|
+
subgraph Host["Host plugin"]
|
|
132
|
+
HI["src/index.ts<br/>Settings and routes"]
|
|
133
|
+
SETTINGS["DSH Settings"]
|
|
134
|
+
ROUTES["Complete audio / PCM SSE routes"]
|
|
135
|
+
ASSETS["Voice assets"]
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
subgraph Shared["Shared domain layer"]
|
|
139
|
+
SH["src/shared.ts<br/>Settings, text processing, sentence splitting, and SSE"]
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
subgraph Client["Web Client"]
|
|
143
|
+
ENTRY["client/index.tsx<br/>Composition entry"]
|
|
144
|
+
LOCALE["localization.ts"]
|
|
145
|
+
STYLE["styles.ts"]
|
|
146
|
+
SCOPE["settings-scope.ts<br/>useSyncExternalStore"]
|
|
147
|
+
FORM["settings-card.tsx"]
|
|
148
|
+
BUILTIN["built-in-voice-picker.tsx"]
|
|
149
|
+
PICKER["voice-design-picker.tsx"]
|
|
150
|
+
CONV["conversation.tsx<br/>Conversation observer and read-aloud button"]
|
|
151
|
+
|
|
152
|
+
subgraph Audio["Audio runtime"]
|
|
153
|
+
LIVE["live-speech-controller.ts<br/>Realtime speech state machine"]
|
|
154
|
+
PCM["pcm-audio-queue.ts<br/>Web Audio PCM scheduling"]
|
|
155
|
+
COMPLETE["playback-controller.ts<br/>Complete-audio playback"]
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
API["Xiaomi MiMo API"]
|
|
160
|
+
|
|
161
|
+
DSH --> HI
|
|
162
|
+
DSH --> ENTRY
|
|
163
|
+
SH --> HI
|
|
164
|
+
SH --> SCOPE
|
|
165
|
+
SH --> CONV
|
|
166
|
+
SH --> LIVE
|
|
167
|
+
HI --> SETTINGS
|
|
168
|
+
HI --> ROUTES
|
|
169
|
+
HI --> ASSETS
|
|
170
|
+
ROUTES --> API
|
|
171
|
+
ENTRY --> LOCALE
|
|
172
|
+
ENTRY --> STYLE
|
|
173
|
+
ENTRY --> SCOPE
|
|
174
|
+
ENTRY --> FORM
|
|
175
|
+
ENTRY --> CONV
|
|
176
|
+
FORM --> BUILTIN
|
|
177
|
+
FORM --> PICKER
|
|
178
|
+
CONV --> LIVE
|
|
179
|
+
CONV --> COMPLETE
|
|
180
|
+
LIVE --> PCM
|
|
181
|
+
LIVE --> ROUTES
|
|
182
|
+
COMPLETE --> ROUTES
|
|
183
|
+
```
|
|
184
|
+
|
|
107
185
|
## Development
|
|
108
186
|
|
|
109
187
|
```bash
|
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
1
3
|
# dsh-xiaomi-tts
|
|
2
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/dsh-xiaomi-tts)
|
|
6
|
+
[](https://github.com/ppy-web/dsh-plugin-xiaomi-mimo-tts)
|
|
7
|
+
|
|
3
8
|
为 DeepSeek Harness Web 的助手回复添加 Xiaomi MiMo TTS 语音朗读。
|
|
4
9
|
|
|
5
10
|
> 基于 Xiaomi MiMo TTS 大模型,将助手回复转为流畅、清晰的自然语音。MiMo TTS 当前为限时免费服务,具体政策以 Xiaomi MiMo 平台为准。
|
|
@@ -17,10 +22,10 @@
|
|
|
17
22
|
## 功能
|
|
18
23
|
|
|
19
24
|
- 在对话操作栏中显示“朗读”按钮(默认开启)。
|
|
20
|
-
- 使用 `mimo-v2.5-tts`
|
|
25
|
+
- 使用 `mimo-v2.5-tts` 输出流畅、清晰的音频;可选择 PCM 流式播放或 MP3/WAV 完整音频。
|
|
21
26
|
- 使用 `mimo-v2.5-tts-voicedesign` 通过文字描述创造你想要的声音。
|
|
22
|
-
- 支持切换预置音色/自定义音色模型,配置 API Key
|
|
23
|
-
-
|
|
27
|
+
- 支持切换预置音色/自定义音色模型,配置 API Key、自动播报、音色、音频格式和音色描述。
|
|
28
|
+
- 丰富的自定义音色模板,自由切换和修改。
|
|
24
29
|
- 自动清洗需要朗读的文本:移除网址、文件路径、代码块、表情符号、图标和控制字符等。
|
|
25
30
|
|
|
26
31
|
## 环境要求
|
|
@@ -56,7 +61,7 @@ dsh plugin --profile web add github:ppy-web/dsh-plugin-xiaomi-mimo-tts
|
|
|
56
61
|
更新或从本地开发版切换到 npm 版时,必须先停止 DSH Web,避免 Windows Junction 被运行中的 Node 进程占用:
|
|
57
62
|
|
|
58
63
|
```powershell
|
|
59
|
-
.\start\dsh-plugin-reinstall.bat 2.3.
|
|
64
|
+
.\start\dsh-plugin-reinstall.bat 2.3.3
|
|
60
65
|
```
|
|
61
66
|
|
|
62
67
|
这个脚本会按顺序停止 DSH Web、卸载当前 profile 中的插件、从 npm 安装指定版本并重新启动 DSH Web。若手动操作,请保持相同顺序:
|
|
@@ -64,7 +69,7 @@ dsh plugin --profile web add github:ppy-web/dsh-plugin-xiaomi-mimo-tts
|
|
|
64
69
|
```powershell
|
|
65
70
|
.\start\dsh-web-stop.bat
|
|
66
71
|
dsh plugin --profile web remove dsh-xiaomi-tts
|
|
67
|
-
dsh plugin --profile web add dsh-xiaomi-tts@2.3.
|
|
72
|
+
dsh plugin --profile web add dsh-xiaomi-tts@2.3.3
|
|
68
73
|
.\start\dsh-web-start.bat
|
|
69
74
|
```
|
|
70
75
|
|
|
@@ -77,6 +82,8 @@ dsh plugin --profile web add dsh-xiaomi-tts@2.3.2
|
|
|
77
82
|
- 英文女声:`Mia`、`Chloe`
|
|
78
83
|
- 英文男声:`Milo`、`Dean`
|
|
79
84
|
|
|
85
|
+
预置模型默认选择 `PCM(流式播放)`:完整回复会在音频分片到达时立即开始播放,等待更短,但暂不支持暂停和续播;首个分片前失败时会回退 MP3。选择 `MP3(完整音频)` 或 `WAV(完整音频)` 时,会等待完整文件生成后播放,并支持暂停和继续;MP3 体积更小,WAV 保留无损音频但体积更大。
|
|
86
|
+
|
|
80
87
|
**自定义音色(`mimo-v2.5-tts-voicedesign`)**
|
|
81
88
|
|
|
82
89
|
为你提供了常用音色描述模板;下拉框默认选择“自定义”,用户可以直接修改并保存描述。切换到其他模板后再切回“自定义”时,会恢复之前保存的自定义内容。
|
|
@@ -89,15 +96,17 @@ dsh plugin --profile web add dsh-xiaomi-tts@2.3.2
|
|
|
89
96
|
|
|
90
97
|
浏览器可能阻止自动播放;遇到这种情况,请先尝试点击朗读按钮。
|
|
91
98
|
|
|
92
|
-
|
|
99
|
+
## 朗读文本处理
|
|
100
|
+
|
|
101
|
+
朗读只使用清理后的正文,不会修改聊天记录中显示的助手回复。Markdown 链接会保留可读标题并删除链接地址;网址、文件路径、完整代码块、表情符号、图标、零宽字符和控制字符不会发送给 Xiaomi MiMo。括号、方括号、书名号、引号等非断句符号会删除;保留的断句标点会转换为 ASCII 英文标点。仅当预置模型选择 PCM 时,回复生成期间的流式朗读才会累计至少 20 个可朗读字符再发起请求;对已经完成的回复,插件会把完整文本作为一次 PCM/SSE 请求发送并立即播放返回的音频分片。选择 MP3 或 WAV 时始终请求完整音频。
|
|
93
102
|
|
|
94
|
-
|
|
103
|
+
完整音频响应默认限制为 MP3 32 MiB、WAV 128 MiB,可在 Cordis 配置中通过 `maxMp3AudioBytes` 和 `maxWavAudioBytes` 调整。Host 会在解析 JSON 和 Base64 解码前执行大小检查。
|
|
95
104
|
|
|
96
105
|
## 隐私
|
|
97
106
|
|
|
98
107
|
- API Key 仅保存在 DSH Host,不会发送给浏览器。
|
|
99
108
|
- 生成语音时,回复正文会发送给 Xiaomi MiMo 服务。
|
|
100
|
-
-
|
|
109
|
+
- 音频只在浏览器内存中通过 Web Audio 或临时 Blob URL 播放,不会持久化到磁盘。
|
|
101
110
|
|
|
102
111
|
## 反馈与支持
|
|
103
112
|
|
|
@@ -105,11 +114,11 @@ dsh plugin --profile web add dsh-xiaomi-tts@2.3.2
|
|
|
105
114
|
|
|
106
115
|
## 架构
|
|
107
116
|
|
|
108
|
-
- `src/index.ts`:Host 入口,注册 Schemastery
|
|
117
|
+
- `src/index.ts`:Host 入口,注册 Schemastery 设置、两类音色静态资源,以及完整音频和 PCM/SSE 流式合成路由。
|
|
109
118
|
- `src/shared.ts`:Host 与 Client 共用的领域契约,包括配置类型、默认值、文本清洗、分句、流式批处理和 SSE 解析。
|
|
110
119
|
- `src/client/index.tsx`:Web Client 组合入口,只负责绑定 DSH 服务、注册 Slot、注入样式和托管控制器生命周期。
|
|
111
120
|
- `src/client/conversation.tsx`:React 会话适配层,订阅 DSH 会话快照并渲染朗读操作。
|
|
112
|
-
- `src/client/settings-card.tsx` 与 `voice-design-picker.tsx
|
|
121
|
+
- `src/client/settings-card.tsx`、`built-in-voice-picker.tsx` 与 `voice-design-picker.tsx`:插件设置表单、官方内置音色面板和 Voice Design 音色选择 UI。
|
|
113
122
|
- `src/client/live-speech-controller.ts`、`pcm-audio-queue.ts` 与 `playback-controller.ts`:分别管理实时朗读状态机、Web Audio PCM 调度和完整音频播放。
|
|
114
123
|
- `src/client/settings-scope.ts`:使用 `useSyncExternalStore` 将 DSH Settings Scope 安全接入 React。
|
|
115
124
|
|
package/assets/menu.png
CHANGED
|
Binary file
|
package/assets/preset.png
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/cordis.patch.yml
CHANGED
|
@@ -12,8 +12,11 @@
|
|
|
12
12
|
voiceDesignPrompt: '青年女性,声线清亮、亲切自然,吐字清楚,语速适中,情绪温柔克制。'
|
|
13
13
|
voiceDesignCustomPrompt: '青年女性,声线清亮、亲切自然,吐字清楚,语速适中,情绪温柔克制。'
|
|
14
14
|
presetStylePrompt: '使用清晰、自然、准确的声音朗读,语速适中,停顿自然,语气平和克制,避免夸张表达。'
|
|
15
|
-
format: '
|
|
15
|
+
format: 'pcm'
|
|
16
16
|
autoPlay: true
|
|
17
17
|
instruction: '请忠实朗读原文,根据文本语气自然表达,不添加或改写内容。'
|
|
18
18
|
maxTextLength: 12000
|
|
19
19
|
requestTimeoutMs: 120000
|
|
20
|
+
maxMp3AudioBytes: 33554432
|
|
21
|
+
maxWavAudioBytes: 134217728
|
|
22
|
+
maxPausedPcmBytes: 33554432
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
interface BuiltInVoicePickerProps {
|
|
3
|
+
value: string;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
label: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function BuiltInVoicePicker({ value, disabled, label, onChange }: BuiltInVoicePickerProps): ReactElement;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=built-in-voice-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"built-in-voice-picker.d.ts","sourceRoot":"","sources":["../../src/client/built-in-voice-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAuC,YAAY,EAAE,MAAM,OAAO,CAAA;AA0B9E,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,uBAAuB,GAAG,YAAY,CAyG9G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/client/conversation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AASzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAEjG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AA8DxE,UAAU,4BAA4B;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,oBAAoB,CAAA;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,oBAAoB,CAAA;IAC1B,QAAQ,EAAE,aAAa,CAAC,WAAW,CAAC,CAAA;CACrC;AAED,kGAAkG;AAClG,wBAAgB,uBAAuB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,4BAA4B,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/client/conversation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AASzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAEjG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AA8DxE,UAAU,4BAA4B;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,oBAAoB,CAAA;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,oBAAoB,CAAA;IAC1B,QAAQ,EAAE,aAAa,CAAC,WAAW,CAAC,CAAA;CACrC;AAED,kGAAkG;AAClG,wBAAgB,uBAAuB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,4BAA4B,GAAG,IAAI,CA6D5H;AAED,UAAU,oBAAoB;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,CAAC,KAAK,CAAC,CAAA;IACrE,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,oBAAoB,CAAA;IAC1B,QAAQ,EAAE,aAAa,CAAC,WAAW,CAAC,CAAA;IACpC,CAAC,EAAE,SAAS,CAAA;CACb;AAED,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,oBAAoB,GAAG,YAAY,GAAG,IAAI,CA0F5I"}
|
|
@@ -14,11 +14,17 @@ export declare class LiveSpeechController {
|
|
|
14
14
|
private requestBusy;
|
|
15
15
|
private audioBusy;
|
|
16
16
|
private blockedTurn;
|
|
17
|
+
private completed;
|
|
17
18
|
private onStateChange;
|
|
18
19
|
setStateChangeListener(listener: (sessionId: string, messageId: string, status: PlaybackStatus) => void): void;
|
|
20
|
+
setMaxPausedPcmBytes(value: number): void;
|
|
21
|
+
pause(sessionId: string): Promise<boolean>;
|
|
22
|
+
resume(sessionId: string): Promise<boolean>;
|
|
19
23
|
activateSession(sessionId: string): void;
|
|
20
24
|
deactivateSession(sessionId: string): void;
|
|
21
25
|
observe(sessionId: string, turn: number, step: number, text: string): void;
|
|
26
|
+
/** Stream one already-completed preset-model reply as PCM, falling back only before playback starts. */
|
|
27
|
+
playCompleted(sessionId: string, messageId: string, text: string, fallback: () => void): void;
|
|
22
28
|
finish(sessionId: string, final: LiveMessageIdentity): void;
|
|
23
29
|
stop(sessionId: string): boolean;
|
|
24
30
|
hasHandled(sessionId: string, identity: Pick<LiveMessageIdentity, 'turn' | 'step'> | null): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-speech-controller.d.ts","sourceRoot":"","sources":["../../src/client/live-speech-controller.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"live-speech-controller.d.ts","sourceRoot":"","sources":["../../src/client/live-speech-controller.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAqB9E,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAMpB;IACF,OAAO,CAAC,gBAAgB,CAAI;IAC5B,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,MAAM,CAAgC;IAC9C,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,QAAQ,CAAI;IACpB,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,OAAO,CAAoB;IACnC,OAAO,CAAC,SAAS,CAAsB;IACvC,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,SAAS,CAAsB;IACvC,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,WAAW,CAAsB;IACzC,OAAO,CAAC,SAAS,CAAuC;IACxD,OAAO,CAAC,aAAa,CAAwF;IAE7G,sBAAsB,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,KAAK,IAAI,GAAG,IAAI;IAI9G,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAEnC,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAO1C,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAcjD,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAMxC,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAM1C,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAa1E,wGAAwG;IACxG,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAS7F,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,GAAG,IAAI;IAkB3D,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAOhC,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,GAAG,OAAO;IAKnG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAItC,MAAM,IAAI,IAAI;IAKR,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAM9B,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,KAAK;IASb,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,WAAW;IAkBnB,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,eAAe;YAIT,MAAM;IAgDpB,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,YAAY;CAGrB"}
|
|
@@ -11,9 +11,9 @@ export declare const zh: {
|
|
|
11
11
|
readonly 'error.request': "语音生成失败。";
|
|
12
12
|
readonly 'error.play': "浏览器阻止了自动播放,请点击朗读按钮。";
|
|
13
13
|
readonly 'settings.title': "语音朗读 (Xiaomi MiMo)";
|
|
14
|
-
readonly 'settings.description': "
|
|
14
|
+
readonly 'settings.description': "在对话中使用 Xiaomi MiMo TTS 生成并播放语音。";
|
|
15
15
|
readonly 'settings.enabled': "显示朗读按钮";
|
|
16
|
-
readonly 'settings.enabledHint': "
|
|
16
|
+
readonly 'settings.enabledHint': "关闭后不会显示朗读按钮,也不会自动播报。";
|
|
17
17
|
readonly 'settings.apiKey': "API Key";
|
|
18
18
|
readonly 'settings.apiKeyStatus': "只有输入新值并保存时才会替换现有密钥。";
|
|
19
19
|
readonly 'settings.apiKeyConfigured': "已配置";
|
|
@@ -25,14 +25,20 @@ export declare const zh: {
|
|
|
25
25
|
readonly 'settings.model': "TTS 模型";
|
|
26
26
|
readonly 'settings.presetModel': "预置音色模型 (mimo-v2.5-tts)";
|
|
27
27
|
readonly 'settings.voiceDesignModel': "自定义音色模型 (mimo-v2.5-tts-voicedesign)";
|
|
28
|
-
readonly 'settings.modelAutoPlayHintPreset': "
|
|
28
|
+
readonly 'settings.modelAutoPlayHintPreset': "预置音色的播放方式由音频格式决定。";
|
|
29
29
|
readonly 'settings.modelAutoPlayHintVoiceDesign': "自定义音色仅支持在回复完成后自动播放。";
|
|
30
30
|
readonly 'settings.voice': "内置音色";
|
|
31
|
+
readonly 'settings.format': "音频格式";
|
|
32
|
+
readonly 'settings.formatPcm': "PCM(流式播放)";
|
|
33
|
+
readonly 'settings.formatMp3': "MP3(完整音频)";
|
|
34
|
+
readonly 'settings.formatWav': "WAV(完整音频)";
|
|
35
|
+
readonly 'settings.formatPcmHint': "边生成边播放,支持暂停和继续;首个音频分片前失败时自动回退 MP3。";
|
|
36
|
+
readonly 'settings.formatMp3Hint': "完整生成后播放,文件更小;支持暂停和继续。";
|
|
37
|
+
readonly 'settings.formatWavHint': "完整生成后播放,保留无损音频但文件更大;支持暂停和继续。";
|
|
31
38
|
readonly 'settings.voiceDesignPrompt': "自定义音色描述";
|
|
32
39
|
readonly 'settings.customVoiceOption': "自定义";
|
|
33
40
|
readonly 'settings.customVoiceSummary': "手动编写音色描述";
|
|
34
41
|
readonly 'settings.voiceDesignPromptHint': "按“年龄段 + 性别、声音质感、语速节奏、情绪底色”描述声音本身;不写场景或动作。";
|
|
35
|
-
readonly 'settings.format': "音频格式";
|
|
36
42
|
readonly 'settings.save': "保存";
|
|
37
43
|
readonly 'settings.saving': "保存中…";
|
|
38
44
|
readonly 'settings.saved': "已保存";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization.d.ts","sourceRoot":"","sources":["../../src/client/localization.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,EAAE,oBAAoB,CAAA;AAEnC,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"localization.d.ts","sourceRoot":"","sources":["../../src/client/localization.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,EAAE,oBAAoB,CAAA;AAEnC,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CA6D9C,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,EAAE,CAAA;AAEvC,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,SAAS,KAAK,MAAM,CAAA;AAElD,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,kBAAkB;QAC1B,iBAAiB,EAAE,SAAS,CAAA;KAC7B;CACF"}
|
|
@@ -7,10 +7,17 @@ export declare class PcmAudioQueue {
|
|
|
7
7
|
private context;
|
|
8
8
|
private scheduledAt;
|
|
9
9
|
private readonly sources;
|
|
10
|
+
private readonly sourceBytes;
|
|
10
11
|
private revision;
|
|
11
12
|
private chain;
|
|
12
13
|
private busy;
|
|
14
|
+
private userPaused;
|
|
15
|
+
private queuedBytes;
|
|
16
|
+
private maxPausedPcmBytes;
|
|
13
17
|
constructor(callbacks: PcmAudioQueueCallbacks);
|
|
18
|
+
setMaxPausedPcmBytes(value: number): void;
|
|
19
|
+
pause(): Promise<void>;
|
|
20
|
+
resume(): Promise<void>;
|
|
14
21
|
enqueue(base64: string): Promise<void>;
|
|
15
22
|
stop(): void;
|
|
16
23
|
dispose(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pcm-audio-queue.d.ts","sourceRoot":"","sources":["../../src/client/pcm-audio-queue.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED,qBAAa,aAAa;
|
|
1
|
+
{"version":3,"file":"pcm-audio-queue.d.ts","sourceRoot":"","sources":["../../src/client/pcm-audio-queue.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED,qBAAa,aAAa;IAYZ,OAAO,CAAC,QAAQ,CAAC,SAAS;IAXtC,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,WAAW,CAAI;IACvB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmC;IAC3D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA2C;IACvE,OAAO,CAAC,QAAQ,CAAI;IACpB,OAAO,CAAC,KAAK,CAAmC;IAChD,OAAO,CAAC,IAAI,CAAQ;IACpB,OAAO,CAAC,UAAU,CAAQ;IAC1B,OAAO,CAAC,WAAW,CAAI;IACvB,OAAO,CAAC,iBAAiB,CAAmB;gBAEf,SAAS,EAAE,sBAAsB;IAE9D,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAEnC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAKtB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAK7B,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOtC,IAAI,IAAI,IAAI;IAkBN,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;YAOhB,QAAQ;IA0CtB,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,UAAU;CAInB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-card.d.ts","sourceRoot":"","sources":["../../src/client/settings-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;
|
|
1
|
+
{"version":3,"file":"settings-card.d.ts","sourceRoot":"","sources":["../../src/client/settings-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAU3E,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AASlD,UAAU,iBAAiB;IACzB,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,CAAA;IACjC,CAAC,EAAE,SAAS,CAAA;CACb;AAoDD,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,iBAAiB,GAAG,YAAY,GAAG,IAAI,CAwUjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-scope.d.ts","sourceRoot":"","sources":["../../src/client/settings-scope.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE/C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"settings-scope.d.ts","sourceRoot":"","sources":["../../src/client/settings-scope.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE/C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAgBtE;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,6EAQ7D"}
|
package/lib/client/styles.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CLIENT_STYLES = "\n .xmimo-tts-action{width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:transparent;border:none;border-radius:28px;justify-content:center;align-items:center;padding:6px;display:inline-flex}.xmimo-tts-action:hover{background:var(--dsw-alias-interactive-bg-hover,#f3f4f6);color:var(--dsw-alias-label-secondary,#5f6875)}.xmimo-tts-action[aria-pressed=true]{background:var(--dsw-alias-interactive-bg-hover,#f3f4f6);color:var(--dsw-alias-label-secondary,#5f6875)}.xmimo-tts-action:disabled{cursor:default;opacity:.45}.xmimo-tts-spin{animation:xmimo-spin 1s linear infinite}@keyframes xmimo-spin{to{transform:rotate(360deg)}}\n .xmimo-tts-inline-error{max-width:220px;color:var(--dsw-alias-state-error-primary,#dc2626);font-size:12px}\n .xmimo-tts-api-key-warning{color:var(--dsw-alias-state-error-primary,#dc2626)!important}\n .xmimo-tts-card{list-style:none;border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:12px;color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-3,#fff);overflow:hidden;transition:border-color 160ms ease,background 160ms ease}.xmimo-tts-card:hover{border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.xmimo-tts-card-open{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.xmimo-tts-card-header{appearance:none;display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:0;border-radius:12px;color:inherit;text-align:left;background:transparent;font:inherit;cursor:pointer}.xmimo-tts-card-header:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:-2px}.xmimo-tts-card-head-text{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}.xmimo-tts-card-title{font-size:15px;font-weight:600}.xmimo-tts-card-description{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:13px;line-height:18px}.xmimo-tts-chevron{flex:none;color:var(--dsw-alias-label-tertiary,#8b93a1);transition:transform 160ms ease}.xmimo-tts-chevron-open{transform:rotate(180deg)}.xmimo-tts-pending{flex:none;border-radius:999px;padding:1px 8px;color:var(--dsw-alias-label-secondary,#5f6875);background:var(--dsw-alias-bg-module-platform,#eef0f3);font-size:11px;font-weight:500;line-height:17px}.xmimo-tts-card-body{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);margin:0 16px;padding:0 0 16px}\n .xmimo-tts-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;align-items:start}.xmimo-tts-grid>*{box-sizing:border-box;padding:16px 0;border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb)}.xmimo-tts-grid>:first-child{border-top:0}.xmimo-tts-grid label,.xmimo-tts-api-key,.xmimo-tts-model,.xmimo-tts-voice-design-prompt,.xmimo-tts-select-column>div{display:flex;min-width:0;flex-direction:column;gap:6px;font-size:13px}.xmimo-tts-grid input,.xmimo-tts-grid select,.xmimo-tts-grid textarea{box-sizing:border-box;width:100%;border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;padding:8px 10px;color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-2,#f3f4f6);font:inherit}.xmimo-tts-grid select{color-scheme:light dark}.xmimo-tts-grid select option{color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-1,#fff)}.xmimo-tts-grid select:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}.xmimo-tts-grid small{color:var(--dsw-alias-label-tertiary,#8b93a1);line-height:17px}.xmimo-tts-field-heading{display:flex;min-width:0;min-height:20px;flex-direction:row!important;align-items:center;justify-content:space-between;gap:8px}.xmimo-tts-field-label{display:inline-flex;min-width:0;align-items:center;gap:8px}.xmimo-tts-api-key-link{color:var(--dsw-alias-brand-primary,#4f6ef7);font-size:12px;text-decoration:none}.xmimo-tts-api-key-link:hover{text-decoration:underline}.xmimo-tts-field-badges{display:flex!important;flex:none;flex-direction:row!important;align-items:center;gap:8px}.xmimo-tts-overridden{border-radius:999px;padding:1px 7px;color:var(--dsw-alias-label-secondary,#5f6875);background:var(--dsw-alias-bg-module-platform,#eef0f3);font-size:11px;line-height:17px}.xmimo-tts-reset{padding:0;border:0;color:var(--dsw-alias-label-secondary,#5f6875);background:transparent;font:inherit;font-size:12px;cursor:pointer}.xmimo-tts-reset:hover:not(:disabled){color:var(--dsw-alias-label-primary,#1f2328)}.xmimo-tts-reset:disabled{cursor:not-allowed;opacity:.45}.xmimo-tts-api-key-hints{display:flex;min-width:0;gap:8px;align-items:center}.xmimo-tts-api-key-hints small{min-width:0;white-space:nowrap}.xmimo-tts-wide{grid-column:1/-1}.xmimo-tts-switch-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0}.xmimo-tts-switch-row>*:first-child{padding-right:14px}.xmimo-tts-switch-row>*+*{padding-left:14px;border-left:1px solid var(--dsw-alias-border-l2,#e5e7eb)}.xmimo-tts-checkbox-row{position:relative;flex-direction:row!important;align-items:center!important;gap:10px!important;cursor:pointer}.xmimo-tts-switch-copy{display:flex;min-width:0;flex-direction:column;gap:4px}.xmimo-tts-checkbox-row>input{position:absolute;width:1px!important;height:1px;margin:0!important;padding:0!important;overflow:hidden;border:0!important;opacity:0;clip-path:inset(50%)}.xmimo-tts-switch-control{box-sizing:border-box;position:relative;display:inline-block!important;width:36px;height:20px;min-width:36px;flex:none;border:1px solid var(--dsw-alias-border-l2,#c8ccd4);border-radius:999px;background:var(--dsw-alias-bg-module-platform,#e5e7eb);transition:border-color 160ms ease,background 160ms ease}.xmimo-tts-switch-control:after{content:\"\";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:0 1px 3px rgba(15,23,42,.24);transition:transform 160ms ease}.xmimo-tts-checkbox-row>input:checked+.xmimo-tts-switch-control{border-color:var(--dsw-alias-brand-primary,#4f6ef7);background:var(--dsw-alias-brand-primary,#4f6ef7)}.xmimo-tts-checkbox-row>input:checked+.xmimo-tts-switch-control:after{transform:translateX(16px)}.xmimo-tts-checkbox-row>input:focus-visible+.xmimo-tts-switch-control{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px}.xmimo-tts-checkbox-row>input:disabled+.xmimo-tts-switch-control{cursor:not-allowed;opacity:.45}.xmimo-tts-select-column{display:flex;min-width:0;flex-direction:row;gap:0}.xmimo-tts-select-column>div{flex:1}.xmimo-tts-select-column>div:first-child:not(:only-child){padding-right:16px}.xmimo-tts-select-column>div+div{padding-left:16px;border-left:1px solid var(--dsw-alias-border-l2,#e5e7eb)}\n .xmimo-tts-voice-picker{display:flex;min-width:0;flex-direction:column;gap:6px}.xmimo-tts-voice-picker-trigger,.xmimo-tts-voice-option{box-sizing:border-box;display:flex;width:100%;min-width:0;align-items:center;gap:10px;border:1px solid var(--dsw-alias-border-l2,#e5e7eb);color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-2,#f3f4f6);font:inherit;text-align:left;cursor:pointer}.xmimo-tts-voice-picker-trigger{min-height:54px;border-radius:10px;padding:6px 10px}.xmimo-tts-voice-picker-trigger:hover:not(:disabled){border-color:var(--dsw-alias-label-dimmed,#c8ccd4);background:var(--dsw-alias-interactive-bg-hover,#eef0f3)}.xmimo-tts-voice-picker-trigger:focus-visible,.xmimo-tts-voice-option:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}.xmimo-tts-voice-picker-trigger:disabled{cursor:not-allowed;opacity:.55}.xmimo-tts-voice-avatar{box-sizing:border-box;display:block;width:40px;height:40px;flex:none;border:1px solid color-mix(in srgb,var(--dsw-alias-border-l2,#e5e7eb) 80%,transparent);border-radius:50%;object-fit:cover;background:var(--dsw-alias-bg-layer-1,#fff)}.xmimo-tts-custom-voice-avatar{display:grid;place-items:center;color:var(--dsw-alias-brand-primary,#4f6ef7);background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 12%,var(--dsw-alias-bg-layer-1,#fff))}.xmimo-tts-custom-voice-avatar svg{width:30px;height:30px;overflow:visible}.xmimo-tts-custom-voice-avatar circle{fill:currentColor}.xmimo-tts-custom-voice-avatar path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.xmimo-tts-voice-option-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:1px}.xmimo-tts-voice-option-copy strong{overflow:hidden;font-size:13px;font-weight:600;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.xmimo-tts-voice-option-copy small{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.xmimo-tts-voice-picker-chevron{flex:none;color:var(--dsw-alias-label-tertiary,#8b93a1);transition:transform 160ms ease}.xmimo-tts-voice-picker-chevron-open{transform:rotate(180deg)}.xmimo-tts-voice-picker-menu{display:grid;max-height:310px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:10px;padding:5px;background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:0 10px 28px rgba(15,23,42,.12)}.xmimo-tts-voice-option{min-height:50px;border:0;border-radius:7px;padding:5px 7px;background:transparent}.xmimo-tts-voice-option:hover,.xmimo-tts-voice-option:focus-visible{background:var(--dsw-alias-interactive-bg-hover,#f3f4f6)}.xmimo-tts-voice-option-selected{background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 10%,transparent)}\n .xmimo-tts-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:12px;border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);font-size:12px;color:var(--dsw-alias-label-tertiary,#8b93a1)}.xmimo-tts-card-actions button{border:1px solid var(--dsw-alias-brand-primary,#4f6ef7);border-radius:8px;padding:5px 14px;color:var(--dsw-alias-bg-layer-1,#fff);background:var(--dsw-alias-brand-primary,#4f6ef7);cursor:pointer;font:inherit}.xmimo-tts-card-actions button:hover:not(:disabled){filter:brightness(1.08)}.xmimo-tts-card-actions button:disabled{cursor:not-allowed;color:var(--dsw-alias-label-dimmed,#9ca3af);background:var(--dsw-alias-bg-layer-2,#f3f4f6);border-color:var(--dsw-alias-border-l2,#e5e7eb);opacity:1}.xmimo-tts-card-actions .xmimo-tts-update{display:inline-flex;align-items:center;border:1px solid var(--dsw-alias-brand-primary,#4f6ef7);border-radius:8px;padding:5px 14px;color:var(--dsw-alias-brand-primary,#4f6ef7);background:transparent;text-decoration:none}.xmimo-tts-card-actions .xmimo-tts-update:hover{filter:brightness(1.08)}.xmimo-tts-card-actions .xmimo-tts-star{border-color:transparent;color:var(--dsw-alias-brand-primary,#4f6ef7);background:transparent;font-weight:500}.xmimo-tts-card-actions .xmimo-tts-star:hover{text-decoration:underline}.xmimo-tts-card-actions .xmimo-tts-uninstall{margin-right:auto;border-color:#F56C6C;color:#F56C6C;background:transparent}.xmimo-tts-card-actions .xmimo-tts-uninstall:hover:not(:disabled){background:color-mix(in srgb,#F56C6C 10%,transparent)}.xmimo-tts-card-actions .xmimo-tts-uninstall:disabled{border-color:#F56C6C;color:#F56C6C;background:transparent;opacity:.55}.xmimo-tts-uninstall-confirmation{display:flex;align-items:center;gap:8px;margin-right:auto;color:#F56C6C}.xmimo-tts-uninstall-choice{display:inline-flex;overflow:hidden;border:1px solid #F56C6C;border-radius:8px}.xmimo-tts-card-actions .xmimo-tts-uninstall-choice button{border:0;border-radius:0;padding:5px 12px;color:#F56C6C;background:transparent}.xmimo-tts-card-actions .xmimo-tts-uninstall-choice button+button{border-left:1px solid #F56C6C}.xmimo-tts-card-actions .xmimo-tts-uninstall-choice button:hover{filter:none;background:color-mix(in srgb,#F56C6C 10%,transparent)}.xmimo-tts-card-actions .xmimo-tts-discard{border-color:var(--dsw-alias-border-l2,#e5e7eb);color:var(--dsw-alias-label-secondary,#5f6875);background:transparent}.xmimo-tts-card-actions .xmimo-tts-discard:hover:not(:disabled){color:var(--dsw-alias-label-primary,#1f2328);border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.xmimo-tts-failed{color:var(--dsw-alias-state-error-primary,#dc2626)}.xmimo-tts-version{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;font-weight:400}\n @media(max-width:720px){.xmimo-tts-grid{grid-template-columns:1fr}.xmimo-tts-wide{grid-column:auto}.xmimo-tts-switch-row{grid-template-columns:1fr}.xmimo-tts-switch-row>*:first-child{padding-right:0;padding-bottom:16px}.xmimo-tts-switch-row>*+*{padding-top:16px;padding-left:0;border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-left:0}.xmimo-tts-select-column{grid-column:auto;flex-direction:column}.xmimo-tts-select-column>div:first-child:not(:only-child){padding-right:0;padding-bottom:16px}.xmimo-tts-select-column>div+div{padding-top:16px;padding-left:0;border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-left:0}.xmimo-tts-api-key-hints{flex-wrap:wrap}.xmimo-tts-api-key-hints small{white-space:normal}}\n .xmimo-tts-card-actions .xmimo-tts-uninstall{margin-right:0}.xmimo-tts-card-actions .xmimo-tts-star{margin-right:auto}.xmimo-tts-uninstall-confirmation{margin-right:0}\n ";
|
|
1
|
+
export declare const CLIENT_STYLES = "\n .xmimo-tts-action{width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:transparent;border:none;border-radius:28px;justify-content:center;align-items:center;padding:6px;display:inline-flex}.xmimo-tts-action:hover{background:var(--dsw-alias-interactive-bg-hover,#f3f4f6);color:var(--dsw-alias-label-secondary,#5f6875)}.xmimo-tts-action[aria-pressed=true]{background:var(--dsw-alias-interactive-bg-hover,#f3f4f6);color:var(--dsw-alias-label-secondary,#5f6875)}.xmimo-tts-action:disabled{cursor:default;opacity:.45}.xmimo-tts-spin{animation:xmimo-spin 1s linear infinite}@keyframes xmimo-spin{to{transform:rotate(360deg)}}\n .xmimo-tts-inline-error{max-width:220px;color:var(--dsw-alias-state-error-primary,#dc2626);font-size:12px}\n .xmimo-tts-api-key-warning{color:var(--dsw-alias-state-error-primary,#dc2626)!important}\n .xmimo-tts-card{list-style:none;border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:12px;color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-3,#fff);overflow:hidden;transition:border-color 160ms ease,background 160ms ease}.xmimo-tts-card:hover{border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.xmimo-tts-card-open{background:var(--dsw-alias-bg-layer-2,#f7f8fa);border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.xmimo-tts-card-header{appearance:none;display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:0;border-radius:12px;color:inherit;text-align:left;background:transparent;font:inherit;cursor:pointer}.xmimo-tts-card-header:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:-2px}.xmimo-tts-card-head-text{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}.xmimo-tts-card-title{font-size:15px;font-weight:600}.xmimo-tts-card-description{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:13px;line-height:18px}.xmimo-tts-chevron{flex:none;color:var(--dsw-alias-label-tertiary,#8b93a1);transition:transform 160ms ease}.xmimo-tts-chevron-open{transform:rotate(180deg)}.xmimo-tts-pending{flex:none;border-radius:999px;padding:1px 8px;color:var(--dsw-alias-label-secondary,#5f6875);background:var(--dsw-alias-bg-module-platform,#eef0f3);font-size:11px;font-weight:500;line-height:17px}.xmimo-tts-card-body{border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);margin:0 16px;padding:0 0 16px}\n .xmimo-tts-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;align-items:start}.xmimo-tts-grid>*{box-sizing:border-box;padding:16px 0;border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb)}.xmimo-tts-grid>:first-child{border-top:0}.xmimo-tts-grid label,.xmimo-tts-api-key,.xmimo-tts-model,.xmimo-tts-format,.xmimo-tts-voice-design-prompt,.xmimo-tts-voice{display:flex;min-width:0;flex-direction:column;gap:6px;font-size:13px}.xmimo-tts-grid input,.xmimo-tts-grid select,.xmimo-tts-grid textarea{box-sizing:border-box;width:100%;border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:8px;padding:8px 10px;color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-2,#f3f4f6);font:inherit}.xmimo-tts-grid select{color-scheme:light dark}.xmimo-tts-grid select option{color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-1,#fff)}.xmimo-tts-grid select:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}.xmimo-tts-grid small{color:var(--dsw-alias-label-tertiary,#8b93a1);line-height:17px}.xmimo-tts-field-heading{display:flex;min-width:0;min-height:20px;flex-direction:row!important;align-items:center;justify-content:space-between;gap:8px}.xmimo-tts-field-label{display:inline-flex;min-width:0;align-items:center;gap:8px}.xmimo-tts-api-key-link{color:var(--dsw-alias-brand-primary,#4f6ef7);font-size:12px;text-decoration:none}.xmimo-tts-api-key-link:hover{text-decoration:underline}.xmimo-tts-field-badges{display:flex!important;flex:none;flex-direction:row!important;align-items:center;gap:8px}.xmimo-tts-overridden{border-radius:999px;padding:1px 7px;color:var(--dsw-alias-label-secondary,#5f6875);background:var(--dsw-alias-bg-module-platform,#eef0f3);font-size:11px;line-height:17px}.xmimo-tts-reset{padding:0;border:0;color:var(--dsw-alias-label-secondary,#5f6875);background:transparent;font:inherit;font-size:12px;cursor:pointer}.xmimo-tts-reset:hover:not(:disabled){color:var(--dsw-alias-label-primary,#1f2328)}.xmimo-tts-reset:disabled{cursor:not-allowed;opacity:.45}.xmimo-tts-api-key-hints{display:flex;min-width:0;gap:8px;align-items:center}.xmimo-tts-api-key-hints small{min-width:0;white-space:nowrap}.xmimo-tts-wide{grid-column:1/-1}.xmimo-tts-switch-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0}.xmimo-tts-switch-row>*:first-child{padding-right:14px}.xmimo-tts-switch-row>*+*{padding-left:14px;border-left:1px solid var(--dsw-alias-border-l2,#e5e7eb)}.xmimo-tts-checkbox-row{position:relative;flex-direction:row!important;align-items:center!important;gap:10px!important;cursor:pointer}.xmimo-tts-switch-copy{display:flex;min-width:0;flex-direction:column;gap:4px}.xmimo-tts-checkbox-row>input{position:absolute;width:1px!important;height:1px;margin:0!important;padding:0!important;overflow:hidden;border:0!important;opacity:0;clip-path:inset(50%)}.xmimo-tts-switch-control{box-sizing:border-box;position:relative;display:inline-block!important;width:36px;height:20px;min-width:36px;flex:none;border:1px solid var(--dsw-alias-border-l2,#c8ccd4);border-radius:999px;background:var(--dsw-alias-bg-module-platform,#e5e7eb);transition:border-color 160ms ease,background 160ms ease}.xmimo-tts-switch-control:after{content:\"\";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:0 1px 3px rgba(15,23,42,.24);transition:transform 160ms ease}.xmimo-tts-checkbox-row>input:checked+.xmimo-tts-switch-control{border-color:var(--dsw-alias-brand-primary,#4f6ef7);background:var(--dsw-alias-brand-primary,#4f6ef7)}.xmimo-tts-checkbox-row>input:checked+.xmimo-tts-switch-control:after{transform:translateX(16px)}.xmimo-tts-checkbox-row>input:focus-visible+.xmimo-tts-switch-control{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px}.xmimo-tts-checkbox-row>input:disabled+.xmimo-tts-switch-control{cursor:not-allowed;opacity:.45}\n .xmimo-tts-voice-picker{display:flex;min-width:0;flex-direction:column;gap:6px}.xmimo-tts-voice-picker-trigger,.xmimo-tts-voice-option{box-sizing:border-box;display:flex;width:100%;min-width:0;align-items:center;gap:10px;border:1px solid var(--dsw-alias-border-l2,#e5e7eb);color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-2,#f3f4f6);font:inherit;text-align:left;cursor:pointer}.xmimo-tts-voice-picker-trigger{min-height:54px;border-radius:10px;padding:6px 10px}.xmimo-tts-voice-picker-trigger:hover:not(:disabled){border-color:var(--dsw-alias-label-dimmed,#c8ccd4);background:var(--dsw-alias-interactive-bg-hover,#eef0f3)}.xmimo-tts-voice-picker-trigger:focus-visible,.xmimo-tts-voice-option:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}.xmimo-tts-voice-picker-trigger:disabled{cursor:not-allowed;opacity:.55}.xmimo-tts-voice-avatar{box-sizing:border-box;display:block;width:40px;height:40px;flex:none;border:1px solid color-mix(in srgb,var(--dsw-alias-border-l2,#e5e7eb) 80%,transparent);border-radius:50%;object-fit:cover;background:var(--dsw-alias-bg-layer-1,#fff)}.xmimo-tts-custom-voice-avatar{display:grid;place-items:center;color:var(--dsw-alias-brand-primary,#4f6ef7);background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 12%,var(--dsw-alias-bg-layer-1,#fff))}.xmimo-tts-custom-voice-avatar svg{width:30px;height:30px;overflow:visible}.xmimo-tts-custom-voice-avatar circle{fill:currentColor}.xmimo-tts-custom-voice-avatar path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.xmimo-tts-voice-option-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:1px}.xmimo-tts-voice-option-copy strong{overflow:hidden;font-size:13px;font-weight:600;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.xmimo-tts-voice-option-copy small{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.xmimo-tts-voice-picker-chevron{flex:none;color:var(--dsw-alias-label-tertiary,#8b93a1);transition:transform 160ms ease}.xmimo-tts-voice-picker-chevron-open{transform:rotate(180deg)}.xmimo-tts-voice-picker-menu{display:grid;max-height:310px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:10px;padding:5px;background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:0 10px 28px rgba(15,23,42,.12)}.xmimo-tts-voice-option{min-height:50px;border:0;border-radius:7px;padding:5px 7px;background:transparent}.xmimo-tts-voice-option:hover,.xmimo-tts-voice-option:focus-visible{background:var(--dsw-alias-interactive-bg-hover,#f3f4f6)}.xmimo-tts-voice-option-selected{background:color-mix(in srgb,var(--dsw-alias-brand-primary,#4f6ef7) 10%,transparent)}\n .xmimo-tts-builtin-voice-picker{display:flex;min-width:0;flex-direction:column;gap:8px}.xmimo-tts-builtin-voice-trigger,.xmimo-tts-builtin-voice-option{box-sizing:border-box;display:flex;width:100%;min-width:0;align-items:center;gap:10px;border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:9px;color:var(--dsw-alias-label-primary,#1f2328);background:var(--dsw-alias-bg-layer-1,#fff);font:inherit;text-align:left;cursor:pointer}.xmimo-tts-builtin-voice-trigger{min-height:54px;padding:8px 11px}.xmimo-tts-builtin-voice-trigger:hover:not(:disabled),.xmimo-tts-builtin-voice-option:hover{border-color:var(--dsw-alias-label-dimmed,#c8ccd4);background:var(--dsw-alias-interactive-bg-hover,#f7f7f5)}.xmimo-tts-builtin-voice-trigger:focus-visible,.xmimo-tts-builtin-voice-option:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}.xmimo-tts-builtin-voice-trigger:disabled{cursor:not-allowed;opacity:.55}.xmimo-tts-builtin-voice-avatar{box-sizing:border-box;display:block;width:36px;height:36px;flex:none;border-radius:50%;object-fit:cover;background:#f4f2ed}.xmimo-tts-builtin-voice-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:1px}.xmimo-tts-builtin-voice-copy strong{overflow:hidden;font-size:14px;font-weight:600;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.xmimo-tts-builtin-voice-copy small{overflow:hidden;color:var(--dsw-alias-label-tertiary,#77736b);font-size:12px;line-height:15px;text-overflow:ellipsis;white-space:nowrap}.xmimo-tts-builtin-voice-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:320px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-radius:12px;padding:10px;background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:0 10px 28px rgba(15,23,42,.12)}.xmimo-tts-builtin-voice-option{position:relative;min-height:60px;padding:9px 12px}.xmimo-tts-builtin-voice-option-selected{background:color-mix(in srgb,#dedbd2 24%,var(--dsw-alias-bg-layer-1,#fff))}.xmimo-tts-builtin-voice-check{position:absolute;top:6px;right:6px;width:14px;height:14px}.xmimo-tts-builtin-voice-check circle{fill:#383932}.xmimo-tts-builtin-voice-check path{fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}\n .xmimo-tts-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:12px;border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);font-size:12px;color:var(--dsw-alias-label-tertiary,#8b93a1)}.xmimo-tts-card-actions button{border:1px solid var(--dsw-alias-brand-primary,#4f6ef7);border-radius:8px;padding:5px 14px;color:var(--dsw-alias-bg-layer-1,#fff);background:var(--dsw-alias-brand-primary,#4f6ef7);cursor:pointer;font:inherit}.xmimo-tts-card-actions button:hover:not(:disabled){filter:brightness(1.08)}.xmimo-tts-card-actions button:disabled{cursor:not-allowed;color:var(--dsw-alias-label-dimmed,#9ca3af);background:var(--dsw-alias-bg-layer-2,#f3f4f6);border-color:var(--dsw-alias-border-l2,#e5e7eb);opacity:1}.xmimo-tts-card-actions .xmimo-tts-update{display:inline-flex;align-items:center;border:1px solid var(--dsw-alias-brand-primary,#4f6ef7);border-radius:8px;padding:5px 14px;color:var(--dsw-alias-brand-primary,#4f6ef7);background:transparent;text-decoration:none}.xmimo-tts-card-actions .xmimo-tts-update:hover{filter:brightness(1.08)}.xmimo-tts-card-actions .xmimo-tts-star{border-color:transparent;color:var(--dsw-alias-brand-primary,#4f6ef7);background:transparent;font-weight:500}.xmimo-tts-card-actions .xmimo-tts-star:hover{text-decoration:underline}.xmimo-tts-card-actions .xmimo-tts-uninstall{margin-right:auto;border-color:#F56C6C;color:#F56C6C;background:transparent}.xmimo-tts-card-actions .xmimo-tts-uninstall:hover:not(:disabled){background:color-mix(in srgb,#F56C6C 10%,transparent)}.xmimo-tts-card-actions .xmimo-tts-uninstall:disabled{border-color:#F56C6C;color:#F56C6C;background:transparent;opacity:.55}.xmimo-tts-uninstall-confirmation{display:flex;align-items:center;gap:8px;margin-right:auto;color:#F56C6C}.xmimo-tts-uninstall-choice{display:inline-flex;overflow:hidden;border:1px solid #F56C6C;border-radius:8px}.xmimo-tts-card-actions .xmimo-tts-uninstall-choice button{border:0;border-radius:0;padding:5px 12px;color:#F56C6C;background:transparent}.xmimo-tts-card-actions .xmimo-tts-uninstall-choice button+button{border-left:1px solid #F56C6C}.xmimo-tts-card-actions .xmimo-tts-uninstall-choice button:hover{filter:none;background:color-mix(in srgb,#F56C6C 10%,transparent)}.xmimo-tts-card-actions .xmimo-tts-discard{border-color:var(--dsw-alias-border-l2,#e5e7eb);color:var(--dsw-alias-label-secondary,#5f6875);background:transparent}.xmimo-tts-card-actions .xmimo-tts-discard:hover:not(:disabled){color:var(--dsw-alias-label-primary,#1f2328);border-color:var(--dsw-alias-label-dimmed,#c8ccd4)}.xmimo-tts-failed{color:var(--dsw-alias-state-error-primary,#dc2626)}.xmimo-tts-version{color:var(--dsw-alias-label-tertiary,#8b93a1);font-size:11px;font-weight:400}\n @media(max-width:720px){.xmimo-tts-grid{grid-template-columns:1fr}.xmimo-tts-wide{grid-column:auto}.xmimo-tts-switch-row{grid-template-columns:1fr}.xmimo-tts-switch-row>*:first-child{padding-right:0;padding-bottom:16px}.xmimo-tts-switch-row>*+*{padding-top:16px;padding-left:0;border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);border-left:0}.xmimo-tts-api-key-hints{flex-wrap:wrap}.xmimo-tts-api-key-hints small{white-space:normal}}@media(max-width:480px){.xmimo-tts-builtin-voice-menu{grid-template-columns:1fr}}\n .xmimo-tts-card-actions .xmimo-tts-uninstall{margin-right:0}.xmimo-tts-card-actions .xmimo-tts-star{margin-right:auto}.xmimo-tts-uninstall-confirmation{margin-right:0}\n .xmimo-tts-format-option-selected{z-index:1;border-color:var(--dsw-alias-brand-primary,#4f6ef7)}.xmimo-tts-format-option{text-transform:uppercase}\n .xmimo-tts-format-options{display:flex;width:100%;gap:0}.xmimo-tts-format-option{position:relative;flex:1;padding:8px 4px;border:1px solid var(--dsw-alias-border-l2,#e5e7eb);text-align:center;cursor:pointer}.xmimo-tts-format-option:first-child{border-radius:8px 0 0 8px}.xmimo-tts-format-option:last-child{border-radius:0 8px 8px 0}.xmimo-tts-format-option+.xmimo-tts-format-option{border-left:0}.xmimo-tts-format-option input{position:absolute;width:1px;height:1px;opacity:0}.xmimo-tts-format-option-selected{color:var(--dsw-alias-brand-primary,#4f6ef7);font-weight:600}.xmimo-tts-format-option:focus-within{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}.xmimo-tts-builtin-voice-option-custom{grid-column:1/-1}\n ";
|
|
2
2
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/client/styles.ts"],"names":[],"mappings":"AAAI,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/client/styles.ts"],"names":[],"mappings":"AAAI,eAAO,MAAM,aAAa,69eAazB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-design-picker.d.ts","sourceRoot":"","sources":["../../src/client/voice-design-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAuC,YAAY,EAAE,MAAM,OAAO,CAAA;AAK9E,eAAO,MAAM,0BAA0B,eAAe,CAAA;AAEtD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEhE;
|
|
1
|
+
{"version":3,"file":"voice-design-picker.d.ts","sourceRoot":"","sources":["../../src/client/voice-design-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAuC,YAAY,EAAE,MAAM,OAAO,CAAA;AAK9E,eAAO,MAAM,0BAA0B,eAAe,CAAA;AAEtD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEhE;AA4BD,UAAU,4BAA4B;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,wBAAgB,uBAAuB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,4BAA4B,GAAG,YAAY,CAgIpJ"}
|