openspeechapi 0.1.0__py3-none-any.whl
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.
- openspeech/__init__.py +75 -0
- openspeech/__main__.py +5 -0
- openspeech/cli.py +413 -0
- openspeech/client/__init__.py +4 -0
- openspeech/client/client.py +145 -0
- openspeech/config.py +212 -0
- openspeech/core/__init__.py +0 -0
- openspeech/core/base.py +75 -0
- openspeech/core/enums.py +39 -0
- openspeech/core/models.py +61 -0
- openspeech/core/registry.py +37 -0
- openspeech/core/settings.py +8 -0
- openspeech/demo.py +675 -0
- openspeech/dispatch/__init__.py +0 -0
- openspeech/dispatch/context.py +34 -0
- openspeech/dispatch/dispatcher.py +661 -0
- openspeech/dispatch/executors/__init__.py +0 -0
- openspeech/dispatch/executors/base.py +34 -0
- openspeech/dispatch/executors/in_process.py +66 -0
- openspeech/dispatch/executors/remote.py +64 -0
- openspeech/dispatch/executors/subprocess_exec.py +446 -0
- openspeech/dispatch/fanout.py +95 -0
- openspeech/dispatch/filters.py +73 -0
- openspeech/dispatch/lifecycle.py +178 -0
- openspeech/dispatch/watcher.py +82 -0
- openspeech/engine_catalog.py +236 -0
- openspeech/engine_registry.yaml +347 -0
- openspeech/exceptions.py +51 -0
- openspeech/factory.py +325 -0
- openspeech/local_engines/__init__.py +12 -0
- openspeech/local_engines/aim_resolver.py +91 -0
- openspeech/local_engines/backends/__init__.py +1 -0
- openspeech/local_engines/backends/docker_backend.py +490 -0
- openspeech/local_engines/backends/native_backend.py +902 -0
- openspeech/local_engines/base.py +30 -0
- openspeech/local_engines/engines/__init__.py +1 -0
- openspeech/local_engines/engines/faster_whisper.py +36 -0
- openspeech/local_engines/engines/fish_speech.py +33 -0
- openspeech/local_engines/engines/sherpa_onnx.py +56 -0
- openspeech/local_engines/engines/whisper.py +41 -0
- openspeech/local_engines/engines/whisperlivekit.py +60 -0
- openspeech/local_engines/manager.py +208 -0
- openspeech/local_engines/models.py +50 -0
- openspeech/local_engines/progress.py +69 -0
- openspeech/local_engines/registry.py +19 -0
- openspeech/local_engines/task_store.py +52 -0
- openspeech/local_engines/tasks.py +71 -0
- openspeech/logging_config.py +607 -0
- openspeech/observe/__init__.py +0 -0
- openspeech/observe/base.py +79 -0
- openspeech/observe/debug.py +44 -0
- openspeech/observe/latency.py +19 -0
- openspeech/observe/metrics.py +47 -0
- openspeech/observe/tracing.py +44 -0
- openspeech/observe/usage.py +27 -0
- openspeech/providers/__init__.py +0 -0
- openspeech/providers/_template.py +101 -0
- openspeech/providers/stt/__init__.py +0 -0
- openspeech/providers/stt/alibaba.py +86 -0
- openspeech/providers/stt/assemblyai.py +135 -0
- openspeech/providers/stt/azure_speech.py +99 -0
- openspeech/providers/stt/baidu.py +135 -0
- openspeech/providers/stt/deepgram.py +311 -0
- openspeech/providers/stt/elevenlabs.py +385 -0
- openspeech/providers/stt/faster_whisper.py +211 -0
- openspeech/providers/stt/google_cloud.py +106 -0
- openspeech/providers/stt/iflytek.py +427 -0
- openspeech/providers/stt/macos_speech.py +226 -0
- openspeech/providers/stt/openai.py +84 -0
- openspeech/providers/stt/sherpa_onnx.py +353 -0
- openspeech/providers/stt/tencent.py +212 -0
- openspeech/providers/stt/volcengine.py +107 -0
- openspeech/providers/stt/whisper.py +153 -0
- openspeech/providers/stt/whisperlivekit.py +530 -0
- openspeech/providers/stt/windows_speech.py +249 -0
- openspeech/providers/tts/__init__.py +0 -0
- openspeech/providers/tts/alibaba.py +95 -0
- openspeech/providers/tts/azure_speech.py +123 -0
- openspeech/providers/tts/baidu.py +143 -0
- openspeech/providers/tts/coqui.py +64 -0
- openspeech/providers/tts/cosyvoice.py +90 -0
- openspeech/providers/tts/deepgram.py +174 -0
- openspeech/providers/tts/elevenlabs.py +311 -0
- openspeech/providers/tts/fish_speech.py +158 -0
- openspeech/providers/tts/google_cloud.py +107 -0
- openspeech/providers/tts/iflytek.py +209 -0
- openspeech/providers/tts/macos_say.py +251 -0
- openspeech/providers/tts/minimax.py +122 -0
- openspeech/providers/tts/openai.py +104 -0
- openspeech/providers/tts/piper.py +104 -0
- openspeech/providers/tts/tencent.py +189 -0
- openspeech/providers/tts/volcengine.py +117 -0
- openspeech/providers/tts/windows_sapi.py +234 -0
- openspeech/server/__init__.py +1 -0
- openspeech/server/app.py +72 -0
- openspeech/server/auth.py +42 -0
- openspeech/server/middleware.py +75 -0
- openspeech/server/routes/__init__.py +1 -0
- openspeech/server/routes/management.py +848 -0
- openspeech/server/routes/stt.py +121 -0
- openspeech/server/routes/tts.py +159 -0
- openspeech/server/routes/webui.py +29 -0
- openspeech/server/webui/app.js +2649 -0
- openspeech/server/webui/index.html +216 -0
- openspeech/server/webui/styles.css +617 -0
- openspeech/server/ws/__init__.py +1 -0
- openspeech/server/ws/stt_stream.py +263 -0
- openspeech/server/ws/tts_stream.py +207 -0
- openspeech/telemetry/__init__.py +21 -0
- openspeech/telemetry/perf.py +307 -0
- openspeech/utils/__init__.py +5 -0
- openspeech/utils/audio_converter.py +406 -0
- openspeech/utils/audio_playback.py +156 -0
- openspeech/vendor_registry.yaml +74 -0
- openspeechapi-0.1.0.dist-info/METADATA +101 -0
- openspeechapi-0.1.0.dist-info/RECORD +118 -0
- openspeechapi-0.1.0.dist-info/WHEEL +4 -0
- openspeechapi-0.1.0.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1,617 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--bg-1: #f6f4ef;
|
|
3
|
+
--bg-2: #ece8de;
|
|
4
|
+
--ink: #1f2a1f;
|
|
5
|
+
--ink-soft: #4f5b4f;
|
|
6
|
+
--card: rgba(255, 255, 255, 0.74);
|
|
7
|
+
--line: rgba(31, 42, 31, 0.16);
|
|
8
|
+
--accent: #0d7c5a;
|
|
9
|
+
--danger: #b0352f;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
* {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
margin: 0;
|
|
18
|
+
font-family: "Space Grotesk", sans-serif;
|
|
19
|
+
color: var(--ink);
|
|
20
|
+
background: radial-gradient(circle at 20% 10%, #d6e9d8 0%, var(--bg-1) 30%),
|
|
21
|
+
linear-gradient(140deg, var(--bg-1), var(--bg-2));
|
|
22
|
+
min-height: 100vh;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.bg-orb {
|
|
26
|
+
position: fixed;
|
|
27
|
+
border-radius: 999px;
|
|
28
|
+
filter: blur(60px);
|
|
29
|
+
z-index: -1;
|
|
30
|
+
opacity: 0.5;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.orb-1 {
|
|
34
|
+
width: 340px;
|
|
35
|
+
height: 340px;
|
|
36
|
+
background: #94d7a1;
|
|
37
|
+
top: -80px;
|
|
38
|
+
right: -90px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.orb-2 {
|
|
42
|
+
width: 300px;
|
|
43
|
+
height: 300px;
|
|
44
|
+
background: #f9c87f;
|
|
45
|
+
bottom: -120px;
|
|
46
|
+
left: -80px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.hero {
|
|
50
|
+
max-width: 1200px;
|
|
51
|
+
margin: 0 auto;
|
|
52
|
+
padding: 2rem 1.2rem 1rem;
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
gap: 1rem;
|
|
56
|
+
align-items: end;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.eyebrow {
|
|
60
|
+
font-family: "IBM Plex Mono", monospace;
|
|
61
|
+
letter-spacing: 0.08em;
|
|
62
|
+
color: var(--ink-soft);
|
|
63
|
+
margin: 0;
|
|
64
|
+
text-transform: uppercase;
|
|
65
|
+
font-size: 0.78rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
h1 {
|
|
69
|
+
margin: 0.3rem 0;
|
|
70
|
+
font-size: clamp(2rem, 4vw, 3rem);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.subtitle {
|
|
74
|
+
margin: 0;
|
|
75
|
+
color: var(--ink-soft);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.layout {
|
|
79
|
+
max-width: 1200px;
|
|
80
|
+
margin: 0 auto;
|
|
81
|
+
padding: 0 1.2rem 2.4rem;
|
|
82
|
+
display: grid;
|
|
83
|
+
gap: 1rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.card {
|
|
87
|
+
background: var(--card);
|
|
88
|
+
backdrop-filter: blur(8px);
|
|
89
|
+
border: 1px solid var(--line);
|
|
90
|
+
border-radius: 20px;
|
|
91
|
+
padding: 1rem;
|
|
92
|
+
box-shadow: 0 14px 40px rgba(31, 42, 31, 0.07);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.card-head {
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: space-between;
|
|
98
|
+
align-items: center;
|
|
99
|
+
margin-bottom: 0.8rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
h2, h3 {
|
|
103
|
+
margin: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.status-dot {
|
|
107
|
+
display: inline-flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
gap: 0.3rem;
|
|
110
|
+
font-family: "IBM Plex Mono", monospace;
|
|
111
|
+
font-size: 0.78rem;
|
|
112
|
+
color: var(--ink-soft);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.stats-grid {
|
|
116
|
+
display: grid;
|
|
117
|
+
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
|
|
118
|
+
gap: 0.7rem;
|
|
119
|
+
margin-bottom: 0.8rem;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.stat {
|
|
123
|
+
border: 1px solid var(--line);
|
|
124
|
+
border-radius: 14px;
|
|
125
|
+
padding: 0.7rem;
|
|
126
|
+
background: rgba(255, 255, 255, 0.7);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.stat p {
|
|
130
|
+
margin: 0;
|
|
131
|
+
font-size: 0.84rem;
|
|
132
|
+
color: var(--ink-soft);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.stat h3 {
|
|
136
|
+
margin-top: 0.2rem;
|
|
137
|
+
font-size: 1.3rem;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.table-wrap {
|
|
141
|
+
width: 100%;
|
|
142
|
+
overflow-x: auto;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
table {
|
|
146
|
+
width: 100%;
|
|
147
|
+
border-collapse: collapse;
|
|
148
|
+
font-size: 0.9rem;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
th, td {
|
|
152
|
+
text-align: left;
|
|
153
|
+
border-bottom: 1px solid var(--line);
|
|
154
|
+
padding: 0.45rem;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.lab-grid {
|
|
158
|
+
display: grid;
|
|
159
|
+
gap: 0.8rem;
|
|
160
|
+
grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Lab stacked layout with collapsible STT/TTS panels */
|
|
164
|
+
.lab-stack {
|
|
165
|
+
display: grid;
|
|
166
|
+
grid-template-columns: 1fr;
|
|
167
|
+
gap: .75rem;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.lab-section {
|
|
171
|
+
border: 1px solid var(--line);
|
|
172
|
+
border-radius: 14px;
|
|
173
|
+
background: rgba(255, 255, 255, .42);
|
|
174
|
+
overflow: hidden;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.lab-section > summary {
|
|
178
|
+
cursor: pointer;
|
|
179
|
+
list-style: none;
|
|
180
|
+
padding: .7rem .9rem;
|
|
181
|
+
font-weight: 700;
|
|
182
|
+
font-size: 1.02rem;
|
|
183
|
+
border-bottom: 1px solid transparent;
|
|
184
|
+
background: rgba(255, 255, 255, .5);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.lab-section > summary::-webkit-details-marker {
|
|
188
|
+
display: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.lab-section[open] > summary {
|
|
192
|
+
border-bottom-color: var(--line);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.lab-section > .panel {
|
|
196
|
+
border: 0;
|
|
197
|
+
border-radius: 0;
|
|
198
|
+
box-shadow: none;
|
|
199
|
+
background: transparent;
|
|
200
|
+
backdrop-filter: none;
|
|
201
|
+
padding-top: .75rem;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.lab-form-row {
|
|
205
|
+
display: grid;
|
|
206
|
+
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
207
|
+
gap: .5rem;
|
|
208
|
+
}
|
|
209
|
+
.lab-field, .lab-field-full { font-size: .88rem; }
|
|
210
|
+
.lab-field-full { grid-column: 1 / -1; }
|
|
211
|
+
|
|
212
|
+
.lab-advanced {
|
|
213
|
+
border: 1px solid var(--line);
|
|
214
|
+
border-radius: 10px;
|
|
215
|
+
padding: .5rem .7rem;
|
|
216
|
+
background: rgba(0,0,0,.02);
|
|
217
|
+
}
|
|
218
|
+
.lab-advanced summary {
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
font-size: .84rem;
|
|
221
|
+
color: var(--ink-soft);
|
|
222
|
+
font-weight: 500;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.lab-action-area {
|
|
226
|
+
display: flex;
|
|
227
|
+
align-items: flex-end;
|
|
228
|
+
gap: .6rem;
|
|
229
|
+
flex-wrap: wrap;
|
|
230
|
+
}
|
|
231
|
+
.lab-action-area .lab-field-full { flex: 1; min-width: 150px; }
|
|
232
|
+
|
|
233
|
+
.btn-lg { padding: .65rem 1.4rem; font-size: .95rem; }
|
|
234
|
+
|
|
235
|
+
.lab-output { margin-top: .3rem; }
|
|
236
|
+
.lab-output h4 { margin: 0 0 .3rem; font-size: .84rem; color: var(--ink-soft); }
|
|
237
|
+
.lab-result {
|
|
238
|
+
min-height: 3rem;
|
|
239
|
+
max-height: 12rem;
|
|
240
|
+
overflow-y: auto;
|
|
241
|
+
}
|
|
242
|
+
.lab-audio {
|
|
243
|
+
width: 100%;
|
|
244
|
+
margin-bottom: .4rem;
|
|
245
|
+
border-radius: 10px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.lab-log-panel {
|
|
249
|
+
margin-top: .6rem;
|
|
250
|
+
border-top: 1px solid var(--line);
|
|
251
|
+
padding-top: .5rem;
|
|
252
|
+
}
|
|
253
|
+
.lab-log-head {
|
|
254
|
+
display: flex;
|
|
255
|
+
align-items: center;
|
|
256
|
+
justify-content: space-between;
|
|
257
|
+
margin-bottom: .3rem;
|
|
258
|
+
}
|
|
259
|
+
.lab-log-actions {
|
|
260
|
+
display: flex;
|
|
261
|
+
align-items: center;
|
|
262
|
+
gap: .5rem;
|
|
263
|
+
}
|
|
264
|
+
.lab-log-verbose {
|
|
265
|
+
font-size: .78rem;
|
|
266
|
+
color: var(--ink-soft);
|
|
267
|
+
cursor: pointer;
|
|
268
|
+
user-select: none;
|
|
269
|
+
display: flex;
|
|
270
|
+
align-items: center;
|
|
271
|
+
gap: .25rem;
|
|
272
|
+
}
|
|
273
|
+
.lab-log-verbose input { margin: 0; cursor: pointer; }
|
|
274
|
+
.lab-log-head h4 {
|
|
275
|
+
margin: 0;
|
|
276
|
+
font-size: .84rem;
|
|
277
|
+
color: var(--ink-soft);
|
|
278
|
+
}
|
|
279
|
+
.lab-log {
|
|
280
|
+
min-height: 4rem;
|
|
281
|
+
max-height: 14rem;
|
|
282
|
+
overflow-y: auto;
|
|
283
|
+
font-size: .75rem;
|
|
284
|
+
line-height: 1.5;
|
|
285
|
+
white-space: pre-wrap;
|
|
286
|
+
word-break: break-word;
|
|
287
|
+
}
|
|
288
|
+
.lab-log .log-ts { color: var(--ink-soft); }
|
|
289
|
+
.lab-log .log-info { color: var(--accent); }
|
|
290
|
+
.lab-log .log-warn { color: #b08c1a; }
|
|
291
|
+
.lab-log .log-err { color: var(--danger); }
|
|
292
|
+
.lab-log .log-data { color: #555; }
|
|
293
|
+
|
|
294
|
+
.panel {
|
|
295
|
+
border: 1px solid var(--line);
|
|
296
|
+
border-radius: 14px;
|
|
297
|
+
padding: 0.9rem;
|
|
298
|
+
display: grid;
|
|
299
|
+
gap: 0.6rem;
|
|
300
|
+
background: rgba(255, 255, 255, 0.66);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
label {
|
|
304
|
+
display: grid;
|
|
305
|
+
gap: 0.3rem;
|
|
306
|
+
font-size: 0.88rem;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
input, select, textarea {
|
|
310
|
+
width: 100%;
|
|
311
|
+
border: 1px solid var(--line);
|
|
312
|
+
border-radius: 10px;
|
|
313
|
+
padding: 0.55rem 0.6rem;
|
|
314
|
+
font-family: inherit;
|
|
315
|
+
background: rgba(255, 255, 255, 0.9);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
textarea {
|
|
319
|
+
resize: vertical;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.btn {
|
|
323
|
+
border: 1px solid var(--line);
|
|
324
|
+
border-radius: 12px;
|
|
325
|
+
padding: 0.58rem 0.8rem;
|
|
326
|
+
background: #fff;
|
|
327
|
+
color: var(--ink);
|
|
328
|
+
cursor: pointer;
|
|
329
|
+
font-weight: 600;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.btn:hover {
|
|
333
|
+
transform: translateY(-1px);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.btn-primary {
|
|
337
|
+
background: var(--accent);
|
|
338
|
+
border-color: var(--accent);
|
|
339
|
+
color: white;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.btn-danger {
|
|
343
|
+
background: var(--danger);
|
|
344
|
+
border-color: var(--danger);
|
|
345
|
+
color: white;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.engine-controls, .task-controls {
|
|
349
|
+
display: grid;
|
|
350
|
+
gap: 0.7rem;
|
|
351
|
+
margin-bottom: 0.8rem;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.button-row {
|
|
355
|
+
display: flex;
|
|
356
|
+
gap: 0.5rem;
|
|
357
|
+
flex-wrap: wrap;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.hidden {
|
|
361
|
+
display: none !important;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.result {
|
|
365
|
+
margin: 0;
|
|
366
|
+
border: 1px dashed var(--line);
|
|
367
|
+
border-radius: 12px;
|
|
368
|
+
background: rgba(255, 255, 255, 0.8);
|
|
369
|
+
padding: 0.6rem;
|
|
370
|
+
white-space: pre-wrap;
|
|
371
|
+
font-family: "IBM Plex Mono", monospace;
|
|
372
|
+
font-size: 0.78rem;
|
|
373
|
+
max-height: 220px;
|
|
374
|
+
overflow-y: auto;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.result.tall {
|
|
378
|
+
min-height: 140px;
|
|
379
|
+
max-height: 320px;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
audio {
|
|
383
|
+
width: 100%;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
@media (max-width: 760px) {
|
|
387
|
+
.hero {
|
|
388
|
+
align-items: start;
|
|
389
|
+
flex-direction: column;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/* Dashboard provider groups */
|
|
394
|
+
.provider-group { margin-bottom: 1rem; }
|
|
395
|
+
.catalog-group { margin-bottom: 1rem; }
|
|
396
|
+
.provider-group-title {
|
|
397
|
+
font-size: .9rem;
|
|
398
|
+
font-weight: 600;
|
|
399
|
+
color: var(--ink-soft);
|
|
400
|
+
margin: 0 0 .5rem;
|
|
401
|
+
padding-bottom: .3rem;
|
|
402
|
+
border-bottom: 1px solid var(--line);
|
|
403
|
+
}
|
|
404
|
+
.provider-count {
|
|
405
|
+
font-weight: 400;
|
|
406
|
+
font-size: .8rem;
|
|
407
|
+
color: var(--ink-soft);
|
|
408
|
+
opacity: .7;
|
|
409
|
+
}
|
|
410
|
+
.provider-row {
|
|
411
|
+
display: flex;
|
|
412
|
+
justify-content: space-between;
|
|
413
|
+
align-items: center;
|
|
414
|
+
padding: .45rem .6rem;
|
|
415
|
+
border-radius: 6px;
|
|
416
|
+
transition: background .15s;
|
|
417
|
+
}
|
|
418
|
+
.provider-row:hover { background: rgba(0,0,0,.03); }
|
|
419
|
+
.provider-info {
|
|
420
|
+
display: flex;
|
|
421
|
+
align-items: center;
|
|
422
|
+
gap: .5rem;
|
|
423
|
+
flex-wrap: nowrap;
|
|
424
|
+
min-width: 0;
|
|
425
|
+
}
|
|
426
|
+
.provider-info strong { font-size: .9rem; }
|
|
427
|
+
.provider-engine {
|
|
428
|
+
font-size: .78rem;
|
|
429
|
+
color: var(--ink-soft);
|
|
430
|
+
background: rgba(0,0,0,.05);
|
|
431
|
+
padding: .1rem .4rem;
|
|
432
|
+
border-radius: 4px;
|
|
433
|
+
}
|
|
434
|
+
.provider-detail {
|
|
435
|
+
font-size: .78rem;
|
|
436
|
+
color: var(--ink-soft);
|
|
437
|
+
opacity: .8;
|
|
438
|
+
}
|
|
439
|
+
.provider-actions { display: flex; gap: .3rem; flex-shrink: 0; }
|
|
440
|
+
.dot {
|
|
441
|
+
width: 8px; height: 8px;
|
|
442
|
+
border-radius: 50%;
|
|
443
|
+
display: inline-block;
|
|
444
|
+
flex-shrink: 0;
|
|
445
|
+
}
|
|
446
|
+
.dot-green { background: #22c55e; }
|
|
447
|
+
.dot-yellow { background: #eab308; }
|
|
448
|
+
.dot-gray { background: #9ca3af; }
|
|
449
|
+
.dot-red { background: #ef4444; }
|
|
450
|
+
.dot-blue { background: #3b82f6; }
|
|
451
|
+
.btn-xs {
|
|
452
|
+
padding: .2rem .5rem;
|
|
453
|
+
font-size: .72rem;
|
|
454
|
+
border-radius: 4px;
|
|
455
|
+
border: 1px solid var(--line);
|
|
456
|
+
background: transparent;
|
|
457
|
+
color: var(--ink-soft);
|
|
458
|
+
cursor: pointer;
|
|
459
|
+
transition: all .15s;
|
|
460
|
+
}
|
|
461
|
+
.btn-xs:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
|
|
462
|
+
.btn-install { background: var(--accent); color: #fff; border-color: var(--accent); }
|
|
463
|
+
.btn-install:hover { opacity: .85; }
|
|
464
|
+
.engine-name-link { color: var(--accent); text-decoration: none; cursor: pointer; }
|
|
465
|
+
.engine-name-link:hover { text-decoration: underline; }
|
|
466
|
+
.hint { font-size: .82rem; color: var(--ink-soft); margin: 0 0 .8rem; }
|
|
467
|
+
|
|
468
|
+
/* Catalog toolbar & batch controls */
|
|
469
|
+
.catalog-toolbar { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; padding: .4rem 0; }
|
|
470
|
+
.catalog-select-all { font-size: .82rem; display: flex; align-items: center; gap: .3rem; cursor: pointer; }
|
|
471
|
+
.catalog-select-all input[type="checkbox"] { width: auto; }
|
|
472
|
+
.catalog-cb { width: auto; margin-right: .4rem; cursor: pointer; flex-shrink: 0; }
|
|
473
|
+
.provider-info input[type="checkbox"] { width: auto; flex-shrink: 0; }
|
|
474
|
+
.provider-row.incompatible { opacity: .5; }
|
|
475
|
+
.badge-incompatible { font-size: .7rem; color: var(--ink-soft); background: rgba(0,0,0,.06); padding: .15rem .4rem; border-radius: 3px; }
|
|
476
|
+
|
|
477
|
+
/* TTS download area */
|
|
478
|
+
.tts-download-area { display: flex; align-items: center; gap: .5rem; margin: .4rem 0; }
|
|
479
|
+
.tts-download-area select { width: auto; min-width: 100px; padding: .3rem .5rem; font-size: .82rem; border-radius: 8px; }
|
|
480
|
+
.tts-download-status { font-size: .78rem; color: var(--ink-soft); }
|
|
481
|
+
|
|
482
|
+
/* Tab navigation */
|
|
483
|
+
.tab-nav { display: flex; gap: .5rem; align-items: center; }
|
|
484
|
+
.tab-btn {
|
|
485
|
+
padding: .5rem 1.2rem;
|
|
486
|
+
border: 1px solid var(--line);
|
|
487
|
+
border-radius: 8px;
|
|
488
|
+
background: transparent;
|
|
489
|
+
color: var(--ink-soft);
|
|
490
|
+
cursor: pointer;
|
|
491
|
+
font: inherit;
|
|
492
|
+
font-weight: 500;
|
|
493
|
+
transition: all .2s;
|
|
494
|
+
}
|
|
495
|
+
.tab-btn:hover { color: var(--ink); border-color: var(--ink-soft); background: rgba(0,0,0,.04); }
|
|
496
|
+
.tab-btn.active {
|
|
497
|
+
background: var(--accent);
|
|
498
|
+
color: #fff;
|
|
499
|
+
border-color: var(--accent);
|
|
500
|
+
}
|
|
501
|
+
.tab-content { display: none; }
|
|
502
|
+
.tab-content.active { display: block; }
|
|
503
|
+
|
|
504
|
+
/* Config page — split layout */
|
|
505
|
+
.config-split {
|
|
506
|
+
display: grid;
|
|
507
|
+
grid-template-columns: 240px 1fr;
|
|
508
|
+
gap: 1rem;
|
|
509
|
+
min-height: 400px;
|
|
510
|
+
}
|
|
511
|
+
@media (max-width: 760px) { .config-split { grid-template-columns: 1fr; } }
|
|
512
|
+
|
|
513
|
+
.config-sidebar {
|
|
514
|
+
border-right: 1px solid var(--line);
|
|
515
|
+
padding-right: 1rem;
|
|
516
|
+
overflow-y: auto;
|
|
517
|
+
max-height: 70vh;
|
|
518
|
+
}
|
|
519
|
+
.config-sidebar-group { margin-bottom: .8rem; }
|
|
520
|
+
.config-sidebar-group h4 {
|
|
521
|
+
font-size: .78rem;
|
|
522
|
+
text-transform: uppercase;
|
|
523
|
+
letter-spacing: .05em;
|
|
524
|
+
color: var(--ink-soft);
|
|
525
|
+
margin: 0 0 .3rem;
|
|
526
|
+
padding-bottom: .2rem;
|
|
527
|
+
border-bottom: 1px solid var(--line);
|
|
528
|
+
}
|
|
529
|
+
.config-sidebar-item {
|
|
530
|
+
display: flex;
|
|
531
|
+
align-items: center;
|
|
532
|
+
gap: .4rem;
|
|
533
|
+
padding: .35rem .5rem;
|
|
534
|
+
border-radius: 6px;
|
|
535
|
+
cursor: pointer;
|
|
536
|
+
font-size: .85rem;
|
|
537
|
+
transition: background .12s;
|
|
538
|
+
color: var(--ink);
|
|
539
|
+
}
|
|
540
|
+
.config-sidebar-item:hover { background: rgba(0,0,0,.04); }
|
|
541
|
+
.config-sidebar-item.active {
|
|
542
|
+
background: var(--accent);
|
|
543
|
+
color: #fff;
|
|
544
|
+
}
|
|
545
|
+
.config-sidebar-item .dot { flex-shrink: 0; }
|
|
546
|
+
|
|
547
|
+
.config-detail {
|
|
548
|
+
overflow-y: auto;
|
|
549
|
+
max-height: 70vh;
|
|
550
|
+
}
|
|
551
|
+
.config-placeholder {
|
|
552
|
+
color: var(--ink-soft);
|
|
553
|
+
font-size: .9rem;
|
|
554
|
+
text-align: center;
|
|
555
|
+
padding: 3rem 1rem;
|
|
556
|
+
}
|
|
557
|
+
.config-detail-head {
|
|
558
|
+
display: flex;
|
|
559
|
+
justify-content: space-between;
|
|
560
|
+
align-items: center;
|
|
561
|
+
margin-bottom: 1rem;
|
|
562
|
+
}
|
|
563
|
+
.config-detail-head h3 { margin: 0; }
|
|
564
|
+
.config-detail-head .badge {
|
|
565
|
+
font-size: .75rem;
|
|
566
|
+
padding: .15rem .5rem;
|
|
567
|
+
border-radius: 4px;
|
|
568
|
+
background: rgba(0,0,0,.06);
|
|
569
|
+
color: var(--ink-soft);
|
|
570
|
+
}
|
|
571
|
+
.config-detail-head .badge.stt { background: rgba(59,130,246,.12); color: #2563eb; }
|
|
572
|
+
.config-detail-head .badge.tts { background: rgba(168,85,247,.12); color: #7c3aed; }
|
|
573
|
+
.config-detail-head .badge.provider { background: rgba(59,130,246,.12); color: #3b82f6; }
|
|
574
|
+
.provider-used-by { margin-top: .8rem; font-size: .85rem; color: var(--ink-soft); }
|
|
575
|
+
.config-fields {
|
|
576
|
+
display: grid;
|
|
577
|
+
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
578
|
+
gap: .6rem;
|
|
579
|
+
}
|
|
580
|
+
.config-fields label {
|
|
581
|
+
font-size: .85rem;
|
|
582
|
+
display: grid;
|
|
583
|
+
gap: .2rem;
|
|
584
|
+
}
|
|
585
|
+
.config-fields input, .config-fields select {
|
|
586
|
+
width: 100%;
|
|
587
|
+
padding: .45rem .6rem;
|
|
588
|
+
font-size: .85rem;
|
|
589
|
+
}
|
|
590
|
+
.config-detail .button-row { margin-top: 1rem; }
|
|
591
|
+
.config-detail .btn-danger {
|
|
592
|
+
background: rgba(239,68,68,.1);
|
|
593
|
+
color: var(--danger);
|
|
594
|
+
border-color: rgba(239,68,68,.3);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/* Add provider dialog */
|
|
598
|
+
#config-add-dialog {
|
|
599
|
+
display: none;
|
|
600
|
+
background: rgba(0,0,0,.3);
|
|
601
|
+
position: fixed;
|
|
602
|
+
inset: 0;
|
|
603
|
+
z-index: 100;
|
|
604
|
+
align-items: center;
|
|
605
|
+
justify-content: center;
|
|
606
|
+
}
|
|
607
|
+
#config-add-dialog.visible { display: flex; }
|
|
608
|
+
#config-add-dialog .dialog-box {
|
|
609
|
+
background: var(--bg-1);
|
|
610
|
+
border: 1px solid var(--line);
|
|
611
|
+
border-radius: 16px;
|
|
612
|
+
padding: 2rem;
|
|
613
|
+
min-width: 400px;
|
|
614
|
+
max-width: 90vw;
|
|
615
|
+
box-shadow: 0 8px 32px rgba(0,0,0,.15);
|
|
616
|
+
}
|
|
617
|
+
#config-add-dialog label { display: block; margin-bottom: .8rem; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Server WebSocket modules."""
|