dsh-xiaomi-tts 3.0.6 → 3.0.7
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 +44 -64
- package/README.md +27 -32
- package/assets/install.png +0 -0
- package/lib/client.js +5 -4
- package/lib/client.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/pcm-stream.js +1 -1
- package/lib/{shared-tSov_ZbE.js → shared-BbkftxTV.js} +3 -2
- package/lib/shared.d.ts +1 -1
- package/lib/shared.d.ts.map +1 -1
- package/lib/shared.js +1 -1
- package/package.json +30 -29
package/README.en.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/dsh-xiaomi-tts)
|
|
6
6
|
[](https://www.npmjs.com/package/dsh-xiaomi-tts)
|
|
7
|
-

|
|
8
8
|

|
|
9
9
|
|
|
10
10
|
Add Xiaomi MiMo TTS read-aloud, browser-local fallback speech, and optional UI sounds to DSH Web.
|
|
@@ -15,7 +15,7 @@ Add Xiaomi MiMo TTS read-aloud, browser-local fallback speech, and optional UI s
|
|
|
15
15
|
|
|
16
16
|
## 🎨 Preview
|
|
17
17
|
|
|
18
|
-
- [Open the
|
|
18
|
+
- [Open the settings page preview](https://ppy-web.github.io/dsh-plugin-xiaomi-mimo-tts)
|
|
19
19
|
|
|
20
20
|
| Settings | Message action |
|
|
21
21
|
|:---:|:---:|
|
|
@@ -30,46 +30,39 @@ Add Xiaomi MiMo TTS read-aloud, browser-local fallback speech, and optional UI s
|
|
|
30
30
|
- Smart, full, and first-segment read-aloud ranges.
|
|
31
31
|
- 0.5×–2.0× playback speed, voice volume, pause, resume, and stop controls.
|
|
32
32
|
- Text preparation that removes URLs, paths, code blocks, emoji, and control characters before synthesis.
|
|
33
|
-
-
|
|
34
|
-
- Optional task and semantic click sounds, disabled by default.
|
|
33
|
+
- Optional task and semantic click sounds, disabled by default.
|
|
35
34
|
- An optional PCM playback service for other DSH Web plugins.
|
|
36
35
|
|
|
37
36
|
## 📋 Requirements
|
|
38
37
|
|
|
39
|
-
- `@deepseek-ai/dsh` `0.
|
|
38
|
+
- `@deepseek-ai/dsh` `0.2.0-rc.1` (the current target; compatible with `0.1.7-rc.1` through `0.2.x` releases)
|
|
40
39
|
- Node.js 22+
|
|
41
40
|
- A Xiaomi MiMo API key for MiMo speech
|
|
42
41
|
- [Official TTS API documentation](https://mimo.mi.com/models/zh-CN/mimo-v2.5-tts)
|
|
43
42
|
|
|
44
43
|
## 🚀 Installation
|
|
45
44
|
|
|
46
|
-
###
|
|
45
|
+
### Official installation (desktop/web) (recommended)
|
|
46
|
+
|
|
47
|
+
Open the desktop or web client, go to the Plugin Manager, and search for `dsh-xiaomi-tts`.
|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
### Install from npm (web)
|
|
47
52
|
|
|
48
53
|
```bash
|
|
49
|
-
dsh plugin --profile web add dsh-xiaomi-tts@latest
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Install from the
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
### Install from
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
You can also download a `.tgz` from GitHub Releases:
|
|
63
|
-
|
|
64
|
-
```powershell
|
|
65
|
-
dsh plugin --profile web add "<download-path>\dsh-xiaomi-tts-<version>.tgz"
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
Release tarballs include the build output and do not require `pnpm approve-builds`.
|
|
69
|
-
|
|
70
|
-
After installation, restart the running DSH Web `web` profile, then open:
|
|
71
|
-
|
|
72
|
-
**Sidebar → Plugins → dsh-xiaomi-tts → Text To Speech (Xiaomi MiMo)**
|
|
54
|
+
dsh plugin --profile web add dsh-xiaomi-tts@latest
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Install from the DSH Plugin Manager
|
|
58
|
+
|
|
59
|
+
The plugin is published to npm. In DSH Web's sidebar, open the Plugin Manager, choose **Add plugin**, then search for `dsh-xiaomi-tts`.
|
|
60
|
+
|
|
61
|
+
### Install from the plugin marketplace
|
|
62
|
+
|
|
63
|
+
 The [plugin marketplace](https://awesome-dsh-plugin.com) includes this plugin. If you have the community marketplace installed, search for `xiaomi-mimo-tts` under **Settings → Plugin marketplace**.
|
|
64
|
+
|
|
65
|
+
**Sidebar → Plugins → dsh-xiaomi-tts → Text To Speech (MiMo TTS)**
|
|
73
66
|
|
|
74
67
|
## 🐋 First use
|
|
75
68
|
|
|
@@ -85,17 +78,8 @@ Recommended setup order:
|
|
|
85
78
|
1. [Create a Xiaomi MiMo API key](https://platform.xiaomimimo.com/console/api-keys).
|
|
86
79
|
2. Enter it in the plugin settings and click **Save**.
|
|
87
80
|
3. Open Mixing Console and choose a model and voice.
|
|
88
|
-
4. Test it in Broadcast Studio
|
|
89
|
-
5. Enable automatic playback and UI sounds only if wanted, then save again.
|
|
90
|
-
|
|
91
|
-
> A newly entered API key is used by MiMo only after it is saved to the DSH Host. Recognizing an `sk-` or `tp-` prefix is a format check, not server-side validation.
|
|
92
|
-
|
|
93
|
-
### Replace or clear an API key
|
|
94
|
-
|
|
95
|
-
- Entering and saving a new key replaces the key in the personal settings layer.
|
|
96
|
-
- **Clear** removes that personal override after Save.
|
|
97
|
-
- If a DSH base configuration still provides a key, clearing the personal override restores the inherited key. It does not revoke a key on Xiaomi's platform.
|
|
98
|
-
- Revoke the key in the Xiaomi MiMo console when it must be made unusable everywhere.
|
|
81
|
+
4. Test it in Broadcast Studio.
|
|
82
|
+
5. Enable automatic playback and UI sounds only if wanted, then save again.
|
|
99
83
|
|
|
100
84
|
## ⚙️ Configuration
|
|
101
85
|
|
|
@@ -110,13 +94,7 @@ Recommended setup order:
|
|
|
110
94
|
|
|
111
95
|
### Custom voices
|
|
112
96
|
|
|
113
|
-
`mimo-v2.5-tts-voicedesign` generates a voice from a description. The settings panel includes presets and an editable custom description:
|
|
114
|
-
|
|
115
|
-
```text
|
|
116
|
-
Young adult woman with a bright, approachable voice, clear articulation, moderate pace, and a gentle, restrained emotional tone.
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
Voice descriptions support preset templates and direct manual editing; save the settings after changing one.
|
|
97
|
+
`mimo-v2.5-tts-voicedesign` generates a voice from a description. The settings panel includes presets and an editable custom description:
|
|
120
98
|
|
|
121
99
|
### Browser-local speech
|
|
122
100
|
|
|
@@ -134,9 +112,11 @@ Browser voices come from the Web Speech API. Offline availability, language cove
|
|
|
134
112
|
|
|
135
113
|
The settings panel supports keyboard navigation: use `Tab` to move focus, arrow keys to adjust sliders and options, and `Space` to activate buttons and switches.
|
|
136
114
|
|
|
137
|
-
## 🔌 Third-party plugin integration
|
|
138
|
-
|
|
139
|
-
|
|
115
|
+
## 🔌 Third-party plugin integration
|
|
116
|
+
|
|
117
|
+

|
|
118
|
+
|
|
119
|
+
The plugin exposes an optional PCM streaming service to Web plugins:
|
|
140
120
|
|
|
141
121
|
```ts
|
|
142
122
|
ctx.get('xiaomiMimoTts')?.play('Welcome back')
|
|
@@ -156,10 +136,8 @@ tts?.play('Welcome back')
|
|
|
156
136
|
## 🔒 Privacy and network access
|
|
157
137
|
|
|
158
138
|
- The DSH Host stores the API key. The browser reads only whether a key is configured and whether its prefix is recognized, not the secret itself.
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
- Opening the settings card makes the DSH Host query the npm Registry for a newer plugin version.
|
|
162
|
-
- Audio plays from browser memory through Web Audio or temporary Blob URLs; the plugin does not intentionally persist generated audio.
|
|
139
|
+
- Browser-local speech uses the Web Speech API. Voices marked online may send text to browser, operating-system, or network speech services.
|
|
140
|
+
- Audio plays from browser memory through Web Audio or temporary Blob URLs; the plugin does not intentionally persist generated audio.
|
|
163
141
|
- The sound core is migrated from [uisfx 0.4.0](https://github.com/romainsimon/uisfx) under the MIT License; see `NOTICE`.
|
|
164
142
|
|
|
165
143
|
## 🏗️ Architecture
|
|
@@ -204,14 +182,16 @@ pnpm pack:check
|
|
|
204
182
|
On Windows, stop DSH Web before replacing a local development link with the npm package so the running Node process does not hold the Junction:
|
|
205
183
|
|
|
206
184
|
```powershell
|
|
207
|
-
.\start\dsh-plugin-reinstall.bat 3.0.
|
|
185
|
+
.\start\dsh-plugin-reinstall.bat 3.0.7
|
|
208
186
|
```
|
|
209
187
|
|
|
210
|
-
## 🤝 Recommended
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
- [dsh-whale
|
|
216
|
-
- [dsh-
|
|
217
|
-
- [dsh-
|
|
188
|
+
## 🤝 Recommended
|
|
189
|
+
|
|
190
|
+
> The Whale Maid artwork is inspired by community projects and generated with GPT.
|
|
191
|
+
> The UI sound effects reference the implementation in `dsh-plugin-uisfx`.
|
|
192
|
+
|
|
193
|
+
- [dsh-deep-whale](https://github.com/Small-tailqwq/dsh-deep-whale#readme): Whale Maid theme and skin series.
|
|
194
|
+
- [dsh-whale-musume](https://github.com/Sutera-Diffusus/dsh-whale-musume#readme): energetic Whale Maid desktop companion.
|
|
195
|
+
- [dsh-plugin-uisfx](https://github.com/XanthanL/dsh-plugin-uisfx#readme): semantic UI sound effects.
|
|
196
|
+
- [dsh-dream-skin](https://github.com/RevolutionLA/dsh-dream-skin#readme): native skins, wallpapers, accent colors, and theme packs.
|
|
197
|
+
- [dsh-TUI](https://github.com/ccch1mneyyy/dsh-TUI): a plugin for the dsh-TUI ecosystem.
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/dsh-xiaomi-tts)
|
|
6
6
|
[](https://www.npmjs.com/package/dsh-xiaomi-tts)
|
|
7
|
-

|
|
8
8
|

|
|
9
9
|
|
|
10
10
|
为 DSH Web 添加 Xiaomi MiMo TTS 语音朗读、浏览器本地语音兜底和可选 UI 音效。
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
## 🎨 预览
|
|
17
17
|
|
|
18
|
-
- [
|
|
18
|
+
- [在线预览设置页面](https://ppy-web.github.io/dsh-plugin-xiaomi-mimo-tts)
|
|
19
19
|
|
|
20
20
|
| 设置界面 | 对话朗读入口 |
|
|
21
21
|
|:---:|:---:|
|
|
@@ -30,47 +30,41 @@
|
|
|
30
30
|
- 朗读范围:支持智能、全文和首段模式。
|
|
31
31
|
- 播放控制:支持 0.5×–2.0× 语速、语音音量、暂停、继续和停止。
|
|
32
32
|
- 文本清洗:朗读前移除网址、路径、代码块、表情符号和控制字符等不适合播报的内容。
|
|
33
|
-
- 演播厅:试听时明确显示正在使用 MiMo 还是浏览器本地语音,并区分常见失败原因。
|
|
34
33
|
- 可选音效:提供任务状态和语义化点击音效,默认关闭。
|
|
35
34
|
- 插件联动:向其他 DSH Web 插件暴露可选的 PCM 播放服务。
|
|
36
35
|
|
|
37
36
|
## 📋 环境要求
|
|
38
37
|
|
|
39
|
-
- `@deepseek-ai/dsh` `0.
|
|
38
|
+
- `@deepseek-ai/dsh` `0.2.0-rc.1`(当前目标版本;兼容 `0.1.7-rc.1` 至 `0.2.x` 版本)
|
|
40
39
|
- Node.js 22+
|
|
41
40
|
- 使用 MiMo 语音时需要 Xiaomi MiMo API Key
|
|
42
41
|
- [官方 TTS API 文档](https://mimo.mi.com/models/zh-CN/mimo-v2.5-tts)
|
|
43
42
|
|
|
44
43
|
## 🚀 安装
|
|
45
44
|
|
|
46
|
-
###
|
|
45
|
+
### 官方安装(desktop/web)(推荐)
|
|
46
|
+
|
|
47
|
+
打开桌面/web端,进入插件管理面板,搜索 `dsh-xiaomi-tts` 即可安装
|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
### 从 npm 安装(web)
|
|
47
52
|
|
|
48
53
|
```bash
|
|
49
54
|
dsh plugin --profile web add dsh-xiaomi-tts@latest
|
|
50
55
|
```
|
|
51
56
|
|
|
52
|
-
### 从DSH插件管理面板安装
|
|
53
|
-
|
|
54
|
-
当前插件已发布到npm,可在dsh web的侧边栏进入插件面板,点击添加插件,输入包名 `dsh-xiaomi-tts` 搜索并安装。
|
|
55
|
-
|
|
56
57
|
### 从插件市场安装
|
|
57
58
|
|
|
58
|
-
[插件市场](https://awesome-dsh-plugin.com) 已收录本插件,如你已安装社区的插件市场,可在 **设置 → 插件市场** 中搜索 `xiaomi-mimo-tts`安装。
|
|
59
|
+
 [插件市场](https://awesome-dsh-plugin.com) 已收录本插件,如你已安装社区的插件市场,可在 **设置 → 插件市场** 中搜索 `xiaomi-mimo-tts`安装。
|
|
59
60
|
|
|
60
|
-
|
|
61
|
+
**侧边栏 → 插件 → dsh-xiaomi-tts → 语音朗读 (MiMo TTS)**
|
|
61
62
|
|
|
62
|
-
|
|
63
|
-
dsh plugin --profile web add github:ppy-web/dsh-plugin-xiaomi-mimo-tts
|
|
64
|
-
```
|
|
63
|
+
### 卸载(web)
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
```powershell
|
|
69
|
-
dsh plugin --profile web add "<下载路径>\dsh-xiaomi-tts-<版本>.tgz"
|
|
65
|
+
```bash
|
|
66
|
+
dsh plugin --profile web remove dsh-xiaomi-tts
|
|
70
67
|
```
|
|
71
|
-
安装完成后,重启正在运行的 DSH Web `web` profile,然后打开:
|
|
72
|
-
|
|
73
|
-
**侧边栏 → 插件 → dsh-xiaomi-tts → 语音朗读 (Xiaomi MiMo)**
|
|
74
68
|
|
|
75
69
|
## 🐋 首次使用
|
|
76
70
|
|
|
@@ -86,11 +80,9 @@ dsh plugin --profile web add "<下载路径>\dsh-xiaomi-tts-<版本>.tgz"
|
|
|
86
80
|
1. [获取 Xiaomi MiMo API Key](https://platform.xiaomimimo.com/console/api-keys)。
|
|
87
81
|
2. 在插件设置中输入 Key,并点击底部 **保存**。
|
|
88
82
|
3. 打开“调音台”,选择模型和音色。
|
|
89
|
-
4.
|
|
83
|
+
4. 在“演播厅”试听。
|
|
90
84
|
5. 按需开启自动播报和 UI 音效,再次保存。
|
|
91
85
|
|
|
92
|
-
> 新输入的 API Key 只有保存到 DSH Host 后才会用于 MiMo 试听。界面中的 `sk-` / `tp-` 检查只是格式识别,不代表服务端已经验证密钥有效。
|
|
93
|
-
|
|
94
86
|
## ⚙️ 配置说明
|
|
95
87
|
|
|
96
88
|
### 官方内置音色
|
|
@@ -124,6 +116,8 @@ dsh plugin --profile web add "<下载路径>\dsh-xiaomi-tts-<版本>.tgz"
|
|
|
124
116
|
|
|
125
117
|
## 🔌 三方插件联动
|
|
126
118
|
|
|
119
|
+

|
|
120
|
+
|
|
127
121
|
本插件向 Web 插件提供可选 PCM 流式播放能力:
|
|
128
122
|
|
|
129
123
|
```ts
|
|
@@ -190,15 +184,16 @@ pnpm pack:check
|
|
|
190
184
|
Windows 从本地开发链接切换到 npm 包前,请先停止 DSH Web,避免运行中的 Node 进程占用 Junction:
|
|
191
185
|
|
|
192
186
|
```powershell
|
|
193
|
-
.\start\dsh-plugin-reinstall.bat 3.0.
|
|
187
|
+
.\start\dsh-plugin-reinstall.bat 3.0.7
|
|
194
188
|
```
|
|
195
189
|
|
|
196
|
-
## 🤝
|
|
190
|
+
## 🤝 推荐
|
|
197
191
|
|
|
198
|
-
>
|
|
199
|
-
|
|
192
|
+
> 鲸鱼娘形象参考社区由GPT生成
|
|
193
|
+
> uisfx音效参考 `dsh-plugin-uisfx`实现
|
|
200
194
|
|
|
201
|
-
- [dsh-deep-whale](https://github.com/Small-tailqwq/dsh-deep-whale#readme)
|
|
202
|
-
- [dsh-whale-musume](https://github.com/Sutera-Diffusus/dsh-whale-musume#readme)
|
|
203
|
-
- [dsh-plugin-uisfx](https://github.com/XanthanL/dsh-plugin-uisfx#readme)
|
|
204
|
-
- [dsh-dream-skin](https://github.com/RevolutionLA/dsh-dream-skin#readme)
|
|
195
|
+
- [dsh-deep-whale](https://github.com/Small-tailqwq/dsh-deep-whale#readme) · 鲸鱼娘主题皮肤系列。
|
|
196
|
+
- [dsh-whale-musume](https://github.com/Sutera-Diffusus/dsh-whale-musume#readme) · 元气鲸鱼娘桌宠。
|
|
197
|
+
- [dsh-plugin-uisfx](https://github.com/XanthanL/dsh-plugin-uisfx#readme) · 语义化 UI 音效。
|
|
198
|
+
- [dsh-dream-skin](https://github.com/RevolutionLA/dsh-dream-skin#readme) · 原生换肤、背景壁纸、强调色和主题包。
|
|
199
|
+
- [dsh-TUI](https://github.com/ccch1mneyyy/dsh-TUI) · 一个为 dsh-TUI 生态打造的插件
|
|
Binary file
|
package/lib/client.js
CHANGED
|
@@ -286,6 +286,7 @@ const TTS_PUNCTUATION = {
|
|
|
286
286
|
};
|
|
287
287
|
/** Decorative punctuation can make TTS emit non-speech artifacts, so omit it entirely. */
|
|
288
288
|
const TTS_NON_SPEECH_PUNCTUATION = /[()\[\]【】[]〔〕〖〗{}{}「」『』《》〈〉“”‘’"'`<>:…—–-~]/gu;
|
|
289
|
+
const TTS_PAUSE_MARKER = "";
|
|
289
290
|
const TTS_URL_PATTERN = /\b(?:https?|ftp):\/\/[^\s<>()]+|\bwww\.[^\s<>()]+|\b(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+(?:com|cn|net|org|io|ai|dev|me|co|edu|gov|xyz|tech|info|app|site|link)(?:[/:?#][^\s<>()]*)?/giu;
|
|
290
291
|
const TTS_WINDOWS_PATH_PATTERN = /(?:\b[A-Za-z]:[\\/]|\\\\)(?:[A-Za-z0-9._ -]+[\\/])+(?:[A-Za-z0-9._ -]+)/gu;
|
|
291
292
|
const TTS_UNIX_PATH_PATTERN = /\/(?:[A-Za-z0-9._-]+\/)+(?:[A-Za-z0-9._-]+)/gu;
|
|
@@ -315,7 +316,7 @@ function removeTtsSymbols(value) {
|
|
|
315
316
|
}
|
|
316
317
|
/** Combined punctuation normalization: collapse adjacent punctuation, remove non-speech characters, and normalize Chinese punctuation. */
|
|
317
318
|
function normalizeTtsPunctuation(value) {
|
|
318
|
-
return value.replace(TTS_NON_SPEECH_PUNCTUATION, "").replace(/[,。!?;、() ]/gu, (character) => TTS_PUNCTUATION[character] ?? character).replace(/(^|\s)[,;:!?]+(?=\s|$)/g, "$1").replace(/([,;:])\s*([.!?])/g, "$2").replace(/\s+([,.;:!?])/g, "$1");
|
|
319
|
+
return value.replace(/[—–-]+/gu, TTS_PAUSE_MARKER).replace(TTS_NON_SPEECH_PUNCTUATION, "").replace(/[,。!?;、() ]/gu, (character) => TTS_PUNCTUATION[character] ?? character).replace(/(^|\s)[,;:!?]+(?=\s|$)/g, "$1").replace(/([,;:])\s*([.!?])/g, "$2").replace(new RegExp(TTS_PAUSE_MARKER, "g"), ",").replace(/\s+([,.;:!?])/g, "$1");
|
|
319
320
|
}
|
|
320
321
|
/**
|
|
321
322
|
* Prepare assistant text for speech synthesis without changing the chat transcript.
|
|
@@ -6855,7 +6856,7 @@ var api_key_default = "/*\r\n * API key input row: the input, the whale mascot a
|
|
|
6855
6856
|
|
|
6856
6857
|
//#endregion
|
|
6857
6858
|
//#region src/client/style/card.css?raw
|
|
6858
|
-
var card_default = "/*\r\n * Settings card shell: collapsible header, title, description, chevron, pending badge, body.\r\n */\r\n\r\n.xmimo-tts-card {\r\n list-style: none;\r\n border
|
|
6859
|
+
var card_default = "/*\r\n * Settings card shell: collapsible header, title, description, chevron, pending badge, body.\r\n */\r\n\r\n.xmimo-tts-card {\r\n list-style: none;\r\n border-radius: 12px;\r\n color: var(--xmimo-ui-text);\r\n overflow: hidden;\r\n transition: border-color 160ms ease, background 160ms ease\r\n}\r\n\r\n.xmimo-tts-card:hover {\r\n /* border-color: var(--dsw-alias-label-dimmed, #c8ccd4) */\r\n}\r\n\r\n.xmimo-tts-card-open {\r\n /* background: var(--dsw-alias-bg-layer-2, #f7f8fa); */\r\n /* border-color: var(--dsw-alias-label-dimmed, #c8ccd4) */\r\n}\r\n\r\n.xmimo-tts-card-header {\r\n appearance: none;\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n justify-content: space-between;\r\n gap: 12px;\r\n padding: 14px 16px;\r\n border: 0;\r\n border-radius: 12px;\r\n color: inherit;\r\n text-align: left;\r\n background: transparent;\r\n font: inherit;\r\n cursor: pointer\r\n}\r\n\r\n.xmimo-tts-card-header:focus-visible {\r\n outline: var(--xmimo-ui-focus);\r\n outline-offset: -2px\r\n}\r\n\r\n.xmimo-tts-card-head-text {\r\n display: flex;\r\n min-width: 0;\r\n flex: 1;\r\n flex-direction: column;\r\n gap: 4px\r\n}\r\n\r\n.xmimo-tts-card-title {\r\n font-size: 15px;\r\n font-weight: 600\r\n}\r\n\r\n.xmimo-tts-api-key-logo {\r\n display: block;\r\n width: 88px;\r\n height: 12px;\r\n max-width: 100%;\r\n color: var(--dsw-alias-label-primary, #1f2328);\r\n background-color: currentColor;\r\n -webkit-mask: var(--xmimo-tts-api-key-logo-image) center / 100% 100% no-repeat;\r\n mask: var(--xmimo-tts-api-key-logo-image) center / 100% 100% no-repeat;\r\n}\r\n\r\n.xmimo-tts-card-description {\r\n color: var(--xmimo-ui-text-subtle);\r\n font-size: 13px;\r\n line-height: 18px\r\n}\r\n\r\n.xmimo-tts-chevron {\r\n flex: none;\r\n color: var(--xmimo-ui-text-subtle);\r\n transition: transform 160ms ease\r\n}\r\n\r\n.xmimo-tts-chevron-open {\r\n transform: rotate(180deg)\r\n}\r\n\r\n.xmimo-tts-pending {\r\n flex: none;\r\n border-radius: 999px;\r\n padding: 1px 8px;\r\n color: var(--xmimo-ui-text-muted);\r\n background: var(--xmimo-ui-chip-surface);\r\n font-size: 11px;\r\n font-weight: 500;\r\n line-height: 17px\r\n}\r\n\r\n.xmimo-tts-card-body {\r\n margin: var(--xmimo-ui-space-1) 0;\r\n}\r\n";
|
|
6859
6860
|
|
|
6860
6861
|
//#endregion
|
|
6861
6862
|
//#region src/client/style/fields.css?raw
|
|
@@ -6867,7 +6868,7 @@ var voice_default = "/*\r\n * Voice pickers: custom voice trigger, builtin voice
|
|
|
6867
6868
|
|
|
6868
6869
|
//#endregion
|
|
6869
6870
|
//#region src/client/style/card-actions.css?raw
|
|
6870
|
-
var card_actions_default = "/*\r\n * Settings card action bar: update, star, discard, and save.\r\n */\r\n\r\n.xmimo-tts-card-actions {\r\n display: flex;\r\n align-items: center;\r\n justify-content: flex-end;\r\n gap: 10px;\r\n padding-top: 12px
|
|
6871
|
+
var card_actions_default = "/*\r\n * Settings card action bar: update, star, discard, and save.\r\n */\r\n\r\n.xmimo-tts-card-actions {\r\n display: flex;\r\n align-items: center;\r\n justify-content: flex-end;\r\n gap: 10px;\r\n /* padding-top: 12px; */\r\n /* border-top: 1px solid var(--xmimo-ui-border-soft); */\r\n font-size: 12px;\r\n color: var(--xmimo-ui-text-subtle)\r\n}\r\n\r\n.xmimo-tts-card-actions button {\r\n cursor: pointer;\r\n font: inherit\r\n}\r\n\r\n.xmimo-tts-card-actions .xmimo-tts-update {\r\n display: inline-flex;\r\n align-items: center;\r\n border: 1px solid var(--dsw-alias-brand-primary, #4f6ef7);\r\n border-radius: 8px;\r\n padding: 5px 14px;\r\n color: var(--dsw-alias-brand-primary, #4f6ef7);\r\n background: transparent;\r\n text-decoration: none\r\n}\r\n\r\n.xmimo-tts-card-actions .xmimo-tts-update:hover {\r\n filter: brightness(1.08)\r\n}\r\n\r\n.xmimo-tts-card-actions .xmimo-tts-star {\r\n margin-right: auto;\r\n border-color: transparent;\r\n color: var(--dsw-alias-brand-primary, #4f6ef7);\r\n background: transparent;\r\n font-weight: 500\r\n}\r\n\r\n.xmimo-tts-card-actions .xmimo-tts-star:hover {\r\n text-decoration: underline\r\n}\r\n";
|
|
6871
6872
|
|
|
6872
6873
|
//#endregion
|
|
6873
6874
|
//#region src/client/style/character.css?raw
|
|
@@ -6911,7 +6912,7 @@ var global_default = "/*\r\n * Project-wide UI system for the Xiaomi MiMo settin
|
|
|
6911
6912
|
|
|
6912
6913
|
//#endregion
|
|
6913
6914
|
//#region src/client/style/minimal.css?raw
|
|
6914
|
-
var minimal_default = ".xmimo-tts-preview-simple-button {\r\n min-height: 30px;\r\n border: 1px solid var(--xmimo-ui-border);\r\n border-radius: 7px;\r\n padding: 4px 10px;\r\n color: var(--xmimo-ui-text);\r\n background: var(--xmimo-ui-control-surface);\r\n font: inherit;\r\n cursor: pointer;\r\n}\r\n\r\n.xmimo-tts-preview-simple-button:hover:not(:disabled) {\r\n border-color: var(--xmimo-ui-brand);\r\n}\r\n\r\n.xmimo-tts-preview-simple-button:focus-visible {\r\n outline: var(--xmimo-ui-focus);\r\n outline-offset: 1px;\r\n}\r\n\r\n.xmimo-tts-switch-module-minimal {\r\n padding: var(--xmimo-ui-space-3);\r\n}\r\n\r\n.xmimo-tts-card-minimal {\r\n --xmimo-ui-module-gap: 5px;\r\n --xmimo-ui-module-padding: 8px;\r\n --xmimo-ui-control-height: 30px;\r\n --xmimo-ui-mascot-size: 0px;\r\n border-color: transparent;\r\n background: var(--dsw-alias-bg-layer-2, #fff);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-ui-module {\r\n border-color: transparent;\r\n background: transparent;\r\n}\r\n\r\n.xmimo-tts-card-minimal\r\n .xmimo-ui-module\r\n input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"range\"]) {\r\n border-radius: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key .xmimo-ui-module-header {\r\n display: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-switch-row {\r\n gap: 6px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal {\r\n height: 24px;\r\n flex: 1 1 auto;\r\n overflow: visible;\r\n border-radius: 0;\r\n background: transparent;\r\n --energy-color: var(--xmimo-ui-text);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before,\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\r\n position: absolute;\r\n top: 50%;\r\n left: 0;\r\n display: block;\r\n height: 4px;\r\n border-radius: 999px;\r\n content: \"\";\r\n pointer-events: none;\r\n transform: translateY(-50%);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before {\r\n right: 0;\r\n background: var(--xmimo-ui-border);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\r\n width: var(--volume);\r\n background: var(--xmimo-ui-text);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-fill,\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-dots {\r\n display: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input[type=\"range\"] {\r\n z-index: 1;\r\n height: 32px;\r\n top: -4px;\r\n padding: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal\r\n .xmimo-tts-energy-minimal\r\n input::-webkit-slider-runnable-track,\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-track {\r\n height: 24px;\r\n background: transparent;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-webkit-slider-thumb {\r\n width: 12px;\r\n height: 12px;\r\n border: 0;\r\n background: transparent;\r\n animation: none;\r\n box-shadow: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-thumb {\r\n width: 12px;\r\n height: 12px;\r\n border: 0;\r\n background: transparent;\r\n animation: none;\r\n box-shadow: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input:focus-visible {\r\n outline: 2px solid color-mix(in srgb, var(--xmimo-ui-brand) 55%, transparent);\r\n outline-offset: 2px;\r\n}\r\n\r\n.xmimo-tts-minimal-toggle {\r\n display: flex;\r\n min-width: 0;\r\n align-items: center;\r\n justify-content: space-between;\r\n gap: 8px;\r\n padding: 0 8px;\r\n color: var(--xmimo-ui-text);\r\n cursor: pointer;\r\n}\r\n\r\n.xmimo-tts-minimal-toggle-label {\r\n min-width: 0;\r\n overflow: hidden;\r\n font-size: 12px;\r\n font-weight: 600;\r\n line-height: 16px;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-minimal-toggle:has([disabled]) {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-ui-module-heading > strong {\r\n position: absolute;\r\n width: 1px;\r\n height: 1px;\r\n overflow: hidden;\r\n clip: rect(0, 0, 0, 0);\r\n clip-path: inset(50%);\r\n white-space: nowrap;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-field-badges {\r\n display: none !important;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-volume {\r\n align-items: center;\r\n flex-direction: row;\r\n gap: 6px;\r\n}\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-volume {\r\n width: 50%;\r\n align-items: center;\r\n flex-direction: row;\r\n gap: 6px;\r\n}\r\n\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input {\r\n align-items: center;\r\n gap: 8px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input {\r\n border: 0;\r\n border-bottom: 1px solid var(--xmimo-ui-border);\r\n border-radius: 0;\r\n padding-right: 0;\r\n padding-left: 0;\r\n background: transparent;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:hover:not(:disabled) {\r\n border-bottom-color: var(--xmimo-ui-text-subtle);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:focus-visible {\r\n border-bottom-color: var(--xmimo-ui-brand);\r\n outline: none;\r\n box-shadow: 0 1px 0 var(--xmimo-ui-brand);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-inline-actions {\r\n display: flex;\r\n flex: none;\r\n align-items: center;\r\n gap: 8px;\r\n font-size: 11px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-inline-actions .xmimo-tts-reset {\r\n font-size: 11px;\r\n}\r\n\r\n.xmimo-tts-card-minimal\r\n .xmimo-tts-api-key-inline-actions\r\n .xmimo-tts-api-key-link,\r\n.xmimo-tts-card-minimal .xmimo-tts-mixer-preview-button,\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-whale-button {\r\n box-sizing: border-box;\r\n display: inline-flex;\r\n width: 88px;\r\n min-width: 88px;\r\n flex: 0 0 88px;\r\n align-items: center;\r\n justify-content: center;\r\n text-align: center;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-text-caret {\r\n flex: none;\r\n color: var(--xmimo-ui-text-muted);\r\n font-size: 18px;\r\n line-height: 1;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-details-body {\r\n grid-template-columns: repeat(2, minmax(0, 1fr));\r\n column-gap: 12px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-details-body > :nth-child(n + 3) {\r\n grid-column: 1 / -1;\r\n}\r\n\r\n.xmimo-tts-card-minimal\r\n .xmimo-tts-details-body\r\n > :not(.xmimo-tts-volume)\r\n > .xmimo-tts-field-heading {\r\n position: absolute;\r\n width: 1px;\r\n height: 1px;\r\n overflow: hidden;\r\n clip: rect(0, 0, 0, 0);\r\n clip-path: inset(50%);\r\n white-space: nowrap;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-details .xmimo-ui-module-header {\r\n display: flex;\r\n align-items: flex-end;\r\n gap: 6px;\r\n padding: 5px 8px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-details .xmimo-tts-details-toggle {\r\n min-width: 0;\r\n min-height: 0;\r\n flex: 1 1 auto;\r\n padding: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-details .xmimo-ui-module-decoration {\r\n flex: none;\r\n}\r\n\r\n.xmimo-tts-mixer-preview-button {\r\n min-height: 28px;\r\n border: 1px solid var(--xmimo-ui-border);\r\n border-radius: 6px;\r\n padding: 4px 8px;\r\n color: var(--xmimo-ui-text);\r\n background: var(--xmimo-ui-control-surface);\r\n font: inherit;\r\n font-size: 11px;\r\n cursor: pointer;\r\n}\r\n\r\n.xmimo-tts-mixer-preview-button:hover {\r\n border-color: var(--xmimo-ui-brand);\r\n}\r\n\r\n.xmimo-tts-mixer-preview-button:focus-visible {\r\n outline: var(--xmimo-ui-focus);\r\n outline-offset: 1px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-menu,\r\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-menu {\r\n grid-template-columns: repeat(4, minmax(0, 1fr));\r\n background: none;\r\n box-shadow: none;\r\n gap: 6px;\r\n padding: 6px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option {\r\n min-width: 0;\r\n min-height: 42px;\r\n padding: 6px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy,\r\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy {\r\n align-items: baseline;\r\n flex-direction: row;\r\n gap: 6px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > strong,\r\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > strong {\r\n min-width: 0;\r\n flex: 0 1 auto;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > small,\r\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > small {\r\n min-width: 0;\r\n flex: 1 1 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option-custom {\r\n grid-column: auto;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-preview-title {\r\n padding-right: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-visually-hidden {\r\n position: absolute;\r\n width: 1px;\r\n height: 1px;\r\n overflow: hidden;\r\n clip: rect(0, 0, 0, 0);\r\n white-space: nowrap;\r\n clip-path: inset(50%);\r\n}\r\n\r\n.xmimo-tts-card-minimal\r\n .xmimo-tts-api-key-input:focus-within\r\n + .xmimo-tts-api-key-message {\r\n position: static;\r\n width: auto;\r\n height: auto;\r\n overflow: visible;\r\n clip: auto;\r\n clip-path: none;\r\n white-space: normal;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-message.xmimo-tts-api-key-warning {\r\n position: static;\r\n width: auto;\r\n height: auto;\r\n overflow: visible;\r\n clip: auto;\r\n clip-path: none;\r\n white-space: normal;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-preview-simple-button {\r\n position: static;\r\n flex: none;\r\n width: auto;\r\n height: auto;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-preview-input {\r\n display: flex;\r\n align-items: center;\r\n gap: 6px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-preview-input > textarea {\r\n order: 1;\r\n min-width: 0;\r\n flex: 1 1 auto;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-preview-simple-button {\r\n order: 2;\r\n padding-inline: 8px;\r\n font-size: 11px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-preview-simple-button:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-whale-button {\r\n min-height: 28px;\r\n position: static;\r\n display: inline-flex;\r\n width: 88px;\r\n min-width: 88px;\r\n flex: 0 0 88px;\r\n height: auto;\r\n border: 1px solid var(--xmimo-ui-border);\r\n border-radius: 7px;\r\n padding: 4px 8px;\r\n background: var(--xmimo-ui-control-surface);\r\n align-items: center;\r\n justify-content: center;\r\n text-align: center;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-effects .xmimo-ui-module-header {\r\n display: flex;\r\n align-items: center;\r\n gap: 6px;\r\n padding: 5px 8px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-effects .xmimo-tts-sound-toggle {\r\n min-width: 0;\r\n min-height: 0;\r\n flex: 1 1 auto;\r\n padding: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-effects .xmimo-ui-module-decoration {\r\n flex: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-mode-label {\r\n display: block;\r\n position: static;\r\n color: var(--xmimo-ui-text-muted);\r\n font-size: 11px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-toggle {\r\n min-height: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-heading > small {\r\n padding-right: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-body {\r\n gap: 8px;\r\n padding: 0 10px 10px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-grid {\r\n grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));\r\n gap: 4px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option {\r\n min-height: 28px;\r\n border-radius: 7px;\r\n padding: 4px 20px 4px 8px;\r\n font-size: 11px;\r\n line-height: 16px;\r\n transition:\r\n border-color 140ms ease,\r\n background 140ms ease;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::before {\r\n inset: 5px auto 5px 0;\r\n width: 2px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::after {\r\n right: 5px;\r\n width: 13px;\r\n height: 13px;\r\n font-size: 9px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:hover:not(:disabled),\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:active:not(:disabled) {\r\n transform: none;\r\n box-shadow: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option-selected {\r\n box-shadow: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-wave {\r\n display: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-previews button {\r\n min-height: 28px;\r\n padding: 5px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-ui-module-padded {\r\n padding: 8px !important;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-ui-summary {\r\n min-height: 28px;\r\n gap: 4px;\r\n padding-block: 3px;\r\n border-radius: 0;\r\n border: 0;\r\n border-bottom: 1px solid var(--xmimo-ui-border);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-grid > * {\r\n padding-block: 4px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-card-actions {\r\n flex-wrap: wrap;\r\n gap: 6px;\r\n padding-top: 8px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-card-actions button,\r\n.xmimo-tts-card-minimal .xmimo-tts-card-actions .xmimo-tts-mode-toggle {\r\n min-height: 30px;\r\n border-radius: 8px;\r\n padding: 5px 10px;\r\n}\r\n\r\n@media (max-width: 520px) {\r\n .xmimo-tts-card-minimal .xmimo-tts-switch-row {\r\n gap: 5px;\r\n }\r\n\r\n .xmimo-tts-card-minimal .xmimo-tts-character-copy strong {\r\n font-size: 12px;\r\n }\r\n}\r\n";
|
|
6915
|
+
var minimal_default = ".xmimo-tts-preview-simple-button {\r\n min-height: 30px;\r\n border: 1px solid var(--xmimo-ui-border);\r\n border-radius: 7px;\r\n padding: 4px 10px;\r\n color: var(--xmimo-ui-text);\r\n background: var(--xmimo-ui-control-surface);\r\n font: inherit;\r\n cursor: pointer;\r\n}\r\n\r\n.xmimo-tts-preview-simple-button:hover:not(:disabled) {\r\n border-color: var(--xmimo-ui-brand);\r\n}\r\n\r\n.xmimo-tts-preview-simple-button:focus-visible {\r\n outline: var(--xmimo-ui-focus);\r\n outline-offset: 1px;\r\n}\r\n\r\n.xmimo-tts-switch-module-minimal {\r\n padding: var(--xmimo-ui-space-3);\r\n}\r\n\r\n.xmimo-tts-card-minimal {\r\n --xmimo-ui-module-gap: 5px;\r\n --xmimo-ui-module-padding: 8px;\r\n --xmimo-ui-control-height: 30px;\r\n --xmimo-ui-mascot-size: 0px;\r\n border-color: transparent;\r\n background: var(--xmimo-ui-surface, #fff);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-ui-module {\r\n border-color: transparent;\r\n background: transparent;\r\n}\r\n\r\n.xmimo-tts-card-minimal\r\n .xmimo-ui-module\r\n input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"range\"]) {\r\n border-radius: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key .xmimo-ui-module-header {\r\n display: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-switch-row {\r\n gap: 6px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal {\r\n height: 24px;\r\n flex: 1 1 auto;\r\n overflow: visible;\r\n border-radius: 0;\r\n background: transparent;\r\n --energy-color: var(--xmimo-ui-text);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before,\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\r\n position: absolute;\r\n top: 50%;\r\n left: 0;\r\n display: block;\r\n height: 4px;\r\n border-radius: 999px;\r\n content: \"\";\r\n pointer-events: none;\r\n transform: translateY(-50%);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before {\r\n right: 0;\r\n background: var(--xmimo-ui-border);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\r\n width: var(--volume);\r\n background: var(--xmimo-ui-text);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-fill,\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-dots {\r\n display: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input[type=\"range\"] {\r\n z-index: 1;\r\n height: 32px;\r\n top: -4px;\r\n padding: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal\r\n .xmimo-tts-energy-minimal\r\n input::-webkit-slider-runnable-track,\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-track {\r\n height: 24px;\r\n background: transparent;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-webkit-slider-thumb {\r\n width: 12px;\r\n height: 12px;\r\n border: 0;\r\n background: transparent;\r\n animation: none;\r\n box-shadow: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-thumb {\r\n width: 12px;\r\n height: 12px;\r\n border: 0;\r\n background: transparent;\r\n animation: none;\r\n box-shadow: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input:focus-visible {\r\n outline: 2px solid color-mix(in srgb, var(--xmimo-ui-brand) 55%, transparent);\r\n outline-offset: 2px;\r\n}\r\n\r\n.xmimo-tts-minimal-toggle {\r\n display: flex;\r\n min-width: 0;\r\n align-items: center;\r\n justify-content: space-between;\r\n gap: 8px;\r\n padding: 0 8px;\r\n color: var(--xmimo-ui-text);\r\n cursor: pointer;\r\n}\r\n\r\n.xmimo-tts-minimal-toggle-label {\r\n min-width: 0;\r\n overflow: hidden;\r\n font-size: 12px;\r\n font-weight: 600;\r\n line-height: 16px;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-minimal-toggle:has([disabled]) {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-ui-module-heading > strong {\r\n position: absolute;\r\n width: 1px;\r\n height: 1px;\r\n overflow: hidden;\r\n clip: rect(0, 0, 0, 0);\r\n clip-path: inset(50%);\r\n white-space: nowrap;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-field-badges {\r\n display: none !important;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-volume {\r\n align-items: center;\r\n flex-direction: row;\r\n gap: 6px;\r\n}\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-volume {\r\n width: 50%;\r\n align-items: center;\r\n flex-direction: row;\r\n gap: 6px;\r\n}\r\n\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input {\r\n align-items: center;\r\n gap: 8px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input {\r\n border: 0;\r\n border-bottom: 1px solid var(--xmimo-ui-border);\r\n border-radius: 0;\r\n padding-right: 0;\r\n padding-left: 0;\r\n background: transparent;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:hover:not(:disabled) {\r\n border-bottom-color: var(--xmimo-ui-text-subtle);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:focus-visible {\r\n border-bottom-color: var(--xmimo-ui-brand);\r\n outline: none;\r\n box-shadow: 0 1px 0 var(--xmimo-ui-brand);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-inline-actions {\r\n display: flex;\r\n flex: none;\r\n align-items: center;\r\n gap: 8px;\r\n font-size: 11px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-inline-actions .xmimo-tts-reset {\r\n font-size: 11px;\r\n}\r\n\r\n.xmimo-tts-card-minimal\r\n .xmimo-tts-api-key-inline-actions\r\n .xmimo-tts-api-key-link,\r\n.xmimo-tts-card-minimal .xmimo-tts-mixer-preview-button,\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-whale-button {\r\n box-sizing: border-box;\r\n display: inline-flex;\r\n width: 88px;\r\n min-width: 88px;\r\n flex: 0 0 88px;\r\n align-items: center;\r\n justify-content: center;\r\n text-align: center;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-text-caret {\r\n flex: none;\r\n color: var(--xmimo-ui-text-muted);\r\n font-size: 18px;\r\n line-height: 1;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-details-body {\r\n grid-template-columns: repeat(2, minmax(0, 1fr));\r\n column-gap: 12px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-details-body > :nth-child(n + 3) {\r\n grid-column: 1 / -1;\r\n}\r\n\r\n.xmimo-tts-card-minimal\r\n .xmimo-tts-details-body\r\n > :not(.xmimo-tts-volume)\r\n > .xmimo-tts-field-heading {\r\n position: absolute;\r\n width: 1px;\r\n height: 1px;\r\n overflow: hidden;\r\n clip: rect(0, 0, 0, 0);\r\n clip-path: inset(50%);\r\n white-space: nowrap;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-details .xmimo-ui-module-header {\r\n display: flex;\r\n align-items: flex-end;\r\n gap: 6px;\r\n padding: 5px 8px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-details .xmimo-tts-details-toggle {\r\n min-width: 0;\r\n min-height: 0;\r\n flex: 1 1 auto;\r\n padding: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-details .xmimo-ui-module-decoration {\r\n flex: none;\r\n}\r\n\r\n.xmimo-tts-mixer-preview-button {\r\n min-height: 28px;\r\n border: 1px solid var(--xmimo-ui-border);\r\n border-radius: 6px;\r\n padding: 4px 8px;\r\n color: var(--xmimo-ui-text);\r\n background: var(--xmimo-ui-control-surface);\r\n font: inherit;\r\n font-size: 11px;\r\n cursor: pointer;\r\n}\r\n\r\n.xmimo-tts-mixer-preview-button:hover {\r\n border-color: var(--xmimo-ui-brand);\r\n}\r\n\r\n.xmimo-tts-mixer-preview-button:focus-visible {\r\n outline: var(--xmimo-ui-focus);\r\n outline-offset: 1px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-menu,\r\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-menu {\r\n grid-template-columns: repeat(4, minmax(0, 1fr));\r\n background: none;\r\n box-shadow: none;\r\n gap: 6px;\r\n padding: 6px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option {\r\n min-width: 0;\r\n min-height: 42px;\r\n padding: 6px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy,\r\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy {\r\n align-items: baseline;\r\n flex-direction: row;\r\n gap: 6px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > strong,\r\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > strong {\r\n min-width: 0;\r\n flex: 0 1 auto;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > small,\r\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > small {\r\n min-width: 0;\r\n flex: 1 1 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option-custom {\r\n grid-column: auto;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-preview-title {\r\n padding-right: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-visually-hidden {\r\n position: absolute;\r\n width: 1px;\r\n height: 1px;\r\n overflow: hidden;\r\n clip: rect(0, 0, 0, 0);\r\n white-space: nowrap;\r\n clip-path: inset(50%);\r\n}\r\n\r\n.xmimo-tts-card-minimal\r\n .xmimo-tts-api-key-input:focus-within\r\n + .xmimo-tts-api-key-message {\r\n position: static;\r\n width: auto;\r\n height: auto;\r\n overflow: visible;\r\n clip: auto;\r\n clip-path: none;\r\n white-space: normal;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-api-key-message.xmimo-tts-api-key-warning {\r\n position: static;\r\n width: auto;\r\n height: auto;\r\n overflow: visible;\r\n clip: auto;\r\n clip-path: none;\r\n white-space: normal;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-preview-simple-button {\r\n position: static;\r\n flex: none;\r\n width: auto;\r\n height: auto;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-preview-input {\r\n display: flex;\r\n align-items: center;\r\n gap: 6px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-preview-input > textarea {\r\n order: 1;\r\n min-width: 0;\r\n flex: 1 1 auto;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-preview-simple-button {\r\n order: 2;\r\n padding-inline: 8px;\r\n font-size: 11px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-preview-simple-button:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-whale-button {\r\n min-height: 28px;\r\n position: static;\r\n display: inline-flex;\r\n width: 88px;\r\n min-width: 88px;\r\n flex: 0 0 88px;\r\n height: auto;\r\n border: 1px solid var(--xmimo-ui-border);\r\n border-radius: 6px;\r\n padding: 4px 8px;\r\n background: var(--xmimo-ui-control-surface);\r\n align-items: center;\r\n justify-content: center;\r\n text-align: center;\r\n color: var(--xmimo-ui-text);\r\n font: inherit;\r\n font-size: 11px;\r\n cursor: pointer;\r\n}\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-whale-button:hover {\r\n border-color: var(--xmimo-ui-brand);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-whale-button:focus-visible {\r\n outline: var(--xmimo-ui-focus);\r\n outline-offset: 1px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-effects .xmimo-ui-module-header {\r\n display: flex;\r\n align-items: center;\r\n gap: 6px;\r\n padding: 5px 8px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-effects .xmimo-tts-sound-toggle {\r\n min-width: 0;\r\n min-height: 0;\r\n flex: 1 1 auto;\r\n padding: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-effects .xmimo-ui-module-decoration {\r\n flex: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-mode-label {\r\n display: block;\r\n position: static;\r\n color: var(--xmimo-ui-text);\r\n font-size: 11px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-toggle {\r\n min-height: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-heading > small {\r\n padding-right: 0;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-body {\r\n gap: 8px;\r\n padding: 0 10px 10px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-grid {\r\n grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));\r\n gap: 4px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option {\r\n min-height: 28px;\r\n border-radius: 7px;\r\n padding: 4px 20px 4px 8px;\r\n font-size: 11px;\r\n line-height: 16px;\r\n transition:\r\n border-color 140ms ease,\r\n background 140ms ease;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::before {\r\n inset: 5px auto 5px 0;\r\n width: 2px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::after {\r\n right: 5px;\r\n width: 13px;\r\n height: 13px;\r\n font-size: 9px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:hover:not(:disabled),\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:active:not(:disabled) {\r\n transform: none;\r\n box-shadow: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option-selected {\r\n box-shadow: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-wave {\r\n display: none;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-sound-previews button {\r\n min-height: 28px;\r\n padding: 5px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-ui-module-padded {\r\n padding: 8px !important;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-ui-summary {\r\n min-height: 28px;\r\n gap: 4px;\r\n padding-block: 3px;\r\n border-radius: 0;\r\n border: 0;\r\n border-bottom: 1px solid var(--xmimo-ui-border);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-grid > * {\r\n padding-block: 4px;\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-card-actions {\r\n flex-wrap: wrap;\r\n gap: 6px;\r\n padding: 0 var(--xmimo-ui-space-3) var(--xmimo-ui-space-3);\r\n}\r\n\r\n.xmimo-tts-card-minimal .xmimo-tts-card-actions button,\r\n.xmimo-tts-card-minimal .xmimo-tts-card-actions .xmimo-tts-mode-toggle {\r\n min-height: 30px;\r\n border-radius: 8px;\r\n padding: 5px 10px;\r\n}\r\n\r\n@media (max-width: 520px) {\r\n .xmimo-tts-card-minimal .xmimo-tts-switch-row {\r\n gap: 5px;\r\n }\r\n\r\n .xmimo-tts-card-minimal .xmimo-tts-character-copy strong {\r\n font-size: 12px;\r\n }\r\n}\r\n";
|
|
6915
6916
|
|
|
6916
6917
|
//#endregion
|
|
6917
6918
|
//#region src/client/style/index.ts
|