Spaces:
Running
Running
Convert-first layout with share/download card
Browse files- index.html +26 -7
index.html
CHANGED
|
@@ -29,13 +29,17 @@
|
|
| 29 |
|
| 30 |
<main>
|
| 31 |
<section id="view-edit">
|
|
|
|
| 32 |
<textarea id="input" spellcheck="false"
|
| 33 |
placeholder="Paste an article or any text here. Pasting from a web page keeps the paragraphs and drops menus and scripts."></textarea>
|
| 34 |
<p id="share-note" class="note hidden"></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
<div class="edit-actions">
|
| 36 |
-
<button id="btn-
|
| 37 |
-
<button id="btn-
|
| 38 |
-
<button id="btn-listen" class="primary" type="button">Listen</button>
|
| 39 |
</div>
|
| 40 |
<div id="ready" class="ready">
|
| 41 |
<div class="ready-title" id="ready-title">Checking what's saved on this device…</div>
|
|
@@ -49,6 +53,19 @@
|
|
| 49 |
</section>
|
| 50 |
|
| 51 |
<section id="view-read" class="hidden">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
<article id="reader" class="reader"></article>
|
| 53 |
</section>
|
| 54 |
</main>
|
|
@@ -60,9 +77,6 @@
|
|
| 60 |
<button id="btn-play" class="round big" type="button" aria-label="Play">▶</button>
|
| 61 |
<button id="btn-next" class="round" type="button" aria-label="Next sentence">⏭</button>
|
| 62 |
</div>
|
| 63 |
-
<div class="player-extra">
|
| 64 |
-
<button id="btn-prepare" class="ghost small" type="button">Prepare all audio</button>
|
| 65 |
-
</div>
|
| 66 |
</footer>
|
| 67 |
|
| 68 |
<dialog id="settings">
|
|
@@ -74,13 +88,18 @@
|
|
| 74 |
<label>Speed <span id="rate-label">1.0×</span>
|
| 75 |
<input id="rate" type="range" min="0.7" max="2" step="0.1" value="1" />
|
| 76 |
</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
<label>Engine
|
| 78 |
<select id="device">
|
| 79 |
<option value="cpu">CPU (recommended on phones)</option>
|
| 80 |
<option value="auto">GPU if available</option>
|
| 81 |
</select>
|
| 82 |
</label>
|
| 83 |
-
<button id="btn-export" type="button" class="ghost">Download as WAV</button>
|
| 84 |
<p id="engine-info" class="note"></p>
|
| 85 |
<button id="btn-clear-cache" type="button" class="ghost danger">Delete downloaded model</button>
|
| 86 |
<div class="dialog-actions"><button class="primary" value="close">Done</button></div>
|
|
|
|
| 29 |
|
| 30 |
<main>
|
| 31 |
<section id="view-edit">
|
| 32 |
+
<input id="title" class="title-input" type="text" placeholder="Title (optional, used for the file name)" autocomplete="off" />
|
| 33 |
<textarea id="input" spellcheck="false"
|
| 34 |
placeholder="Paste an article or any text here. Pasting from a web page keeps the paragraphs and drops menus and scripts."></textarea>
|
| 35 |
<p id="share-note" class="note hidden"></p>
|
| 36 |
+
<div class="edit-tools">
|
| 37 |
+
<button id="btn-paste" class="ghost small" type="button">Paste</button>
|
| 38 |
+
<button id="btn-clear" class="ghost small" type="button">Clear</button>
|
| 39 |
+
</div>
|
| 40 |
<div class="edit-actions">
|
| 41 |
+
<button id="btn-listen" class="ghost" type="button">Listen now</button>
|
| 42 |
+
<button id="btn-convert-start" class="primary" type="button">Convert to audio</button>
|
|
|
|
| 43 |
</div>
|
| 44 |
<div id="ready" class="ready">
|
| 45 |
<div class="ready-title" id="ready-title">Checking what's saved on this device…</div>
|
|
|
|
| 53 |
</section>
|
| 54 |
|
| 55 |
<section id="view-read" class="hidden">
|
| 56 |
+
<div id="export" class="export">
|
| 57 |
+
<div class="export-head">
|
| 58 |
+
<strong id="ex-title"></strong>
|
| 59 |
+
<span id="ex-meta" class="ex-meta"></span>
|
| 60 |
+
</div>
|
| 61 |
+
<div id="ex-bar" class="progress big hidden"><div id="ex-progress"></div></div>
|
| 62 |
+
<div class="export-actions">
|
| 63 |
+
<button id="btn-convert" class="primary" type="button">Convert to audio file</button>
|
| 64 |
+
<button id="btn-share" class="primary hidden" type="button">Share…</button>
|
| 65 |
+
<button id="btn-download" class="ghost hidden" type="button">Download</button>
|
| 66 |
+
</div>
|
| 67 |
+
<p id="ex-note" class="note"></p>
|
| 68 |
+
</div>
|
| 69 |
<article id="reader" class="reader"></article>
|
| 70 |
</section>
|
| 71 |
</main>
|
|
|
|
| 77 |
<button id="btn-play" class="round big" type="button" aria-label="Play">▶</button>
|
| 78 |
<button id="btn-next" class="round" type="button" aria-label="Next sentence">⏭</button>
|
| 79 |
</div>
|
|
|
|
|
|
|
|
|
|
| 80 |
</footer>
|
| 81 |
|
| 82 |
<dialog id="settings">
|
|
|
|
| 88 |
<label>Speed <span id="rate-label">1.0×</span>
|
| 89 |
<input id="rate" type="range" min="0.7" max="2" step="0.1" value="1" />
|
| 90 |
</label>
|
| 91 |
+
<label>File format
|
| 92 |
+
<select id="format">
|
| 93 |
+
<option value="mp3">MP3 (small, plays everywhere)</option>
|
| 94 |
+
<option value="wav">WAV (lossless, ~6× larger)</option>
|
| 95 |
+
</select>
|
| 96 |
+
</label>
|
| 97 |
<label>Engine
|
| 98 |
<select id="device">
|
| 99 |
<option value="cpu">CPU (recommended on phones)</option>
|
| 100 |
<option value="auto">GPU if available</option>
|
| 101 |
</select>
|
| 102 |
</label>
|
|
|
|
| 103 |
<p id="engine-info" class="note"></p>
|
| 104 |
<button id="btn-clear-cache" type="button" class="ghost danger">Delete downloaded model</button>
|
| 105 |
<div class="dialog-actions"><button class="primary" value="close">Done</button></div>
|