Spaces:
Running
Running
UI v6: Nicole label, modal title, animated SVG, footer gradient
Browse files- index.html +14 -7
index.html
CHANGED
|
@@ -71,7 +71,15 @@ details[open] summary::before{content:"\2212"}
|
|
| 71 |
.wave{width:100%;height:92px;display:block;border:1px solid var(--line);border-radius:12px;background:var(--bg);margin:0 0 12px}
|
| 72 |
html[data-theme=dark] .stat .big.sm{color:#dcebf4}
|
| 73 |
@media(max-width:620px){.stats{grid-template-columns:1fr 1fr}.stat .big{font-size:24px}}
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
footer a{color:var(--teal-d)}
|
| 76 |
/* --- language + theme toggles --- */
|
| 77 |
.headrow{display:flex;align-items:center;gap:12px}
|
|
@@ -177,7 +185,7 @@ html[data-theme=dark] details summary::before{background:#0f3a40}
|
|
| 177 |
<div class="row"><select id="pre"></select><button class="sec" id="fxreset">Reset</button><button class="sec" id="dlraw" disabled>Download wav</button><button class="sec" id="dlfx" disabled>Download wav with effects</button></div>
|
| 178 |
<div class="fx" id="fx"></div>
|
| 179 |
</details></section>
|
| 180 |
-
<div class="modal-wrap" id="edgeModal" hidden><section class="card modal-card" id="edge"><button class="modal-close" id="edgeClose" aria-label="Close">×</button><h2 data-i18n="edgeh">
|
| 181 |
<div class="edge">
|
| 182 |
<figure>
|
| 183 |
<svg viewBox="0 0 320 240" role="img" aria-label="Kiosk speaking Bahasa Melayu">
|
|
@@ -253,13 +261,12 @@ const $ = (id) => document.getElementById(id);
|
|
| 253 |
let tts, lastAudio; // declared early: drawSpeakers()/speedStrip()/resize listener use them before load()
|
| 254 |
const SPEAKERS = {
|
| 255 |
yati: { name: 'Yati', sub: 'female voice 路 default', card: 'https://huggingface.co/Suarify/kecil-tts-yati-v0.4.1',
|
| 256 |
-
note: 'Understandable and the most accurate so far. v0.4.1 has cleaner, less watery sound than v0.4 (same voice, better audio export).',
|
| 257 |
versions: [['Suarify/kecil-tts-yati-v0.5.0', 'v0.5 (latest)'], ['Suarify/kecil-tts-yati-v0.4.1', 'v0.4.1'], ['Suarify/kecil-tts-yati-v0.4', 'v0.4'], ['Suarify/kecil-tts-yati-v0.3', 'v0.3'], ['Suarify/kecil-tts-yati-v0.2', 'v0.2'], ['Suarify/kecil-tts-yati-v0.1', 'v0.1']] },
|
| 258 |
michael: { name: 'Michael', sub: 'male voice 路 new', card: 'https://huggingface.co/Suarify/kecil-tts-michael-v0.3.1',
|
| 259 |
note: 'Male voice. v0.3.1 fixes the slow timing of v0.3.0 and uses the training-faithful synthesis (same weights, native speed).',
|
| 260 |
versions: [['Suarify/kecil-tts-michael-v0.3.1', 'v0.3.1 (latest)'], ['Suarify/kecil-tts-michael-v0.3.0', 'v0.3.0'], ['Suarify/kecil-tts-michael-v0.2.2', 'v0.2.2'], ['Suarify/kecil-tts-michael-v0.2', 'v0.2'], ['Suarify/kecil-tts-michael-v0.1', 'v0.1']] },
|
| 261 |
-
nicole: { name: 'Nicole', sub: 'female voice
|
| 262 |
-
note: 'Female voice trained
|
| 263 |
versions: [['Suarify/kecil-tts-nicole-v0.1', 'v0.1']] }
|
| 264 |
};
|
| 265 |
const qs = new URLSearchParams(location.search);
|
|
@@ -499,7 +506,7 @@ load();
|
|
| 499 |
lead: 'Kecil-TTS-8M is a lightweight, Kokoro-style Malaysian Malay (Bahasa Melayu) text-to-speech model: 7.9 million parameters, under 10 MB, running entirely in your browser. No server, nothing you type leaves your device.',
|
| 500 |
h1s: '1 路 Choose a speaker', h2s: '2 路 Type Malay text', fxh: 'Effects lab (optional)', hbench: 'Benchmarks',
|
| 501 |
nbench: 'CER measured 2026-11-17 with Whisper large-v3 on 200 test + 60 held-out sentences; the v0.3.0 weights themselves are still being re-scored, so the numbers shown are from the checkpoint they continue (same text-model scope). Texture and periodicity measured on the same 6 sentences for both voices. No MOS or side-by-side human rating exists for either voice at this date.',
|
| 502 |
-
edgeh: '
|
| 503 |
capkiosk: 'Kiosk: speaks before the screen finishes loading',
|
| 504 |
capvend: 'Vending machine: a receipt that says its lines out loud',
|
| 505 |
edge1: 'Under 10 MB of weights: fits a Raspberry Pi, an Android kiosk, a mini-PC or a browser tab.',
|
|
@@ -516,7 +523,7 @@ load();
|
|
| 516 |
lead: 'Kecil-TTS-8M ialah model teks-ke-ucapan Bahasa Melayu Malaysia yang ringan dan bergaya Kokoro: 7.9 juta parameter, kurang 10 MB, berjalan sepenuhnya dalam pelayar anda. Tiada pelayan, tiada apa yang anda taip meninggalkan peranti anda.',
|
| 517 |
h1s: '1 路 Pilih suara', h2s: '2 路 Taip teks Melayu', fxh: 'Makmal kesan (pilihan)', hbench: 'Penanda aras',
|
| 518 |
nbench: 'CER diukur 2026-11-17 dengan Whisper large-v3 pada 200 ayat ujian + 60 ayat held-out; pemberat v0.3.0 sendiri masih dinilai semula, jadi angka yang ditunjukkan adalah daripada checkpoint yang diteruskan (skop model teks yang sama). Tekstur dan periodicity diukur pada 6 ayat yang sama untuk kedua-dua suara. Tiada penilaian MOS atau perbandingan manusia pada tarikh ini.',
|
| 519 |
-
edgeh: '
|
| 520 |
capkiosk: 'Kiosk: bercakap sebelum skrin selesai dimuatkan',
|
| 521 |
capvend: 'Mesin layan diri: resit yang menyebut barisnya dengan lantang',
|
| 522 |
edge1: 'Berat kurang 10 MB: muat dalam Raspberry Pi, kiosk Android, mini-PC atau tab pelayar.',
|
|
|
|
| 71 |
.wave{width:100%;height:92px;display:block;border:1px solid var(--line);border-radius:12px;background:var(--bg);margin:0 0 12px}
|
| 72 |
html[data-theme=dark] .stat .big.sm{color:#dcebf4}
|
| 73 |
@media(max-width:620px){.stats{grid-template-columns:1fr 1fr}.stat .big{font-size:24px}}
|
| 74 |
+
/* v6: gentle SVG motion + footer gradient separator */
|
| 75 |
+
@keyframes floaty{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-6px) rotate(.6deg)}}
|
| 76 |
+
.edge figure:first-child svg{animation:floaty 3.2s ease-in-out infinite}
|
| 77 |
+
.edge figure:last-child svg{animation:floaty 3.8s ease-in-out infinite .5s}
|
| 78 |
+
@media(prefers-reduced-motion:reduce){.edge figure svg{animation:none}}
|
| 79 |
+
footer{position:relative;background:linear-gradient(180deg,var(--tint),transparent);padding:22px 16px 40px;border-radius:0 0 16px 16px}
|
| 80 |
+
footer::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--teal),var(--navy2),var(--teal))}
|
| 81 |
+
footer::after{content:"";position:absolute;bottom:0;left:0;right:0;height:4px;background:linear-gradient(135deg,var(--navy),var(--teal))}
|
| 82 |
+
footer{max-width:860px;margin:0 auto;color:var(--mut);font-size:13px}
|
| 83 |
footer a{color:var(--teal-d)}
|
| 84 |
/* --- language + theme toggles --- */
|
| 85 |
.headrow{display:flex;align-items:center;gap:12px}
|
|
|
|
| 185 |
<div class="row"><select id="pre"></select><button class="sec" id="fxreset">Reset</button><button class="sec" id="dlraw" disabled>Download wav</button><button class="sec" id="dlfx" disabled>Download wav with effects</button></div>
|
| 186 |
<div class="fx" id="fx"></div>
|
| 187 |
</details></section>
|
| 188 |
+
<div class="modal-wrap" id="edgeModal" hidden><section class="card modal-card" id="edge"><button class="modal-close" id="edgeClose" aria-label="Close">×</button><h2 data-i18n="edgeh">Runs anywhere: edge, IoT, kiosk, vending machine</h2>
|
| 189 |
<div class="edge">
|
| 190 |
<figure>
|
| 191 |
<svg viewBox="0 0 320 240" role="img" aria-label="Kiosk speaking Bahasa Melayu">
|
|
|
|
| 261 |
let tts, lastAudio; // declared early: drawSpeakers()/speedStrip()/resize listener use them before load()
|
| 262 |
const SPEAKERS = {
|
| 263 |
yati: { name: 'Yati', sub: 'female voice 路 default', card: 'https://huggingface.co/Suarify/kecil-tts-yati-v0.4.1',
|
|
|
|
| 264 |
versions: [['Suarify/kecil-tts-yati-v0.5.0', 'v0.5 (latest)'], ['Suarify/kecil-tts-yati-v0.4.1', 'v0.4.1'], ['Suarify/kecil-tts-yati-v0.4', 'v0.4'], ['Suarify/kecil-tts-yati-v0.3', 'v0.3'], ['Suarify/kecil-tts-yati-v0.2', 'v0.2'], ['Suarify/kecil-tts-yati-v0.1', 'v0.1']] },
|
| 265 |
michael: { name: 'Michael', sub: 'male voice 路 new', card: 'https://huggingface.co/Suarify/kecil-tts-michael-v0.3.1',
|
| 266 |
note: 'Male voice. v0.3.1 fixes the slow timing of v0.3.0 and uses the training-faithful synthesis (same weights, native speed).',
|
| 267 |
versions: [['Suarify/kecil-tts-michael-v0.3.1', 'v0.3.1 (latest)'], ['Suarify/kecil-tts-michael-v0.3.0', 'v0.3.0'], ['Suarify/kecil-tts-michael-v0.2.2', 'v0.2.2'], ['Suarify/kecil-tts-michael-v0.2', 'v0.2'], ['Suarify/kecil-tts-michael-v0.1', 'v0.1']] },
|
| 268 |
+
nicole: { name: 'Nicole', sub: 'female voice', card: 'https://huggingface.co/Suarify/kecil-tts-nicole-v0.1',
|
| 269 |
+
note: 'Female voice trained from Yati clips. v0.1 is an early release; a cleaner version is in progress.',
|
| 270 |
versions: [['Suarify/kecil-tts-nicole-v0.1', 'v0.1']] }
|
| 271 |
};
|
| 272 |
const qs = new URLSearchParams(location.search);
|
|
|
|
| 506 |
lead: 'Kecil-TTS-8M is a lightweight, Kokoro-style Malaysian Malay (Bahasa Melayu) text-to-speech model: 7.9 million parameters, under 10 MB, running entirely in your browser. No server, nothing you type leaves your device.',
|
| 507 |
h1s: '1 路 Choose a speaker', h2s: '2 路 Type Malay text', fxh: 'Effects lab (optional)', hbench: 'Benchmarks',
|
| 508 |
nbench: 'CER measured 2026-11-17 with Whisper large-v3 on 200 test + 60 held-out sentences; the v0.3.0 weights themselves are still being re-scored, so the numbers shown are from the checkpoint they continue (same text-model scope). Texture and periodicity measured on the same 6 sentences for both voices. No MOS or side-by-side human rating exists for either voice at this date.',
|
| 509 |
+
edgeh: 'Runs anywhere: edge, IoT, kiosk, vending machine',
|
| 510 |
capkiosk: 'Kiosk: speaks before the screen finishes loading',
|
| 511 |
capvend: 'Vending machine: a receipt that says its lines out loud',
|
| 512 |
edge1: 'Under 10 MB of weights: fits a Raspberry Pi, an Android kiosk, a mini-PC or a browser tab.',
|
|
|
|
| 523 |
lead: 'Kecil-TTS-8M ialah model teks-ke-ucapan Bahasa Melayu Malaysia yang ringan dan bergaya Kokoro: 7.9 juta parameter, kurang 10 MB, berjalan sepenuhnya dalam pelayar anda. Tiada pelayan, tiada apa yang anda taip meninggalkan peranti anda.',
|
| 524 |
h1s: '1 路 Pilih suara', h2s: '2 路 Taip teks Melayu', fxh: 'Makmal kesan (pilihan)', hbench: 'Penanda aras',
|
| 525 |
nbench: 'CER diukur 2026-11-17 dengan Whisper large-v3 pada 200 ayat ujian + 60 ayat held-out; pemberat v0.3.0 sendiri masih dinilai semula, jadi angka yang ditunjukkan adalah daripada checkpoint yang diteruskan (skop model teks yang sama). Tekstur dan periodicity diukur pada 6 ayat yang sama untuk kedua-dua suara. Tiada penilaian MOS atau perbandingan manusia pada tarikh ini.',
|
| 526 |
+
edgeh: 'Berjalan di mana-mana: edge, IoT, kiosk, mesin layan diri',
|
| 527 |
capkiosk: 'Kiosk: bercakap sebelum skrin selesai dimuatkan',
|
| 528 |
capvend: 'Mesin layan diri: resit yang menyebut barisnya dengan lantang',
|
| 529 |
edge1: 'Berat kurang 10 MB: muat dalam Raspberry Pi, kiosk Android, mini-PC atau tab pelayar.',
|