Spaces:
Running
Running
File size: 10,933 Bytes
3046778 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hebrew TTS with Phonikud</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="static/style.css" />
</head>
<body>
<div class="container">
<!-- Header -->
<div class="header">
<h2><i class="fas fa-microphone-alt"></i> Hebrew TTS with Phonikud</h2>
<p class="header-subtitle">
Fast Text-to-Speech in Hebrew with Phonetic Control
</p>
</div>
<!-- Main Card with Tabs -->
<div class="main-card">
<!-- Tab Navigation -->
<div class="tabs-container">
<ul class="nav nav-tabs w-100 d-flex" role="tablist">
<li class="nav-item flex-fill">
<button
class="nav-link w-100 text-center active"
data-bs-toggle="tab"
data-bs-target="#text-tab"
type="button"
>
<i class="fas fa-font"></i> Text
</button>
</li>
<li class="nav-item flex-fill">
<button
class="nav-link w-100 text-center"
data-bs-toggle="tab"
data-bs-target="#diacritics-tab"
type="button"
>
<i class="fas fa-language"></i> Diacritics
</button>
</li>
<li class="nav-item flex-fill">
<button
class="nav-link w-100 text-center"
data-bs-toggle="tab"
data-bs-target="#phonemes-tab"
type="button"
>
<i class="fas fa-code"></i> Phonemes
</button>
</li>
</ul>
</div>
<!-- Tab Content -->
<div class="tab-content">
<!-- Hebrew Text Tab -->
<div class="tab-pane fade show active" id="text-tab">
<div class="input-section">
<h3 class="section-title">
<i class="fas fa-font"></i>
Hebrew Text Input
</h3>
<p class="section-description">
Enter unvocalized Hebrew text to generate speech.
</p>
<div class="input-group">
<textarea
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
id="text-input"
class="form-control rtl w-100 "
placeholder="讛讻谞住 讻讗谉 讗转 讛讟拽住讟 讛注讘专讬 砖诇讱..."
></textarea>
</div>
</div>
<div>
<button
class="btn-generate"
onclick="generate('text')"
id="text-btn"
>
<i class="fas fa-play"></i>
Generate
</button>
<div
id="text-status"
class="status-indicator"
style="display: none"
></div>
</div>
</div>
<!-- Diacritics Tab -->
<div class="tab-pane fade" id="diacritics-tab">
<div class="input-section">
<h3 class="section-title">
<i class="fas fa-language"></i>
Text with Diacritics
</h3>
<p class="section-description">
Enter Hebrew text with vowel markings and enhanced symbols
indicating pronunciation.
</p>
<div class="input-group">
<textarea
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
id="diacritics-input"
class="form-control rtl w-100"
placeholder="讟拽住讟 注诐 谞讬拽讜讚 讬讜驻讬注 讻讗谉 讗讜 讛讻谞住 讬讚谞讬转..."
></textarea>
<div>
<button
class="btn-generate"
onclick="generate('diacritics')"
id="diacritics-btn"
>
<i class="fas fa-play"></i>
Generate
</button>
<div
id="text-status"
class="status-indicator"
style="display: none"
></div>
</div>
</div>
<div class="helper-info">
<button type="button" class="helper-btn" id="btnHatama" onclick="insertAtCursor('\u05ab', 'diacritics')">
<i class="fas fa-dot-circle"></i>
Press for Stress
</button>
<button type="button" class="helper-btn" id="btnVocalShva" onclick="insertAtCursor('\u05bd', 'diacritics')">
<i class="fas fa-circle"></i>
Press for Vocal Shva
</button>
</div>
<div
id="diacritics-status"
class="status-indicator"
style="display: none"
></div>
<div
id="diacritics-alert"
class="alert alert-warning"
style="display: none"
>
<i class="fas fa-exclamation-triangle"></i>
Text must contain diacritics. Switch to the Text tab to generate
them automatically.
</div>
</div>
</div>
<!-- Phonemes Tab -->
<div class="tab-pane fade" id="phonemes-tab">
<div class="input-section">
<h3 class="section-title">
<i class="fas fa-code"></i>
Phonetic Representation
</h3>
<p class="section-description">
Enter IPA phonemes directly to generate speech.
</p>
<div class="input-group">
<textarea
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
id="phonemes-input"
class="form-control w-100 phoneme-input"
placeholder="Phonetic transcription will appear here or enter manually..."
></textarea>
<div>
<button
class="btn-generate"
onclick="generate('phonemes')"
id="phonemes-btn"
>
<i class="fas fa-play"></i>
Generate
</button>
<div
id="text-status"
class="status-indicator"
style="display: none"
></div>
</div>
</div>
<div class="helper-info helper-phonemes">
<button
type="button"
class="helper-btn"
id="btnStress"
onclick="insertAtCursor('\u02c8', 'phonemes')"
>
<i class="fas fa-dot-circle"></i>
Stress 藞
</button>
<button
type="button"
class="helper-btn"
id="btnStress"
onclick="insertAtCursor('蠂', 'phonemes')"
>
<i class="fas fa-dot-circle"></i>
蠂
</button>
<button
type="button"
class="helper-btn"
id="btnStress"
onclick="insertAtCursor('蕛', 'phonemes')"
>
<i class="fas fa-dot-circle"></i>
蕛
</button>
<button
type="button"
class="helper-btn"
id="btnStress"
onclick="insertAtCursor('蕯', 'phonemes')"
>
<i class="fas fa-dot-circle"></i>
蕯
</button>
<button
type="button"
class="helper-btn"
id="btnStress"
onclick="insertAtCursor('蠂', 'phonemes')"
>
<i class="fas fa-dot-circle"></i>
蠂
</button>
<button
type="button"
class="helper-btn"
id="btnStress"
onclick="insertAtCursor('蕘', 'phonemes')"
>
<i class="fas fa-dot-circle"></i>
蕘
</button>
<button
type="button"
class="helper-btn"
id="btnStress"
onclick="insertAtCursor('蕭', 'phonemes')"
>
<i class="fas fa-dot-circle"></i>
蕭
</button>
<button
type="button"
class="helper-btn"
id="btnStress"
onclick="insertAtCursor('伞', 'phonemes')"
>
<i class="fas fa-dot-circle"></i>
伞
</button>
</div>
<div
id="phonemes-status"
class="status-indicator"
style="display: none"
></div>
</div>
</div>
</div>
<!-- Audio Result Section -->
<div class="audio-section" id="audio-section" style="display: none">
<h3 class="audio-title">
<i class="fas fa-volume-up"></i>
Generated Audio
</h3>
<audio id="audio" controls></audio>
</div>
</div>
</div>
<div class="container text-center mt-4">
<a
href="https://github.com/thewh1teagle/phonikud"
class="github-link"
target="_blank"
>
<i class="fab fa-github"></i>
View Phonikud on GitHub
</a>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="static/script.js"></script>
</body>
</html>
|