feat(tts): raise default glyph speed 1.35 -> 1.4
Bump the base TTS speed default (WSAI_TTS_SPEED, slider default/label, dashboard fallbacks) so the bot speaks a bit faster by default. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -520,7 +520,7 @@ class Dashboard:
|
||||
def _tts_base(self) -> dict:
|
||||
t = self.tts
|
||||
return {
|
||||
"speed": float(getattr(t, "speed", 1.35)),
|
||||
"speed": float(getattr(t, "speed", 1.4)),
|
||||
"word_gap": float(getattr(t, "word_gap", -0.07)),
|
||||
"sentence_gap": float(getattr(t, "sentence_gap", -0.30)),
|
||||
"pitch": float(getattr(t, "pitch", 0.0)),
|
||||
@@ -1038,8 +1038,8 @@ PAGE = r"""<!DOCTYPE html>
|
||||
<span id="tEmoNote" class="sttstat">감정을 고르면 그 감정만 따로 조절합니다. 기본(공통)은 태그 없는 말투에 적용됩니다.</span>
|
||||
</div>
|
||||
<div class="ttsgrid">
|
||||
<label>글자 속도 <b id="tvSpeed">1.35x</b>
|
||||
<input type="range" id="tSpeed" min="0.5" max="2.0" step="0.05" value="1.35"></label>
|
||||
<label>글자 속도 <b id="tvSpeed">1.40x</b>
|
||||
<input type="range" id="tSpeed" min="0.5" max="2.0" step="0.05" value="1.4"></label>
|
||||
<label>단어 간격 <b id="tvWord">-70 ms</b>
|
||||
<input type="range" id="tWord" min="-0.2" max="0.5" step="0.01" value="-0.07"></label>
|
||||
<label>문장 간격 <b id="tvSent">-0.30 s</b>
|
||||
@@ -1460,7 +1460,7 @@ async function pollSTTLoad(target){
|
||||
// --- 봇 목소리(TTS) 조절: 감정별 슬라이더 → 미리듣기 → 봇 적용 -------------- #
|
||||
let ttsInited = false;
|
||||
let ttsState = {base:{}, overrides:{}, emotions:[]}; // last-known server state
|
||||
const TTS_DEFAULT = {speed:1.35, word_gap:-0.07, sentence_gap:-0.3, pitch:0};
|
||||
const TTS_DEFAULT = {speed:1.4, word_gap:-0.07, sentence_gap:-0.3, pitch:0};
|
||||
function ttsLabels(){
|
||||
const sp=parseFloat($('tSpeed').value), wg=parseFloat($('tWord').value),
|
||||
sg=parseFloat($('tSent').value), pt=parseInt($('tPitch').value,10);
|
||||
|
||||
Reference in New Issue
Block a user