Spaces:
Runtime error
Runtime error
update README demo
Browse filesFiles changed (10)
- README.md+164
- docs/demo01.pngAdded
- docs/demo02.pngAdded
- docs/demo03.pngAdded
- docs/demo04.pngAdded
- docs/demo05_clone.pngAdded
- docs/demo06_clone.pngAdded
- docs/demo07_clone.pngAdded
- docs/demo08_clone.pngAdded
- docs/hf_spec.pngAdded
38 unmodified lines39404142434413 unmodified lines58596061626374 unmodified lines13813914038 unmodified lines| **Answer** | A short grounded answer is generated from the story context and spoken by the low-latency Q&A audio model. It does not use the cloned narrator voice. | LFM2.5-Audio-1.5B || **Resume** | Story continues from where it left off. Play also pauses on tab switch. | Cached chunks |## Models| Model | Role | Size |13 unmodified lines- **TTS Backends:** Qwen3-TTS Base (cloned voice) + CustomVoice 0.6B (stock fallback)- **Q&A Backend:** LFM2.5-Audio for direct audio-in/audio-out answers with lower interaction latency## Features- π€ **Voice Cloning** β Record 15s, get a narrator that sounds like you74 unmodified linesHackathon project. Stories are public domain.test push verification38 unmodified lines39404142434445464748495051525354555657585960616263646566676869707172737475767778798013 unmodified lines94959697989910010110210310410510610710810911011111211311411511611711811912012112212312412574 unmodified lines20020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330438 unmodified lines| **Answer** | A short grounded answer is generated from the story context and spoken by the low-latency Q&A audio model. It does not use the cloned narrator voice. | LFM2.5-Audio-1.5B || **Resume** | Story continues from where it left off. Play also pauses on tab switch. | Cached chunks |## Application Demo> Full step-by-step walkthrough: [docs/DEMO_WALKTHROUGH.md](docs/DEMO_WALKTHROUGH.md)### Explore Space β Browse the Story Shelf### My Library β Now Playing with Pause & Resume### Voice Q&A β Ask a Question by Recording### LFM2.5-Audio Answer β Spoken Response Generated Instantly### Clone Voice Studio β Record Your Voice (10s minimum)### Clone Voice Studio β Voice Embedding Extraction in Progress### Clone Voice Studio β Cloning Complete, Preview Ready### Narration Playing in Cloned Voice## Models| Model | Role | Size |13 unmodified lines- **TTS Backends:** Qwen3-TTS Base (cloned voice) + CustomVoice 0.6B (stock fallback)- **Q&A Backend:** LFM2.5-Audio for direct audio-in/audio-out answers with lower interaction latency## System Requirements| GPU | VRAM | Status | Notes ||---|---|---|---|| Nvidia A10G (24 GB) | 24 GB | β Recommended | All three models load comfortably; narration + Q&A run without memory pressure || Nvidia T4 (16 GB) | 16 GB | β οΈ Functional | Works but is tight β voice cloning model may OOM if loaded concurrently with LFM; restart may be needed between heavy operations || CPU only | β | β Not viable | LFM2.5-Audio and Qwen3-TTS inference is too slow for real-time use |**Hugging Face Spaces:**- **A10G Small** β confirmed working, recommended for the hackathon demo- **T4 Small** β runs with limitations; recommend disabling concurrent model loading**Memory breakdown (approximate):**| Model | VRAM (bfloat16) ||---|---|| LFM2.5-Audio-1.5B | ~3 GB || Qwen3-TTS-0.6B-CustomVoice | ~1.2 GB || Qwen3-TTS-1.7B-Base (cloning) | ~3.4 GB || KV cache + activations at inference | ~1β2 GB || **Total (all models loaded)** | **~8β9 GB** |The 1.7B cloning model is loaded on demand (not at startup), so idle VRAM usage is ~5β6 GB with only the narration and Q&A models preloaded.## Features- π€ **Voice Cloning** β Record 15s, get a narrator that sounds like you74 unmodified linesHackathon project. Stories are public domain.test push verification## Application Demo# MomsVoice β Demo WalkthroughStep-by-step guide through the app with screenshots.---## Step 1: Explore the Story ShelfOpen the **Explore Space** tab to browse available stories displayed as warm bookshelf cards. Each card shows the cover art, title, author, and a short excerpt. Click **"Tap to Play"** on any card to open it in My Library, or click **"More Info"** for the full story description.The featured story highlights the current pick. All 10 stories are public domain classics sourced from Project Gutenberg.---## Step 2: Open My Library and Start NarrationSwitch to the **My Library** tab. Click any story card to load it into the **Now Playing** panel on the right. The panel shows:- Cover art and title- Active narrator label (stock Vivian voice or your cloned voice)- **Pause** / **Resume Story** buttons- Story text scrolling in sync with narrationNarration starts immediately, playing one paragraph at a time using the TTS model. The player highlights the current paragraph as audio streams.---## Step 3: Ask a Question About the StoryScroll down in the Library panel to find the **Ask About the Story** section. Click **β Ask a Question** β narration pauses automatically and the microphone starts recording.Speak your question naturally (e.g. *"What did Puss in Boots do to help his master?"*). When you stop recording, the question is submitted automatically β no button press needed. You can also type a question in the text fallback field and press **Get Answer** manually.---## Step 4: Hear the Spoken Answer (LFM2.5-Audio)The recorded question waveform appears in the audio widget. Below it, the **LFM2.5-Audio** model generates a grounded answer in 1β2 sentences, based only on the current story context.The answer is delivered in two ways simultaneously:- **Answer text** shown inline (e.g. *"Puss in Boots, a poor man, bargained for boots and a bag, and Grimalkin, ailient rabbit, rescued him from a king's wrath."*)- **Answer Audio** waveform auto-plays the spoken responseAfter the answer finishes, narration resumes from where it paused.---## Step 5: Open Clone Voice Studio and Record Your VoiceGo to the **Clone Voice Studio** tab. Fill in:- **Voice Nickname** β a name for this profile (e.g. *"Mom"*, *"Grandpa Joe"*)- **Voice Gender Avatar** β Female or MaleA story script is displayed to read aloud. Click the **Record** button and read the script naturally for at least 10 seconds. The waveform displays your voice in real time. Click **Stop** when done.---## Step 6: Analyze & Synthesize the Vocal ProfileClick **Analyze & Synthesize Customized Vocal Profile**. The **Status Pipeline Visualizer** on the right tracks progress through extraction, de-noising, and pitch tuning stages.A progress bar shows synthesis percentage (e.g. *"Generating voice preview... 70.0%"*) with elapsed time. This step runs Qwen3-TTS-1.7B Base to extract the speaker embedding from your recording.---## Step 7: Voice Profile ReadyWhen synthesis completes, the Status Pipeline Visualizer shows:- Your **avatar** and nickname with a **"Cloned successfully"** badge- *"Synthesized today using Qwen3-TTS voice cloning"*- A **preview audio player** β tap Play to hear a short sample in your cloned voice- **"Synced successfully! Bind Companion Voice to Inventory"** confirmationThe profile is saved to disk and will persist across Space restarts.---## Step 8: Story Narration in Your Cloned VoiceReturn to **My Library** and select a story. The Now Playing panel shows **Active Narrator: [your nickname]** β confirming the cloned voice is active.Narration plays in your recorded voice, paragraph by paragraph (*"Paragraph 1 / 32"*). The story text scrolls in the reader below the player. All TTS inference runs locally on the Space GPU β no audio leaves the server.
README.md+164
docs/demo01.pngAdded

