@voicemesh/dsh-voice 0.1.0-beta.12 → 0.1.0-beta.13
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.md +12 -10
- package/lib/client.js +187 -148
- package/node_modules/@deepseek-ai/dsh-voice-client/lib/client.js +187 -148
- package/node_modules/@deepseek-ai/dsh-voice-client/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-voice-host/lib/index.js +91 -9
- package/node_modules/@deepseek-ai/dsh-voice-host/package.json +1 -1
- package/package.json +3 -3
- package/provenance.json +3 -3
package/lib/client.js
CHANGED
|
@@ -13655,7 +13655,7 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
13655
13655
|
activation.phase("error");
|
|
13656
13656
|
});
|
|
13657
13657
|
});
|
|
13658
|
-
const outputVolume = () => config().speakerMuted === true ? 0 : 1;
|
|
13658
|
+
const outputVolume = () => config().speakerMuted === true ? 0 : provider.playbackVolume ?? 1;
|
|
13659
13659
|
const outputMuted = () => config().speakerMuted === true;
|
|
13660
13660
|
const playback = !provider.nativePlayback ? new StsPlayback({
|
|
13661
13661
|
sampleRate: provider.outputSampleRate,
|
|
@@ -15308,6 +15308,7 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
15308
15308
|
/** Clear browser-cached status until the current host has reported each credential. */
|
|
15309
15309
|
function clearVoiceCredentialStatuses(actions) {
|
|
15310
15310
|
actions.setDeepgramCredential(false);
|
|
15311
|
+
actions.setDeepseekTtsCredential(false);
|
|
15311
15312
|
actions.setFishCredential(false);
|
|
15312
15313
|
actions.setXaiCredential(false);
|
|
15313
15314
|
actions.setStsCredential(false);
|
|
@@ -15341,6 +15342,8 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
15341
15342
|
stsCloseTimeoutMs: 5e3,
|
|
15342
15343
|
stsConnectTimeoutMs: 15e3,
|
|
15343
15344
|
deepgramCredential: "",
|
|
15345
|
+
deepseekTtsCredential: "",
|
|
15346
|
+
deepseekTtsVoice: "stella",
|
|
15344
15347
|
fishCredential: "",
|
|
15345
15348
|
fishVoice: "",
|
|
15346
15349
|
openaiSttModel: "",
|
|
@@ -15455,6 +15458,10 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
15455
15458
|
{
|
|
15456
15459
|
id: "fish",
|
|
15457
15460
|
label: "Fish Audio"
|
|
15461
|
+
},
|
|
15462
|
+
{
|
|
15463
|
+
id: "deepseek",
|
|
15464
|
+
label: "DeepSeek"
|
|
15458
15465
|
}
|
|
15459
15466
|
];
|
|
15460
15467
|
/**
|
|
@@ -15476,6 +15483,12 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
15476
15483
|
setDeepgramCredential: (d, configured) => {
|
|
15477
15484
|
d.deepgramCredential = configured ? "deepgram" : "";
|
|
15478
15485
|
},
|
|
15486
|
+
setDeepseekTtsCredential: (d, configured) => {
|
|
15487
|
+
d.deepseekTtsCredential = configured ? "deepseek-tts" : "";
|
|
15488
|
+
},
|
|
15489
|
+
setDeepseekTtsVoice: (d, voice) => {
|
|
15490
|
+
d.deepseekTtsVoice = voice;
|
|
15491
|
+
},
|
|
15479
15492
|
setFishCredential: (d, configured) => {
|
|
15480
15493
|
d.fishCredential = configured ? "fish" : "";
|
|
15481
15494
|
},
|
|
@@ -15670,6 +15683,7 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
15670
15683
|
if (partial.wakePhraseDefaultLocale !== "en" && partial.wakePhraseDefaultLocale !== "zh") out.wakePhraseDefaultLocale = legacyEnglishDefault ? "en" : "";
|
|
15671
15684
|
if (partial.wakeModelDefaultLocale !== "en" && partial.wakeModelDefaultLocale !== "zh") out.wakeModelDefaultLocale = legacyEnglishDefault && partial.wakeModelId === "sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01" ? "en" : "";
|
|
15672
15685
|
if (out.deepgramCredential !== "deepgram") out.deepgramCredential = "";
|
|
15686
|
+
if (out.deepseekTtsCredential !== "deepseek-tts") out.deepseekTtsCredential = "";
|
|
15673
15687
|
if (out.fishCredential !== "fish") out.fishCredential = "";
|
|
15674
15688
|
if (out.xaiCredential !== "xai") out.xaiCredential = "";
|
|
15675
15689
|
if (out.stsCredential !== "xai-sts") out.stsCredential = "";
|
|
@@ -15749,10 +15763,11 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
15749
15763
|
case "fish": return config.fishVoice;
|
|
15750
15764
|
case "kokoro": return config.localTtsVoice;
|
|
15751
15765
|
case "grok": return config.grokVoice;
|
|
15766
|
+
case "deepseek": return config.deepseekTtsVoice;
|
|
15752
15767
|
default: return config.deepgramVoiceModel;
|
|
15753
15768
|
}
|
|
15754
15769
|
}
|
|
15755
|
-
const css$7 = ".
|
|
15770
|
+
const css$7 = ".M_lNqa_wave{height:28px;color:var(--dsw-alias-brand-primary,#80a9ed);flex:0 0 64px;align-items:center;display:inline-flex}.M_lNqa_wave svg{fill:currentColor}";
|
|
15756
15771
|
const tagId$7 = "@voicemesh/dsh-voice/AudioVisualizer.module.css";
|
|
15757
15772
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$7) + "]") === null) {
|
|
15758
15773
|
const tag = document.createElement("style");
|
|
@@ -15761,7 +15776,7 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
15761
15776
|
tag.textContent = css$7;
|
|
15762
15777
|
document.head.appendChild(tag);
|
|
15763
15778
|
}
|
|
15764
|
-
var AudioVisualizer_module_css_default = { "wave": "
|
|
15779
|
+
var AudioVisualizer_module_css_default = { "wave": "M_lNqa_wave" };
|
|
15765
15780
|
/** Live audio waveform contributed to the message toolbar. */
|
|
15766
15781
|
/**
|
|
15767
15782
|
* Render the input meter without owning playback or capture.
|
|
@@ -16245,7 +16260,7 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
16245
16260
|
default: return "Voice off";
|
|
16246
16261
|
}
|
|
16247
16262
|
}
|
|
16248
|
-
const css$6 = ".
|
|
16263
|
+
const css$6 = ".ub7S2W_cluster{align-items:center;gap:2px;height:28px;display:inline-flex}.ub7S2W_action{width:26px;height:26px;color:var(--dsw-alias-label-secondary,#9aa4b2);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;line-height:0;transition:background-color .15s,color .15s;display:inline-flex}.ub7S2W_action:hover:not(:disabled){background:var(--dsw-alias-control-overlay,#ffffff0f);color:var(--dsw-alias-label-primary,#e6e9ed)}.ub7S2W_action:disabled{opacity:.45;cursor:default}.ub7S2W_muted{color:var(--dsw-alias-state-error-primary,#c2544d)}.ub7S2W_timer{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--dsw-alias-label-secondary,#9aa4b2);padding:0 3px;font-size:11px;line-height:1}.ub7S2W_standby{white-space:nowrap;color:var(--dsw-alias-label-secondary,#9aa4b2);padding:0 3px;font-size:11px;line-height:1}.ub7S2W_tipAnchor{font:inherit;cursor:help;background:0 0;border:0}.ub7S2W_tipAnchor:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#3978f6);border-radius:6px}.ub7S2W_tipBubble{z-index:100;text-align:left;background:var(--dsw-alias-tooltip-bg,#2b2f36);width:max-content;max-width:min(360px,80vw);color:var(--dsw-static-neutral-bluish-00,#eef1f5);pointer-events:none;animation:ub7S2W_tooltip-in .15s var(--ds-ease-in-out,ease-in-out);border-radius:8px;gap:4px;padding:8px 10px;font-size:13px;line-height:20px;display:grid;position:fixed}.ub7S2W_tipRow{grid-template-columns:auto minmax(0,1fr);gap:12px;display:grid}.ub7S2W_tipLabel{opacity:.7}.ub7S2W_tipValue{overflow-wrap:anywhere}@keyframes ub7S2W_tooltip-in{0%{opacity:0}}@media (prefers-reduced-motion:reduce){.ub7S2W_tipBubble{animation:none}}.ub7S2W_standbyParked{animation:2.4s ease-in-out infinite ub7S2W_voice-standby-breathe}@keyframes ub7S2W_voice-standby-breathe{0%,to{color:var(--dsw-alias-label-secondary,#9aa4b2)}50%{color:var(--dsw-alias-button-info-fill,#4176e6)}}@supports ((-webkit-background-clip:text) or (background-clip:text)){.ub7S2W_standbyParked{color:var(--dsw-alias-button-info-fill,#4176e6);background-image:linear-gradient(90deg, var(--dsw-alias-label-secondary,#9aa4b2) 0%, var(--dsw-alias-button-info-fill,#4176e6) 25%, var(--dsw-alias-label-secondary,#9aa4b2) 50%, var(--dsw-alias-button-info-fill,#4176e6) 75%, var(--dsw-alias-label-secondary,#9aa4b2) 100%);-webkit-text-fill-color:transparent;background-repeat:no-repeat;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:3.2s linear infinite ub7S2W_voice-standby-sheen}@keyframes ub7S2W_voice-standby-sheen{0%{background-position:0 0}to{background-position:100% 0}}}@media (prefers-reduced-motion:reduce){.ub7S2W_standbyParked{color:var(--dsw-alias-button-info-fill,#4176e6);-webkit-text-fill-color:var(--dsw-alias-button-info-fill,#4176e6);background-image:none;animation:none}}.ub7S2W_failure{background:color-mix(in srgb, var(--dsw-alias-state-error-primary,#c2544d) 14%, transparent);max-width:260px;height:24px;color:var(--dsw-alias-state-error-primary,#c2544d);border-radius:12px;align-items:center;gap:2px;padding-left:8px;font-size:11px;line-height:1;display:inline-flex}.ub7S2W_failureText{white-space:nowrap;text-overflow:ellipsis;user-select:text;overflow:hidden}.ub7S2W_failure .ub7S2W_action{color:inherit;width:22px;height:22px}.ub7S2W_notice{background:color-mix(in srgb, var(--dsw-alias-state-warn-primary,#f2a33c) 16%, transparent);max-width:260px;height:24px;color:var(--dsw-alias-state-warn-primary,#f2a33c);border-radius:12px;align-items:center;gap:2px;padding-left:8px;font-size:11px;line-height:1;animation:4s linear forwards ub7S2W_voice-notice-fade;display:inline-flex}.ub7S2W_noticeText{white-space:nowrap;text-overflow:ellipsis;user-select:text;overflow:hidden}.ub7S2W_notice .ub7S2W_action{color:inherit;width:22px;height:22px}@keyframes ub7S2W_voice-notice-fade{0%,70%{opacity:1}to{opacity:0}}";
|
|
16249
16264
|
const tagId$6 = "@voicemesh/dsh-voice/VoiceQuickControls.module.css";
|
|
16250
16265
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$6) + "]") === null) {
|
|
16251
16266
|
const tag = document.createElement("style");
|
|
@@ -16255,25 +16270,25 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
16255
16270
|
document.head.appendChild(tag);
|
|
16256
16271
|
}
|
|
16257
16272
|
var VoiceQuickControls_module_css_default = {
|
|
16258
|
-
"action": "
|
|
16259
|
-
"cluster": "
|
|
16260
|
-
"failure": "
|
|
16261
|
-
"failureText": "
|
|
16262
|
-
"muted": "
|
|
16263
|
-
"notice": "
|
|
16264
|
-
"noticeText": "
|
|
16265
|
-
"standby": "
|
|
16266
|
-
"standbyParked": "
|
|
16267
|
-
"timer": "
|
|
16268
|
-
"tipAnchor": "
|
|
16269
|
-
"tipBubble": "
|
|
16270
|
-
"tipLabel": "
|
|
16271
|
-
"tipRow": "
|
|
16272
|
-
"tipValue": "
|
|
16273
|
-
"tooltip-in": "
|
|
16274
|
-
"voice-notice-fade": "
|
|
16275
|
-
"voice-standby-breathe": "
|
|
16276
|
-
"voice-standby-sheen": "
|
|
16273
|
+
"action": "ub7S2W_action",
|
|
16274
|
+
"cluster": "ub7S2W_cluster",
|
|
16275
|
+
"failure": "ub7S2W_failure",
|
|
16276
|
+
"failureText": "ub7S2W_failureText",
|
|
16277
|
+
"muted": "ub7S2W_muted",
|
|
16278
|
+
"notice": "ub7S2W_notice",
|
|
16279
|
+
"noticeText": "ub7S2W_noticeText",
|
|
16280
|
+
"standby": "ub7S2W_standby",
|
|
16281
|
+
"standbyParked": "ub7S2W_standbyParked",
|
|
16282
|
+
"timer": "ub7S2W_timer",
|
|
16283
|
+
"tipAnchor": "ub7S2W_tipAnchor",
|
|
16284
|
+
"tipBubble": "ub7S2W_tipBubble",
|
|
16285
|
+
"tipLabel": "ub7S2W_tipLabel",
|
|
16286
|
+
"tipRow": "ub7S2W_tipRow",
|
|
16287
|
+
"tipValue": "ub7S2W_tipValue",
|
|
16288
|
+
"tooltip-in": "ub7S2W_tooltip-in",
|
|
16289
|
+
"voice-notice-fade": "ub7S2W_voice-notice-fade",
|
|
16290
|
+
"voice-standby-breathe": "ub7S2W_voice-standby-breathe",
|
|
16291
|
+
"voice-standby-sheen": "ub7S2W_voice-standby-sheen"
|
|
16277
16292
|
};
|
|
16278
16293
|
/** Composer voice indicator that spells out the selection on hover, focus, or tap. */
|
|
16279
16294
|
/** Gap kept between the bubble and the viewport edges. */
|
|
@@ -16636,6 +16651,7 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
16636
16651
|
"settings.standbyHint": "闲置后按回合处理:仍欠答复时停放到待机(用继续按钮恢复,编码结果也可自动唤醒);没有待办时直接关闭语音。设为 0 可同时禁用两者。",
|
|
16637
16652
|
"settings.standbyAfter": "闲置后进入待机",
|
|
16638
16653
|
"settings.fishCredential": "Fish Audio API 密钥",
|
|
16654
|
+
"settings.deepseekTtsCredential": "DeepSeek TTS API 密钥",
|
|
16639
16655
|
"settings.fishBatch": "说话结束后显示转写;Fish 不提供实时文字流。",
|
|
16640
16656
|
"settings.xaiCredential": "xAI API 密钥",
|
|
16641
16657
|
"settings.xaiPlaceholder": "粘贴你的 xAI 密钥",
|
|
@@ -16916,6 +16932,7 @@ registerProcessor('sts-capture', StsCapture);
|
|
|
16916
16932
|
"settings.standbyHint": "After inactivity, follows the turn: with an answer still owed the voice parks into standby (resume it from the tool row, and coding results can wake it); with nothing owed it turns off. Set to 0 to disable both.",
|
|
16917
16933
|
"settings.standbyAfter": "Standby after inactivity",
|
|
16918
16934
|
"settings.fishCredential": "Fish Audio API key",
|
|
16935
|
+
"settings.deepseekTtsCredential": "DeepSeek TTS API key",
|
|
16919
16936
|
"settings.fishBatch": "Transcription appears after you finish speaking; Fish does not stream live words.",
|
|
16920
16937
|
"settings.xaiCredential": "xAI API key",
|
|
16921
16938
|
"settings.xaiPlaceholder": "Paste your xAI key",
|
|
@@ -22633,6 +22650,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22633
22650
|
if ((engine === "deepgram-flux" || engine === "deepgram") && config.deepgramCredential === "") missing.add("deepgram");
|
|
22634
22651
|
if (engine === "grok" && config.xaiCredential === "") missing.add("xai");
|
|
22635
22652
|
if (engine === "fish" && config.fishCredential === "") missing.add("fish");
|
|
22653
|
+
if (engine === "deepseek" && config.deepseekTtsCredential === "") missing.add("deepseek-tts");
|
|
22636
22654
|
if (engine === "openai" && config.openaiStsCredential === "") missing.add("openai-sts");
|
|
22637
22655
|
if (engine === "gemini" && config.geminiStsCredential === "") missing.add("gemini-sts");
|
|
22638
22656
|
};
|
|
@@ -22752,7 +22770,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22752
22770
|
};
|
|
22753
22771
|
}
|
|
22754
22772
|
};
|
|
22755
|
-
const css$5 = ".
|
|
22773
|
+
const css$5 = ".Oi9rqq_userRow{justify-content:flex-end;display:flex}.Oi9rqq_bubble{max-width:min(calc(var(--dsh-chat-content-width,748px) * .702), 82%);background:var(--dsw-specific-bubble);border-radius:22px;padding:10px 16px}.Oi9rqq_bubble,.Oi9rqq_speech{font-size:var(--dsh-content-font-size,14px);line-height:calc(22px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-primary);white-space:pre-wrap;overflow-wrap:anywhere}.Oi9rqq_assistantRow{min-width:0}.Oi9rqq_speech{white-space:normal}";
|
|
22756
22774
|
const tagId$5 = "@voicemesh/dsh-voice/VoiceTranscriptNodeView.module.css";
|
|
22757
22775
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$5) + "]") === null) {
|
|
22758
22776
|
const tag = document.createElement("style");
|
|
@@ -22762,10 +22780,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22762
22780
|
document.head.appendChild(tag);
|
|
22763
22781
|
}
|
|
22764
22782
|
var VoiceTranscriptNodeView_module_css_default = {
|
|
22765
|
-
"assistantRow": "
|
|
22766
|
-
"bubble": "
|
|
22767
|
-
"speech": "
|
|
22768
|
-
"userRow": "
|
|
22783
|
+
"assistantRow": "Oi9rqq_assistantRow",
|
|
22784
|
+
"bubble": "Oi9rqq_bubble",
|
|
22785
|
+
"speech": "Oi9rqq_speech",
|
|
22786
|
+
"userRow": "Oi9rqq_userRow"
|
|
22769
22787
|
};
|
|
22770
22788
|
/** Plain spoken text rendered by the optional voice/history integration. */
|
|
22771
22789
|
/** Render one live or saved speech bubble using the conversation theme. */
|
|
@@ -22799,7 +22817,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22799
22817
|
})
|
|
22800
22818
|
});
|
|
22801
22819
|
});
|
|
22802
|
-
const css$4 = ".
|
|
22820
|
+
const css$4 = ".CQ2xfq_controls{flex:none;width:34px;height:34px;position:relative;transform:translateY(-2px)}.CQ2xfq_overlay{z-index:1;position:absolute}.CQ2xfq_control{box-sizing:border-box;corner-shape:round;background:color-mix(in srgb, var(--dsw-alias-bg-layer-3,#2a2f36) 82%, black);--voice-wave-1:#4a6cbb;--voice-wave-2:#4260aa;--voice-wave-3:#3a5599;--voice-wave-4:#324a88;--voice-wave-5:#2a3f77;width:34px;height:34px;color:var(--dsw-alias-label-primary,#e6e9ed);cursor:pointer;border:0;border-radius:50%;justify-content:center;align-items:center;padding:0;display:inline-flex}.CQ2xfq_control:focus-visible{outline-offset:1px;outline:2px solid}.CQ2xfq_control.CQ2xfq_lit{background:var(--voice-fill)}.CQ2xfq_control.CQ2xfq_lit:hover{background:var(--voice-hover)}body[data-ds-dark-theme] .CQ2xfq_control:not(.CQ2xfq_lit){background:#000}body[data-ds-dark-theme] .CQ2xfq_control{--voice-wave-1:#c3d4ee;--voice-wave-2:#aec8f0;--voice-wave-3:#98b9ef;--voice-wave-4:#80a9ed;--voice-wave-5:#6395e7}.CQ2xfq_connecting .CQ2xfq_glyph svg rect{transform-box:fill-box;transform-origin:50%;animation:.9s ease-in-out infinite CQ2xfq_connecting-bars}.CQ2xfq_connecting .CQ2xfq_glyph svg rect:nth-child(2){animation-delay:-720ms}.CQ2xfq_connecting .CQ2xfq_glyph svg rect:nth-child(3){animation-delay:-540ms}.CQ2xfq_connecting .CQ2xfq_glyph svg rect:nth-child(4){animation-delay:-360ms}.CQ2xfq_connecting .CQ2xfq_glyph svg rect:nth-child(5){animation-delay:-180ms}@keyframes CQ2xfq_connecting-bars{0%,to{opacity:.55;transform:scaleY(.35)}50%{opacity:1;transform:scaleY(1)}}.CQ2xfq_glyph{justify-content:center;align-items:center;line-height:0;display:inline-flex}.CQ2xfq_control:hover .CQ2xfq_glyph,.CQ2xfq_control:focus-visible .CQ2xfq_glyph{animation:.42s cubic-bezier(.22,.9,.3,1) CQ2xfq_voice-icon-nudge}@keyframes CQ2xfq_voice-icon-nudge{0%{transform:scale(1)}45%{transform:scale(1.16)}to{transform:scale(1)}}.CQ2xfq_hint{z-index:6;border:1px solid var(--dsw-alias-border-l2,#ffffff1f);corner-shape:round;background:var(--dsw-alias-bg-layer-2,#1c2128);color:var(--dsw-alias-label-primary,#e6e9ed);white-space:normal;overflow-wrap:anywhere;pointer-events:none;visibility:hidden;opacity:0;border-radius:8px;width:max-content;max-width:min(320px,100vw - 32px);padding:5px 10px;font-size:12px;line-height:1.4;transition:opacity 80ms,visibility 80ms;position:absolute;bottom:calc(100% + 10px);right:0}.CQ2xfq_control:hover+.CQ2xfq_hint,.CQ2xfq_control:focus-visible+.CQ2xfq_hint{visibility:visible;opacity:1;transition-delay:.1s}@media (prefers-reduced-motion:reduce){.CQ2xfq_connecting .CQ2xfq_glyph svg rect,.CQ2xfq_control:hover .CQ2xfq_glyph,.CQ2xfq_control:focus-visible .CQ2xfq_glyph{animation:none}}";
|
|
22803
22821
|
const tagId$4 = "@voicemesh/dsh-voice/MicDock.module.css";
|
|
22804
22822
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$4) + "]") === null) {
|
|
22805
22823
|
const tag = document.createElement("style");
|
|
@@ -22809,15 +22827,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22809
22827
|
document.head.appendChild(tag);
|
|
22810
22828
|
}
|
|
22811
22829
|
var MicDock_module_css_default = {
|
|
22812
|
-
"connecting": "
|
|
22813
|
-
"connecting-bars": "
|
|
22814
|
-
"control": "
|
|
22815
|
-
"controls": "
|
|
22816
|
-
"glyph": "
|
|
22817
|
-
"hint": "
|
|
22818
|
-
"lit": "
|
|
22819
|
-
"overlay": "
|
|
22820
|
-
"voice-icon-nudge": "
|
|
22830
|
+
"connecting": "CQ2xfq_connecting",
|
|
22831
|
+
"connecting-bars": "CQ2xfq_connecting-bars",
|
|
22832
|
+
"control": "CQ2xfq_control",
|
|
22833
|
+
"controls": "CQ2xfq_controls",
|
|
22834
|
+
"glyph": "CQ2xfq_glyph",
|
|
22835
|
+
"hint": "CQ2xfq_hint",
|
|
22836
|
+
"lit": "CQ2xfq_lit",
|
|
22837
|
+
"overlay": "CQ2xfq_overlay",
|
|
22838
|
+
"voice-icon-nudge": "CQ2xfq_voice-icon-nudge"
|
|
22821
22839
|
};
|
|
22822
22840
|
/**
|
|
22823
22841
|
* MicDock: the voice control, inside the message area.
|
|
@@ -22867,6 +22885,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22867
22885
|
case "xai":
|
|
22868
22886
|
case "xai-sts": return t("settings.xaiCredential");
|
|
22869
22887
|
case "fish": return t("settings.fishCredential");
|
|
22888
|
+
case "deepseek-tts": return t("settings.deepseekTtsCredential");
|
|
22870
22889
|
case "gemini-sts": return t("settings.geminiCredential");
|
|
22871
22890
|
case "openai-sts": return t("settings.openaiCredential");
|
|
22872
22891
|
case "conversational": return t("conv.key");
|
|
@@ -23065,7 +23084,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23065
23084
|
}, [sessionId, config.voiceMode]);
|
|
23066
23085
|
return null;
|
|
23067
23086
|
}
|
|
23068
|
-
const css$3 = ".
|
|
23087
|
+
const css$3 = ".jpIomq_frame{place-items:center;min-height:104px;padding:4px 0 10px;display:grid}.jpIomq_resume{cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:grid}.jpIomq_resume:focus-visible{outline-offset:4px;outline:2px solid #c89572}.jpIomq_orb{--voice-orb-scale:1;--voice-orb-shadow:22%;--voice-orb-cloud-growth:0;corner-shape:round;isolation:isolate;width:96px;height:96px;box-shadow:0 8px 32px color-mix(in srgb, #7c8fff var(--voice-orb-shadow), transparent);transform:scale(var(--voice-orb-scale));background-color:#0000;background-image:radial-gradient(circle at 78% 17%,#e5f0ff94,#0000 37%),linear-gradient(145deg,#6384eb 0%,#84adf4 47%,#b3d5ff 100%);background-position:0 0,0 0;background-repeat:repeat,repeat;background-size:145% 145%;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;border-radius:50%;place-items:center;transition:transform .12s ease-out,box-shadow .16s ease-out;animation:6.2s ease-in-out infinite alternate jpIomq_orb-sky;display:grid;position:relative;overflow:hidden}.jpIomq_orb:before{content:\"\";filter:blur(10px);background:radial-gradient(#304ed3ad,#4265e447 48%,#0000 74%);border-radius:50%;width:105%;height:90%;animation:5.7s ease-in-out infinite jpIomq_sky-contrast;position:absolute}.jpIomq_cloud,.jpIomq_cloud:before,.jpIomq_cloud:after{filter:blur(7px);content:\"\";background:radial-gradient(#fffffff5,#e0efffe0 42%,#a3c5f738 76%,#0000 88%);border-radius:50%;width:78%;height:52%;position:absolute}.jpIomq_cloud{opacity:.88;animation:4.7s ease-in-out infinite alternate jpIomq_cloud-ambient;transform:translate(-11%,19%)rotate(-14deg)}.jpIomq_cloud:before{opacity:.86;animation:3.9s ease-in-out infinite alternate jpIomq_cloud-ambient-front;transform:translate(45%,-70%)scale(.8)}.jpIomq_cloud:after{opacity:.78;animation:5.2s ease-in-out infinite alternate-reverse jpIomq_cloud-ambient-back;transform:translate(-50%,-48%)scale(.68)}.jpIomq_orb[data-standby]{background:radial-gradient(circle at 78% 17%,#ffd8b14d,#0000 37%),linear-gradient(145deg,#665d70 0%,#987565 52%,#c89572 100%);box-shadow:0 8px 28px #855b4540}.jpIomq_orb[data-standby]:before{visibility:hidden}.jpIomq_orb[data-standby] .jpIomq_cloud,.jpIomq_orb[data-standby] .jpIomq_cloud:before,.jpIomq_orb[data-standby] .jpIomq_cloud:after{background:radial-gradient(#f5ded3d1,#ae979d8f 48%,#0000 88%)}@keyframes jpIomq_cloud-ambient{0%{transform:translate(-30%, 9%) rotate(-19deg) scale(calc(.76 + var(--voice-orb-cloud-growth)));filter:blur(8px)brightness(.93)}to{transform:translate(13%, 28%) rotate(-5deg) scale(calc(1.16 + var(--voice-orb-cloud-growth)));filter:blur(6px)brightness(1.07)}}@keyframes jpIomq_cloud-ambient-front{0%{transform:translate(26%, -80%) rotate(-10deg) scale(calc(.58 + var(--voice-orb-cloud-growth)));filter:blur(8px)hue-rotate(-12deg)}to{transform:translate(69%, -54%) rotate(8deg) scale(calc(1.04 + var(--voice-orb-cloud-growth)));filter:blur(5px)hue-rotate(12deg)}}@keyframes jpIomq_cloud-ambient-back{0%{transform:translate(-75%, -30%) rotate(9deg) scale(calc(.52 + var(--voice-orb-cloud-growth)));filter:blur(9px)brightness(.89)}to{transform:translate(-24%, -63%) rotate(-8deg) scale(calc(.91 + var(--voice-orb-cloud-growth)));filter:blur(6px)brightness(1.09)}}@keyframes jpIomq_sky-contrast{0%,to{opacity:.16;transform:translate(-24%,-28%)rotate(-18deg)scale(.78)}50%{opacity:.72;transform:translate(22%,-4%)rotate(22deg)scale(1.12)}}@keyframes jpIomq_orb-sky{0%{filter:hue-rotate(-6deg)saturate(.98);background-position:12% 20%}to{filter:hue-rotate(9deg)saturate(1.1);background-position:88% 76%}}@media (prefers-reduced-motion:reduce){.jpIomq_orb{transition:none;animation:none;transform:none;box-shadow:0 8px 32px #7c8fff38}.jpIomq_cloud,.jpIomq_cloud:before,.jpIomq_cloud:after{animation:none}.jpIomq_orb:before{opacity:.16;animation:none}}";
|
|
23069
23088
|
const tagId$3 = "@voicemesh/dsh-voice/VoiceOrb.module.css";
|
|
23070
23089
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
23071
23090
|
const tag = document.createElement("style");
|
|
@@ -23075,15 +23094,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23075
23094
|
document.head.appendChild(tag);
|
|
23076
23095
|
}
|
|
23077
23096
|
var VoiceOrb_module_css_default = {
|
|
23078
|
-
"cloud": "
|
|
23079
|
-
"cloud-ambient": "
|
|
23080
|
-
"cloud-ambient-back": "
|
|
23081
|
-
"cloud-ambient-front": "
|
|
23082
|
-
"frame": "
|
|
23083
|
-
"orb": "
|
|
23084
|
-
"orb-sky": "
|
|
23085
|
-
"resume": "
|
|
23086
|
-
"sky-contrast": "
|
|
23097
|
+
"cloud": "jpIomq_cloud",
|
|
23098
|
+
"cloud-ambient": "jpIomq_cloud-ambient",
|
|
23099
|
+
"cloud-ambient-back": "jpIomq_cloud-ambient-back",
|
|
23100
|
+
"cloud-ambient-front": "jpIomq_cloud-ambient-front",
|
|
23101
|
+
"frame": "jpIomq_frame",
|
|
23102
|
+
"orb": "jpIomq_orb",
|
|
23103
|
+
"orb-sky": "jpIomq_orb-sky",
|
|
23104
|
+
"resume": "jpIomq_resume",
|
|
23105
|
+
"sky-contrast": "jpIomq_sky-contrast"
|
|
23087
23106
|
};
|
|
23088
23107
|
/** Assistant-output cloud rendered above the composer while voice is live or parked. */
|
|
23089
23108
|
const ATTACK_MS = 110;
|
|
@@ -23203,7 +23222,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23203
23222
|
}) : orb
|
|
23204
23223
|
});
|
|
23205
23224
|
}
|
|
23206
|
-
const css$2 = ".
|
|
23225
|
+
const css$2 = ".VLDzKq_page{max-width:640px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:14px;display:flex}.VLDzKq_heading{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.VLDzKq_vadStatus{color:var(--dsw-alias-label-primary);font-size:12px;line-height:1.5}.VLDzKq_vadStatusOk{color:var(--dsw-alias-state-success-primary)}.VLDzKq_vadStatusWarn{color:var(--dsw-alias-state-warn-primary)}.VLDzKq_vadReason{color:var(--dsw-alias-label-tertiary);margin-top:4px;font-size:12px;line-height:18px;display:block}.VLDzKq_card{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-3);border-radius:16px;list-style:none;transition:border-color .16s,background .16s}.VLDzKq_card:hover{border-color:var(--dsw-alias-label-dimmed)}.VLDzKq_cardOpen{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-label-dimmed)}.VLDzKq_cardHeader{appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:16px;align-items:center;gap:12px;padding:14px 16px;display:flex}.VLDzKq_cardHeader:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.VLDzKq_cardHeadText{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.VLDzKq_cardTitle{color:var(--dsw-alias-label-primary);font-size:15px;font-weight:600;line-height:1.4}.VLDzKq_cardDesc{color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:1.5}.VLDzKq_cardChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}.VLDzKq_cardChevronOpen{transform:rotate(180deg)}.VLDzKq_cardBody{border-top:.5px solid var(--dsw-alias-border-l2);flex-direction:column;gap:2px;margin:0 16px;padding:2px 0 8px;display:flex}.VLDzKq_cardBody>.VLDzKq_card+.VLDzKq_card{margin-top:6px}.VLDzKq_field{flex-direction:column;gap:6px;padding:12px 0;display:flex}.VLDzKq_field+.VLDzKq_field{border-top:.5px solid var(--dsw-alias-border-l2)}.VLDzKq_label{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500;line-height:1.5}.VLDzKq_input{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);width:100%;height:34px;font:inherit;background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font-size:13px;line-height:1.5}.VLDzKq_input:focus-visible{border-color:var(--dsw-alias-brand-primary);outline:none}.VLDzKq_input::placeholder{color:var(--dsw-alias-label-dimmed)}.VLDzKq_input:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}.VLDzKq_hint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:1.5}.VLDzKq_subsection{border-top:.5px solid var(--dsw-alias-border-l2)}.VLDzKq_subsection:first-child{border-top:none}.VLDzKq_subsectionBody>.VLDzKq_subsection{padding-inline-start:12px}.VLDzKq_subsectionHeader{appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:12px 0;display:flex}.VLDzKq_subsectionHeader:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.VLDzKq_subsectionTitle{min-width:0;color:var(--dsw-alias-label-primary);flex:1;font-size:13px;font-weight:600;line-height:1.5}.VLDzKq_subsectionChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}.VLDzKq_subsectionChevronOpen{transform:rotate(180deg)}.VLDzKq_subsectionBody{flex-direction:column;gap:2px;padding:2px 0 10px;display:flex}.VLDzKq_labelRow{align-items:center;gap:8px;display:flex}.VLDzKq_labelRow .VLDzKq_label{flex:1;min-width:0}.VLDzKq_badge{corner-shape:round;white-space:nowrap;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.VLDzKq_badgeMuted{corner-shape:round;white-space:nowrap;color:var(--dsw-alias-label-tertiary);border-radius:999px;padding:1px 8px;font-size:11px;line-height:17px}.VLDzKq_selector{background:var(--dsw-alias-bg-module-platform);width:100%;height:36px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;text-align:left;border:none;border-radius:18px;justify-content:space-between;align-items:center;gap:12px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.VLDzKq_selector:hover{background:var(--dsw-alias-interactive-bg-hover)}.VLDzKq_selector:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}.VLDzKq_chevron{color:var(--dsw-alias-label-secondary);flex:none}.VLDzKq_modelRow .VLDzKq_selector{flex:1;min-width:0}.VLDzKq_toggleRow{color:var(--dsw-alias-label-primary);justify-content:space-between;align-items:flex-start;gap:16px;padding:14px 0;font-size:13px;line-height:1.5;display:flex}.VLDzKq_toggleText{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.VLDzKq_toggleLabel{color:var(--dsw-alias-label-primary);font-size:14px;line-height:22px}.VLDzKq_toggleDesc{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.VLDzKq_switch{box-sizing:border-box;background:var(--dsw-alias-border-l3);cursor:pointer;border:0;border-radius:10px;flex:none;width:36px;height:20px;padding:2px;position:relative}.VLDzKq_switchOn{background:var(--dsw-alias-brand-primary)}.VLDzKq_switch:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.VLDzKq_switch:disabled{cursor:default;opacity:.5}.VLDzKq_thumb{corner-shape:round;background:var(--dsw-alias-label-primary-foreground);border-radius:50%;width:16px;height:16px;transition:transform .12s;display:block}.VLDzKq_switchOn .VLDzKq_thumb{transform:translate(16px)}.VLDzKq_sliderRow{flex-direction:column;gap:6px;padding:10px 0;display:flex}.VLDzKq_sliderHead{justify-content:space-between;align-items:center;display:flex}.VLDzKq_sliderLabel{color:var(--dsw-alias-label-primary);font-size:14px;line-height:22px}.VLDzKq_sliderValue{font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.VLDzKq_slider{width:100%;accent-color:var(--dsw-alias-button-primary-fill)}.VLDzKq_btnRow{flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0 4px;display:flex}.VLDzKq_result{font-size:12px;line-height:18px}.VLDzKq_resultOk{color:var(--dsw-alias-state-success-primary)}.VLDzKq_resultFail{color:var(--dsw-alias-state-error-primary)}.VLDzKq_cardTop{position:relative}.VLDzKq_cardTopWithVoice{grid-template-columns:minmax(0,1fr) auto 42px;align-items:center;display:grid}.VLDzKq_cardTopWithVoice .VLDzKq_cardHeader{grid-area:1/1/auto/-1;grid-template-columns:subgrid;display:grid}.VLDzKq_cardTopWithVoice .VLDzKq_cardHeadText{grid-column:1}.VLDzKq_cardTopWithVoice .VLDzKq_cardChevron{grid-column:3;justify-self:end}.VLDzKq_cardTopWithVoice .VLDzKq_quickVoice{z-index:1;grid-area:1/2}.VLDzKq_voiceDot{corner-shape:round;background:#3984f5;border-radius:50%;flex:none;width:12px;height:12px}.VLDzKq_quickVoice{border:1px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;overflow-wrap:anywhere;border-radius:18px;align-items:center;gap:8px;max-width:180px;margin:0;padding:8px 12px;display:inline-flex}.VLDzKq_quickVoice:hover{background:var(--dsw-alias-interactive-bg-hover)}.VLDzKq_quickVoice:focus-visible{outline:2px solid var(--dsw-alias-brand-primary)}.VLDzKq_cardTopWithVoice .VLDzKq_quickVoice{gap:0;max-width:220px;padding:0;position:relative}.VLDzKq_voiceChoice,.VLDzKq_voicePreview{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:8px 10px}.VLDzKq_voiceChoice{overflow-wrap:anywhere;align-items:center;gap:8px;min-width:0;display:inline-flex}.VLDzKq_voicePreview{border-left:1px solid var(--dsw-alias-border-l4);flex:none;font-size:12px}.VLDzKq_voiceChoice:focus-visible,.VLDzKq_voicePreview:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);border-radius:12px}.VLDzKq_previewError{z-index:2;border:1px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-2);border-radius:8px;width:240px;padding:10px;font-size:12px;position:absolute;top:100%;right:0}.VLDzKq_radioGroup{flex-wrap:wrap;gap:12px 24px;display:flex}.VLDzKq_radioGroup label{cursor:pointer;align-items:center;gap:8px;padding:6px 0;display:inline-flex}.VLDzKq_radioGroup input{width:16px;height:16px;accent-color:var(--dsw-alias-state-info-primary,#3978f6);cursor:pointer;margin:0}.VLDzKq_modelRow{align-items:center;gap:8px;display:flex}.VLDzKq_modelRow>:first-child{flex:1;min-width:0}.VLDzKq_modelRow>:last-child:not(:first-child){flex:none}.VLDzKq_realtimeSelectionRow{align-items:center;gap:12px;display:flex}.VLDzKq_realtimeModel{flex:1;min-width:0}.VLDzKq_realtimeSelectionRow>.VLDzKq_field{flex:none;max-width:40%}.VLDzKq_realtimeSelectionRow>.VLDzKq_field .VLDzKq_input{text-overflow:ellipsis;white-space:nowrap;width:auto;min-width:96px;overflow:hidden}.VLDzKq_subsectionSummary{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:60%;color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:400;overflow:hidden}";
|
|
23207
23226
|
const tagId$2 = "@voicemesh/dsh-voice/VoiceSettings.module.css";
|
|
23208
23227
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
23209
23228
|
const tag = document.createElement("style");
|
|
@@ -23213,64 +23232,64 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23213
23232
|
document.head.appendChild(tag);
|
|
23214
23233
|
}
|
|
23215
23234
|
var VoiceSettings_module_css_default = {
|
|
23216
|
-
"badge": "
|
|
23217
|
-
"badgeMuted": "
|
|
23218
|
-
"btnRow": "
|
|
23219
|
-
"card": "
|
|
23220
|
-
"cardBody": "
|
|
23221
|
-
"cardChevron": "
|
|
23222
|
-
"cardChevronOpen": "
|
|
23223
|
-
"cardDesc": "
|
|
23224
|
-
"cardHeadText": "
|
|
23225
|
-
"cardHeader": "
|
|
23226
|
-
"cardOpen": "
|
|
23227
|
-
"cardTitle": "
|
|
23228
|
-
"cardTop": "
|
|
23229
|
-
"cardTopWithVoice": "
|
|
23230
|
-
"chevron": "
|
|
23231
|
-
"field": "
|
|
23232
|
-
"heading": "
|
|
23233
|
-
"hint": "
|
|
23234
|
-
"input": "
|
|
23235
|
-
"label": "
|
|
23236
|
-
"labelRow": "
|
|
23237
|
-
"modelRow": "
|
|
23238
|
-
"page": "
|
|
23239
|
-
"previewError": "
|
|
23240
|
-
"quickVoice": "
|
|
23241
|
-
"radioGroup": "
|
|
23242
|
-
"realtimeModel": "
|
|
23243
|
-
"realtimeSelectionRow": "
|
|
23244
|
-
"result": "
|
|
23245
|
-
"resultFail": "
|
|
23246
|
-
"resultOk": "
|
|
23247
|
-
"selector": "
|
|
23248
|
-
"slider": "
|
|
23249
|
-
"sliderHead": "
|
|
23250
|
-
"sliderLabel": "
|
|
23251
|
-
"sliderRow": "
|
|
23252
|
-
"sliderValue": "
|
|
23253
|
-
"subsection": "
|
|
23254
|
-
"subsectionBody": "
|
|
23255
|
-
"subsectionChevron": "
|
|
23256
|
-
"subsectionChevronOpen": "
|
|
23257
|
-
"subsectionHeader": "
|
|
23258
|
-
"subsectionSummary": "
|
|
23259
|
-
"subsectionTitle": "
|
|
23260
|
-
"switch": "
|
|
23261
|
-
"switchOn": "
|
|
23262
|
-
"thumb": "
|
|
23263
|
-
"toggleDesc": "
|
|
23264
|
-
"toggleLabel": "
|
|
23265
|
-
"toggleRow": "
|
|
23266
|
-
"toggleText": "
|
|
23267
|
-
"vadReason": "
|
|
23268
|
-
"vadStatus": "
|
|
23269
|
-
"vadStatusOk": "
|
|
23270
|
-
"vadStatusWarn": "
|
|
23271
|
-
"voiceChoice": "
|
|
23272
|
-
"voiceDot": "
|
|
23273
|
-
"voicePreview": "
|
|
23235
|
+
"badge": "VLDzKq_badge",
|
|
23236
|
+
"badgeMuted": "VLDzKq_badgeMuted",
|
|
23237
|
+
"btnRow": "VLDzKq_btnRow",
|
|
23238
|
+
"card": "VLDzKq_card",
|
|
23239
|
+
"cardBody": "VLDzKq_cardBody",
|
|
23240
|
+
"cardChevron": "VLDzKq_cardChevron",
|
|
23241
|
+
"cardChevronOpen": "VLDzKq_cardChevronOpen",
|
|
23242
|
+
"cardDesc": "VLDzKq_cardDesc",
|
|
23243
|
+
"cardHeadText": "VLDzKq_cardHeadText",
|
|
23244
|
+
"cardHeader": "VLDzKq_cardHeader",
|
|
23245
|
+
"cardOpen": "VLDzKq_cardOpen",
|
|
23246
|
+
"cardTitle": "VLDzKq_cardTitle",
|
|
23247
|
+
"cardTop": "VLDzKq_cardTop",
|
|
23248
|
+
"cardTopWithVoice": "VLDzKq_cardTopWithVoice",
|
|
23249
|
+
"chevron": "VLDzKq_chevron",
|
|
23250
|
+
"field": "VLDzKq_field",
|
|
23251
|
+
"heading": "VLDzKq_heading",
|
|
23252
|
+
"hint": "VLDzKq_hint",
|
|
23253
|
+
"input": "VLDzKq_input",
|
|
23254
|
+
"label": "VLDzKq_label",
|
|
23255
|
+
"labelRow": "VLDzKq_labelRow",
|
|
23256
|
+
"modelRow": "VLDzKq_modelRow",
|
|
23257
|
+
"page": "VLDzKq_page",
|
|
23258
|
+
"previewError": "VLDzKq_previewError",
|
|
23259
|
+
"quickVoice": "VLDzKq_quickVoice",
|
|
23260
|
+
"radioGroup": "VLDzKq_radioGroup",
|
|
23261
|
+
"realtimeModel": "VLDzKq_realtimeModel",
|
|
23262
|
+
"realtimeSelectionRow": "VLDzKq_realtimeSelectionRow",
|
|
23263
|
+
"result": "VLDzKq_result",
|
|
23264
|
+
"resultFail": "VLDzKq_resultFail",
|
|
23265
|
+
"resultOk": "VLDzKq_resultOk",
|
|
23266
|
+
"selector": "VLDzKq_selector",
|
|
23267
|
+
"slider": "VLDzKq_slider",
|
|
23268
|
+
"sliderHead": "VLDzKq_sliderHead",
|
|
23269
|
+
"sliderLabel": "VLDzKq_sliderLabel",
|
|
23270
|
+
"sliderRow": "VLDzKq_sliderRow",
|
|
23271
|
+
"sliderValue": "VLDzKq_sliderValue",
|
|
23272
|
+
"subsection": "VLDzKq_subsection",
|
|
23273
|
+
"subsectionBody": "VLDzKq_subsectionBody",
|
|
23274
|
+
"subsectionChevron": "VLDzKq_subsectionChevron",
|
|
23275
|
+
"subsectionChevronOpen": "VLDzKq_subsectionChevronOpen",
|
|
23276
|
+
"subsectionHeader": "VLDzKq_subsectionHeader",
|
|
23277
|
+
"subsectionSummary": "VLDzKq_subsectionSummary",
|
|
23278
|
+
"subsectionTitle": "VLDzKq_subsectionTitle",
|
|
23279
|
+
"switch": "VLDzKq_switch",
|
|
23280
|
+
"switchOn": "VLDzKq_switchOn",
|
|
23281
|
+
"thumb": "VLDzKq_thumb",
|
|
23282
|
+
"toggleDesc": "VLDzKq_toggleDesc",
|
|
23283
|
+
"toggleLabel": "VLDzKq_toggleLabel",
|
|
23284
|
+
"toggleRow": "VLDzKq_toggleRow",
|
|
23285
|
+
"toggleText": "VLDzKq_toggleText",
|
|
23286
|
+
"vadReason": "VLDzKq_vadReason",
|
|
23287
|
+
"vadStatus": "VLDzKq_vadStatus",
|
|
23288
|
+
"vadStatusOk": "VLDzKq_vadStatusOk",
|
|
23289
|
+
"vadStatusWarn": "VLDzKq_vadStatusWarn",
|
|
23290
|
+
"voiceChoice": "VLDzKq_voiceChoice",
|
|
23291
|
+
"voiceDot": "VLDzKq_voiceDot",
|
|
23292
|
+
"voicePreview": "VLDzKq_voicePreview"
|
|
23274
23293
|
};
|
|
23275
23294
|
/** Local model installation dialog; progress belongs to the host and survives closing the dialog. */
|
|
23276
23295
|
/** Install a selected recognition, synthesis or wake pack.
|
|
@@ -23465,7 +23484,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23465
23484
|
]
|
|
23466
23485
|
})] });
|
|
23467
23486
|
}
|
|
23468
|
-
const css$1 = ".
|
|
23487
|
+
const css$1 = ".EcUKbq_dialog{border:1px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-2);width:min(900px,100vw - 40px);max-height:min(850px,100dvh - 48px);color:var(--dsw-alias-label-primary);font:inherit;border-radius:20px;padding:0}.EcUKbq_dialog[open]{flex-direction:column;display:flex}.EcUKbq_dialog::backdrop{background:#00000073}.EcUKbq_header,.EcUKbq_controls,.EcUKbq_footer{padding:20px 24px}.EcUKbq_header,.EcUKbq_footer{align-items:center;gap:12px;display:flex}.EcUKbq_header{border-bottom:1px solid var(--dsw-alias-border-l4);justify-content:space-between}.EcUKbq_header h2{margin:0 0 8px;font-size:20px}.EcUKbq_header p,.EcUKbq_metadata p{color:var(--dsw-alias-label-tertiary);margin:0}.EcUKbq_dialog button,.EcUKbq_dialog select,.EcUKbq_dialog input:not([type=checkbox]){border:1px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-3);color:inherit;font:inherit;border-radius:10px;padding:10px 12px}.EcUKbq_dialog button{cursor:pointer;flex-shrink:0}.EcUKbq_dialog button:hover{background:var(--dsw-alias-interactive-bg-hover)}.EcUKbq_dialog button:disabled{opacity:.5;cursor:default}.EcUKbq_dialog button[aria-pressed=true]{color:var(--dsw-alias-brand-primary)}.EcUKbq_dialog :focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.EcUKbq_controls>input{box-sizing:border-box;width:100%}.EcUKbq_filters{flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0;display:flex}.EcUKbq_filters label{align-items:center;gap:6px;display:flex}.EcUKbq_list{min-height:120px;padding:0 24px 12px;overflow-y:auto}.EcUKbq_row{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l4);border-radius:12px;align-items:center;gap:8px;min-height:68px;margin-bottom:10px;padding:10px 12px;display:flex}.EcUKbq_avatar{corner-shape:round;width:36px;height:36px;color:var(--dsw-static-neutral-00);border-radius:50%;flex-shrink:0;place-items:center;font-size:13px;font-weight:700;display:grid}.EcUKbq_avatar0{background:var(--dsw-static-amber-400)}.EcUKbq_avatar1{background:var(--dsw-static-amber-600)}.EcUKbq_avatar2{background:var(--dsw-static-neutral-bluish-600)}.EcUKbq_avatar3{background:var(--dsw-static-blue-400)}.EcUKbq_avatar4{background:var(--dsw-static-green-400)}.EcUKbq_avatar5{background:var(--dsw-static-deepseek-500)}.EcUKbq_metadata{overflow-wrap:anywhere;flex:1;min-width:0}.EcUKbq_metadata strong,.EcUKbq_metadata small{display:block}.EcUKbq_metadata small{color:var(--dsw-alias-label-tertiary)}.EcUKbq_metadata p{font-size:14px}.EcUKbq_row .EcUKbq_action{width:36px;height:36px;color:var(--dsw-alias-label-secondary);place-items:center;padding:0;display:grid}.EcUKbq_row .EcUKbq_select{padding-inline:14px}.EcUKbq_selectedRow{background:var(--dsw-alias-interactive-bg-hover)}.EcUKbq_footer{border-top:1px solid var(--dsw-alias-border-l4);flex-wrap:wrap}.EcUKbq_manual{flex:1;min-width:180px}.EcUKbq_manual summary{cursor:pointer;color:var(--dsw-alias-label-tertiary);font-size:13px}.EcUKbq_manualRow{align-items:center;gap:12px;margin-top:10px;display:flex}.EcUKbq_manualRow input{flex:1;min-width:0}@media (width<=600px){.EcUKbq_header,.EcUKbq_controls,.EcUKbq_footer{padding:14px}.EcUKbq_list{padding:0 14px}.EcUKbq_row{flex-wrap:wrap}.EcUKbq_metadata{flex-basis:calc(100% - 60px)}}.EcUKbq_compact{width:min(560px,100vw - 40px)}.EcUKbq_compact .EcUKbq_header{border:0;padding:22px 24px 8px}.EcUKbq_compact .EcUKbq_header h2{font-size:24px}.EcUKbq_carousel{text-align:center;padding:18px 24px;overflow-y:auto}.EcUKbq_dialog .EcUKbq_voiceOrb{corner-shape:round;color:#243d73;background:radial-gradient(at 30% 65%,#eef6ff 0%,#0000 52%),radial-gradient(at 80% 75%,#bacdff 0%,#0000 60%),linear-gradient(145deg,#687eff,#d6dfff);border:0;border-radius:50%;place-items:center;width:136px;height:136px;margin:8px auto 26px;display:grid;box-shadow:inset 0 0 24px #fff5}.EcUKbq_voiceOrb span{opacity:0;transition:opacity .15s}.EcUKbq_voiceOrb[aria-busy=true] span,.EcUKbq_voiceOrb:hover span,.EcUKbq_voiceOrb:focus-visible span,.EcUKbq_voiceOrbPlaying span{opacity:1}.EcUKbq_voiceOrbPlaying{animation:1.8s ease-in-out infinite EcUKbq_voicePreviewPulse}.EcUKbq_voiceSlide{justify-content:space-between;align-items:center;gap:18px;display:flex}.EcUKbq_voiceSlide>div{overflow-wrap:anywhere;flex:1;min-width:0}.EcUKbq_voiceSlide h3{margin:0 0 12px;font-size:30px}.EcUKbq_voiceSlide p{min-height:24px;color:var(--dsw-alias-label-tertiary);margin:0}.EcUKbq_dialog .EcUKbq_voiceSlide button{color:var(--dsw-alias-label-tertiary);background:0 0;border:0;font-size:36px}.EcUKbq_dots{justify-content:center;gap:12px;margin:24px 0 14px;display:flex}.EcUKbq_dialog .EcUKbq_dots button{corner-shape:round;background:color-mix(in srgb, var(--dsw-alias-brand-primary) 35%, transparent);border:0;border-radius:50%;width:12px;height:12px;padding:0}.EcUKbq_dialog .EcUKbq_dots button[aria-pressed=true]{background:var(--dsw-alias-brand-primary)}.EcUKbq_dialog .EcUKbq_dots button[aria-current=true]{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.EcUKbq_selectedMark{background:color-mix(in srgb, var(--dsw-alias-brand-primary) 18%, transparent);color:var(--dsw-alias-brand-primary);border-radius:999px;margin:0 0 8px;padding:2px 8px;display:inline-block}.EcUKbq_carousel small{color:var(--dsw-alias-label-tertiary)}.EcUKbq_quickFooter{flex-wrap:wrap;align-items:center;gap:12px;padding:12px 24px 20px;display:flex}.EcUKbq_dialog .EcUKbq_browse{background:0 0;border:0;margin-right:auto;font-size:13px}.EcUKbq_dialog .EcUKbq_done{background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-2);padding-inline:24px}@keyframes EcUKbq_voicePreviewPulse{50%{filter:brightness(1.12);transform:scale(1.05)}}@media (prefers-reduced-motion:reduce){.EcUKbq_voiceOrbPlaying{animation:none}}@media (width<=480px){.EcUKbq_quickFooter{padding:14px}.EcUKbq_dialog .EcUKbq_browse{flex-basis:100%}}.EcUKbq_previewSpinner{box-sizing:border-box;corner-shape:round;vertical-align:middle;border:2px solid;border-right-color:#0000;border-radius:50%;width:1em;height:1em;animation:.75s linear infinite EcUKbq_voicePreviewSpin;display:inline-block}@keyframes EcUKbq_voicePreviewSpin{to{transform:rotate(360deg)}}";
|
|
23469
23488
|
const tagId$1 = "@voicemesh/dsh-voice/VoicePicker.module.css";
|
|
23470
23489
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
23471
23490
|
const tag = document.createElement("style");
|
|
@@ -23475,39 +23494,39 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23475
23494
|
document.head.appendChild(tag);
|
|
23476
23495
|
}
|
|
23477
23496
|
var VoicePicker_module_css_default = {
|
|
23478
|
-
"action": "
|
|
23479
|
-
"avatar": "
|
|
23480
|
-
"avatar0": "
|
|
23481
|
-
"avatar1": "
|
|
23482
|
-
"avatar2": "
|
|
23483
|
-
"avatar3": "
|
|
23484
|
-
"avatar4": "
|
|
23485
|
-
"avatar5": "
|
|
23486
|
-
"browse": "
|
|
23487
|
-
"carousel": "
|
|
23488
|
-
"compact": "
|
|
23489
|
-
"controls": "
|
|
23490
|
-
"dialog": "
|
|
23491
|
-
"done": "
|
|
23492
|
-
"dots": "
|
|
23493
|
-
"filters": "
|
|
23494
|
-
"footer": "
|
|
23495
|
-
"header": "
|
|
23496
|
-
"list": "
|
|
23497
|
-
"manual": "
|
|
23498
|
-
"manualRow": "
|
|
23499
|
-
"metadata": "
|
|
23500
|
-
"previewSpinner": "
|
|
23501
|
-
"quickFooter": "
|
|
23502
|
-
"row": "
|
|
23503
|
-
"select": "
|
|
23504
|
-
"selectedMark": "
|
|
23505
|
-
"selectedRow": "
|
|
23506
|
-
"voiceOrb": "
|
|
23507
|
-
"voiceOrbPlaying": "
|
|
23508
|
-
"voicePreviewPulse": "
|
|
23509
|
-
"voicePreviewSpin": "
|
|
23510
|
-
"voiceSlide": "
|
|
23497
|
+
"action": "EcUKbq_action",
|
|
23498
|
+
"avatar": "EcUKbq_avatar",
|
|
23499
|
+
"avatar0": "EcUKbq_avatar0",
|
|
23500
|
+
"avatar1": "EcUKbq_avatar1",
|
|
23501
|
+
"avatar2": "EcUKbq_avatar2",
|
|
23502
|
+
"avatar3": "EcUKbq_avatar3",
|
|
23503
|
+
"avatar4": "EcUKbq_avatar4",
|
|
23504
|
+
"avatar5": "EcUKbq_avatar5",
|
|
23505
|
+
"browse": "EcUKbq_browse",
|
|
23506
|
+
"carousel": "EcUKbq_carousel",
|
|
23507
|
+
"compact": "EcUKbq_compact",
|
|
23508
|
+
"controls": "EcUKbq_controls",
|
|
23509
|
+
"dialog": "EcUKbq_dialog",
|
|
23510
|
+
"done": "EcUKbq_done",
|
|
23511
|
+
"dots": "EcUKbq_dots",
|
|
23512
|
+
"filters": "EcUKbq_filters",
|
|
23513
|
+
"footer": "EcUKbq_footer",
|
|
23514
|
+
"header": "EcUKbq_header",
|
|
23515
|
+
"list": "EcUKbq_list",
|
|
23516
|
+
"manual": "EcUKbq_manual",
|
|
23517
|
+
"manualRow": "EcUKbq_manualRow",
|
|
23518
|
+
"metadata": "EcUKbq_metadata",
|
|
23519
|
+
"previewSpinner": "EcUKbq_previewSpinner",
|
|
23520
|
+
"quickFooter": "EcUKbq_quickFooter",
|
|
23521
|
+
"row": "EcUKbq_row",
|
|
23522
|
+
"select": "EcUKbq_select",
|
|
23523
|
+
"selectedMark": "EcUKbq_selectedMark",
|
|
23524
|
+
"selectedRow": "EcUKbq_selectedRow",
|
|
23525
|
+
"voiceOrb": "EcUKbq_voiceOrb",
|
|
23526
|
+
"voiceOrbPlaying": "EcUKbq_voiceOrbPlaying",
|
|
23527
|
+
"voicePreviewPulse": "EcUKbq_voicePreviewPulse",
|
|
23528
|
+
"voicePreviewSpin": "EcUKbq_voicePreviewSpin",
|
|
23529
|
+
"voiceSlide": "EcUKbq_voiceSlide"
|
|
23511
23530
|
};
|
|
23512
23531
|
/** Playback glyph shared by voice sample controls. */
|
|
23513
23532
|
/** Show preparation until audio starts, then expose the stop glyph. */
|
|
@@ -24141,7 +24160,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24141
24160
|
})] })]
|
|
24142
24161
|
});
|
|
24143
24162
|
}
|
|
24144
|
-
const css = ".
|
|
24163
|
+
const css = ".uXUOnq_shell{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);background:0 0;border-radius:10px;width:100%;max-width:none;padding:16px}";
|
|
24145
24164
|
const tagId = "@voicemesh/dsh-voice/VoiceSettingsShell.module.css";
|
|
24146
24165
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
24147
24166
|
const tag = document.createElement("style");
|
|
@@ -24150,7 +24169,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24150
24169
|
tag.textContent = css;
|
|
24151
24170
|
document.head.appendChild(tag);
|
|
24152
24171
|
}
|
|
24153
|
-
var VoiceSettingsShell_module_css_default = { "shell": "
|
|
24172
|
+
var VoiceSettingsShell_module_css_default = { "shell": "uXUOnq_shell" };
|
|
24154
24173
|
/** Voice preferences, write-only host credential setup, and provider diagnostics. */
|
|
24155
24174
|
/** The test phrase spoken by the read-back test. */
|
|
24156
24175
|
const READ_BACK_TEST = "This is a voice test. Can you hear me?";
|
|
@@ -24176,6 +24195,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24176
24195
|
const [keyInput, setKeyInput] = (0, react.useState)("");
|
|
24177
24196
|
const [customKey, setCustomKey] = (0, react.useState)("");
|
|
24178
24197
|
const [xaiCredentialInput, setXaiCredentialInput] = (0, react.useState)("");
|
|
24198
|
+
const [deepseekKey, setDeepseekKey] = (0, react.useState)("");
|
|
24179
24199
|
const selectedSts = resolveStsSettings(config);
|
|
24180
24200
|
const [fishKey, setFishKey] = (0, react.useState)("");
|
|
24181
24201
|
const [openaiKey, setOpenaiKey] = (0, react.useState)("");
|
|
@@ -24191,13 +24211,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24191
24211
|
}, [openSpeech]);
|
|
24192
24212
|
const activeMode = config.voiceMode === "sts" ? "sts" : "tts";
|
|
24193
24213
|
const ttsVoice = pipelineVoice(config);
|
|
24194
|
-
const ttsProvider = config.ttsEngine === "gemini" ? "gemini" : config.ttsEngine === "openai" ? "openai" : config.ttsEngine === "fish" ? "fish" : config.ttsEngine === "kokoro" ? "kokoro" : config.ttsEngine === "grok" ? "xai" : "deepgram";
|
|
24214
|
+
const ttsProvider = config.ttsEngine === "deepseek" ? "deepseek" : config.ttsEngine === "gemini" ? "gemini" : config.ttsEngine === "openai" ? "openai" : config.ttsEngine === "fish" ? "fish" : config.ttsEngine === "kokoro" ? "kokoro" : config.ttsEngine === "grok" ? "xai" : "deepgram";
|
|
24195
24215
|
const setTtsVoice = (value) => {
|
|
24196
24216
|
if (config.ttsEngine === "gemini") actions.setGeminiTtsVoice(value);
|
|
24197
24217
|
else if (config.ttsEngine === "openai") actions.setOpenaiTtsVoice(value);
|
|
24198
24218
|
else if (config.ttsEngine === "fish") actions.setFishVoice(value);
|
|
24199
24219
|
else if (config.ttsEngine === "kokoro") actions.setLocalTtsVoice(value);
|
|
24200
24220
|
else if (config.ttsEngine === "grok") actions.setGrokVoice(value);
|
|
24221
|
+
else if (config.ttsEngine === "deepseek") actions.setDeepseekTtsVoice(value);
|
|
24201
24222
|
else actions.setDeepgramVoiceModel(value);
|
|
24202
24223
|
};
|
|
24203
24224
|
(0, react.useEffect)(() => {
|
|
@@ -24231,7 +24252,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24231
24252
|
const [localVoiceLabel, setLocalVoiceLabel] = (0, react.useState)("");
|
|
24232
24253
|
(0, react.useEffect)(() => {
|
|
24233
24254
|
setLocalVoiceLabel("");
|
|
24234
|
-
if (config.ttsEngine !== "kokoro" && config.ttsEngine !== "fish" || !ttsVoice) return;
|
|
24255
|
+
if (config.ttsEngine !== "kokoro" && config.ttsEngine !== "fish" && config.ttsEngine !== "deepseek" || !ttsVoice) return;
|
|
24235
24256
|
const abort = new AbortController();
|
|
24236
24257
|
listVoices({
|
|
24237
24258
|
provider: ttsProvider,
|
|
@@ -24487,6 +24508,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24487
24508
|
(0, react.useEffect)(() => {
|
|
24488
24509
|
setXaiCredentialInput("");
|
|
24489
24510
|
}, [config.xaiCredential]);
|
|
24511
|
+
(0, react.useEffect)(() => {
|
|
24512
|
+
setDeepseekKey("");
|
|
24513
|
+
}, [config.deepseekTtsCredential]);
|
|
24490
24514
|
const [credentialBusy, setCredentialBusy] = (0, react.useState)(false);
|
|
24491
24515
|
const [credentialError, setCredentialError] = (0, react.useState)(false);
|
|
24492
24516
|
const saveKey = async (slot, value, clear, onSaved) => {
|
|
@@ -24508,6 +24532,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24508
24532
|
const applyXaiKey = () => saveKey("xai", xaiCredentialInput, () => {
|
|
24509
24533
|
setXaiCredentialInput("");
|
|
24510
24534
|
});
|
|
24535
|
+
const applyDeepseekKey = () => saveKey("deepseek-tts", deepseekKey, () => {
|
|
24536
|
+
setDeepseekKey("");
|
|
24537
|
+
});
|
|
24511
24538
|
const sttRevision = (0, react.useRef)(0);
|
|
24512
24539
|
(0, react.useEffect)(() => {
|
|
24513
24540
|
sttRevision.current += 1;
|
|
@@ -24688,7 +24715,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24688
24715
|
const ttsUsesGrok = GROK_TTS_IDS.has(config.ttsEngine);
|
|
24689
24716
|
const dgHome = sttUsesDeepgram ? "stt" : ttsUsesDeepgram ? "tts" : null;
|
|
24690
24717
|
const xaiHome = sttUsesGrok ? "stt" : ttsUsesGrok ? "tts" : null;
|
|
24691
|
-
const ttsReady = config.ttsEngine === "" ? false : config.ttsEngine === "kokoro" ? ttsVoice !== "" : config.ttsEngine === "fish" ? Boolean(config.fishCredential) && fishKey.trim() === "" && ttsVoice !== "" : config.ttsEngine === "openai" ? Boolean(config.openaiStsCredential && config.openaiTtsModel) && openaiKey.trim() === "" && ttsVoice !== "" : config.ttsEngine === "gemini" ? Boolean(config.geminiStsCredential && config.geminiTtsModel) && geminiKey.trim() === "" && ttsVoice !== "" : ttsUsesGrok ? Boolean(config.xaiCredential) && xaiCredentialInput.trim() === "" && ttsVoice !== "" : Boolean(config.deepgramCredential) && keyInput.trim() === "" && ttsVoice !== "";
|
|
24718
|
+
const ttsReady = config.ttsEngine === "" ? false : config.ttsEngine === "kokoro" ? ttsVoice !== "" : config.ttsEngine === "fish" ? Boolean(config.fishCredential) && fishKey.trim() === "" && ttsVoice !== "" : config.ttsEngine === "openai" ? Boolean(config.openaiStsCredential && config.openaiTtsModel) && openaiKey.trim() === "" && ttsVoice !== "" : config.ttsEngine === "gemini" ? Boolean(config.geminiStsCredential && config.geminiTtsModel) && geminiKey.trim() === "" && ttsVoice !== "" : config.ttsEngine === "deepseek" ? Boolean(config.deepseekTtsCredential) && deepseekKey.trim() === "" && ttsVoice !== "" : ttsUsesGrok ? Boolean(config.xaiCredential) && xaiCredentialInput.trim() === "" && ttsVoice !== "" : Boolean(config.deepgramCredential) && keyInput.trim() === "" && ttsVoice !== "";
|
|
24692
24719
|
const dgKeyField = dgHome === null ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CredentialField, {
|
|
24693
24720
|
t,
|
|
24694
24721
|
id: "voice-deepgram-key",
|
|
@@ -24749,6 +24776,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24749
24776
|
disabled: credentialBusy || busy,
|
|
24750
24777
|
onApply: () => saveKey("fish", fishKey, () => setFishKey(""))
|
|
24751
24778
|
});
|
|
24779
|
+
const deepseekCredentialField = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CredentialField, {
|
|
24780
|
+
t,
|
|
24781
|
+
id: "voice-deepseek-tts-key",
|
|
24782
|
+
label: t("settings.deepseekTtsCredential"),
|
|
24783
|
+
configured: Boolean(config.deepseekTtsCredential),
|
|
24784
|
+
value: deepseekKey,
|
|
24785
|
+
onChange: setDeepseekKey,
|
|
24786
|
+
disabled: credentialBusy || busy,
|
|
24787
|
+
onApply: applyDeepseekKey
|
|
24788
|
+
});
|
|
24752
24789
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
24753
24790
|
className: `${VoiceSettings_module_css_default.page} ${VoiceSettingsShell_module_css_default.shell}`,
|
|
24754
24791
|
children: [
|
|
@@ -25121,7 +25158,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25121
25158
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(VoiceCard, {
|
|
25122
25159
|
t,
|
|
25123
25160
|
title: t("settings.synthesisTitle"),
|
|
25124
|
-
desc: [TTS_ENGINES.find((engine) => engine.id === config.ttsEngine)?.label, voiceDisplayName(config.ttsEngine === "kokoro" || config.ttsEngine === "fish" ? localVoiceLabel || ttsVoice : ttsVoice)].filter(Boolean).join(" · "),
|
|
25161
|
+
desc: [TTS_ENGINES.find((engine) => engine.id === config.ttsEngine)?.label, voiceDisplayName(config.ttsEngine === "kokoro" || config.ttsEngine === "fish" || config.ttsEngine === "deepseek" ? localVoiceLabel || ttsVoice : ttsVoice)].filter(Boolean).join(" · "),
|
|
25125
25162
|
children: [
|
|
25126
25163
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SelectField, {
|
|
25127
25164
|
id: "voice-tts-engine",
|
|
@@ -25141,6 +25178,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25141
25178
|
xaiHome === "tts" ? xaiCredentialField : null,
|
|
25142
25179
|
(config.ttsEngine === "openai" || config.ttsEngine === "gemini") && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [config.sttEngine !== config.ttsEngine && pipelineCredentialField(config.ttsEngine), pipelineModels(config.ttsEngine, "tts")] }),
|
|
25143
25180
|
config.ttsEngine === "fish" && config.sttEngine !== "fish" && fishCredentialField,
|
|
25181
|
+
config.ttsEngine === "deepseek" && deepseekCredentialField,
|
|
25144
25182
|
dgHome === "stt" && ttsUsesDeepgram && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
25145
25183
|
className: VoiceSettings_module_css_default.hint,
|
|
25146
25184
|
children: t("settings.deepgramShared")
|
|
@@ -25149,7 +25187,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25149
25187
|
className: VoiceSettings_module_css_default.hint,
|
|
25150
25188
|
children: t("settings.xaiShared")
|
|
25151
25189
|
}),
|
|
25152
|
-
(ttsUsesDeepgram || ttsUsesGrok || config.ttsEngine === "gemini" || config.ttsEngine === "openai" || config.ttsEngine === "fish" || config.ttsEngine === "kokoro") && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
25190
|
+
(ttsUsesDeepgram || ttsUsesGrok || config.ttsEngine === "gemini" || config.ttsEngine === "openai" || config.ttsEngine === "fish" || config.ttsEngine === "kokoro" || config.ttsEngine === "deepseek") && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
25153
25191
|
className: VoiceSettings_module_css_default.field,
|
|
25154
25192
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
25155
25193
|
className: VoiceSettings_module_css_default.label,
|
|
@@ -28260,6 +28298,7 @@ ${value}`, dataLines++;
|
|
|
28260
28298
|
const voice = createVoiceRuntimeStore();
|
|
28261
28299
|
const credentialActions = {
|
|
28262
28300
|
deepgram: config.actions.setDeepgramCredential,
|
|
28301
|
+
"deepseek-tts": config.actions.setDeepseekTtsCredential,
|
|
28263
28302
|
xai: config.actions.setXaiCredential,
|
|
28264
28303
|
fish: config.actions.setFishCredential,
|
|
28265
28304
|
"xai-sts": config.actions.setStsCredential,
|