Spaces:
Running
Running
Configure static build and isolation headers
Browse files
README.md
CHANGED
|
@@ -1,10 +1,34 @@
|
|
| 1 |
---
|
| 2 |
title: Phonon Reader
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: red
|
| 6 |
sdk: static
|
|
|
|
|
|
|
| 7 |
pinned: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: Phonon Reader
|
| 3 |
+
emoji: 🔊
|
| 4 |
+
colorFrom: yellow
|
| 5 |
colorTo: red
|
| 6 |
sdk: static
|
| 7 |
+
app_file: dist/index.html
|
| 8 |
+
app_build_command: npm install && npm run build
|
| 9 |
pinned: false
|
| 10 |
+
short_description: Paste text, listen. On-device TTS, nothing uploaded.
|
| 11 |
+
models:
|
| 12 |
+
- gradium/phonon-31m-en
|
| 13 |
+
custom_headers:
|
| 14 |
+
cross-origin-embedder-policy: require-corp
|
| 15 |
+
cross-origin-opener-policy: same-origin
|
| 16 |
+
cross-origin-resource-policy: cross-origin
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# Phonon Reader
|
| 20 |
+
|
| 21 |
+
A small installable web app: paste an article or any text and listen to it.
|
| 22 |
+
Speech is generated **in your browser** with [Phonon 31m](https://huggingface.co/gradium/phonon-31m-en)
|
| 23 |
+
via [`phonon-tts`](https://www.npmjs.com/package/phonon-tts) (WebAssembly). Your text is never uploaded.
|
| 24 |
+
|
| 25 |
+
- First run downloads the model (~65 MB) from the Hub; after that it works offline.
|
| 26 |
+
- Install it: open the Space's direct URL in Chrome on Android and choose **Install app**.
|
| 27 |
+
It then shows up in the Android share sheet, so you can share selected text into it.
|
| 28 |
+
- Text is split into sentence chunks, generated a few chunks ahead of playback, and highlighted as it's read.
|
| 29 |
+
- Voices come from [`gradium/phonon-voices`](https://huggingface.co/gradium/phonon-voices).
|
| 30 |
+
|
| 31 |
+
Network requests: the app files from this Space, and model/voice files from huggingface.co. Nothing else.
|
| 32 |
+
|
| 33 |
+
No bundler: `npm run build` copies the app and the `phonon-tts` package into `dist/` and writes the
|
| 34 |
+
service worker's precache list. `npm run serve` serves `dist/` locally with the isolation headers.
|