Large File Pointer Details
- SHA256: 113dea5706008517952947d2af43c469dea1be56a199e98c5ea7eaf75d957b7d
- Pointer size: 131 Bytes
- Size of remote file: 740 kB
docs/demo02.pngAdded

Large File Pointer Details
- SHA256: 51055da15434eaec327c03ec01f7d73ac7e96126efd0fcc652f1e8b7c9ec7e34
- Pointer size: 132 Bytes
- Size of remote file: 1.15 MB
docs/demo03.pngAdded

Large File Pointer Details
- SHA256: 6bd5e50b0c8fcbbc6a83ca237ab78ba199d56a83626c1ce293a267003b67bab4
- Pointer size: 131 Bytes
- Size of remote file: 778 kB
docs/demo04.pngAdded

Large File Pointer Details
- SHA256: eb03260e4ecc0ddb28d3ed7b1bf198837c53ed3f7715c40f9f96800ae70cc95b
- Pointer size: 130 Bytes
- Size of remote file: 71.8 kB
docs/demo05_clone.pngAdded

Large File Pointer Details
- SHA256: 6ce2c8fd8164ec38df3b8ed9d9cf589946a6558810f09e88a4b7105ddfb1fa22
- Pointer size: 131 Bytes
- Size of remote file: 131 kB
docs/demo06_clone.pngAdded

Large File Pointer Details
- SHA256: 1fc6ce5cc89b4e4fc2d54c567ff45a804dabfdb9ff8983c46b321a473f5c8368
- Pointer size: 131 Bytes
- Size of remote file: 125 kB
docs/demo07_clone.pngAdded

Large File Pointer Details
- SHA256: dbf072df6465da4847b07c5f1f12786614740f3bb15f3312b50e9078a1e919b4
- Pointer size: 131 Bytes
- Size of remote file: 137 kB
docs/demo08_clone.pngAdded

Large File Pointer Details
- SHA256: def199cccf184b6d94c037822d0a09ddce8d2e32bbc40bd955a9f06e91368b7b
- Pointer size: 131 Bytes
- Size of remote file: 125 kB
docs/hf_spec.pngAdded

Large File Pointer Details
- SHA256: 1c1682fd39dbd73a574d7f0a230ca358e6057df13c4f7aa400f884e64e3b643c
- Pointer size: 131 Bytes
- Size of remote file: 296 kB