--- title: Nidra emoji: ๐ŸŒ™ colorFrom: indigo colorTo: purple sdk: gradio app_file: app.py pinned: true license: mit short_description: An AI bedtime story, narrated in your own cloned voice. tags: - gradio - build-small-hackathon - agentic - voice-cloning - tts - bedtime - track:backyard - sponsor:nvidia - sponsor:openbmb - sponsor:modal - achievement:offbrand - achievement:fieldnotes - achievement:sharing --- # ๐ŸŒ™ Nidra A bedtime story, written for your kid and read in your voice. You give a name, an age, and whatever they're into this week. A small agent writes the story; your cloned voice reads it back. **โ†’ [Open Nidra](https://huggingface.co/spaces/build-small-hackathon/nidra)** ยท **๐ŸŽฌ [Watch the 1-min demo](https://share.descript.com/view/FPpNJNlmCQI)** ยท **๐Ÿ“ฃ [Post on X](https://x.com/Pushpakteja/status/2066633364510277888)** ยท first run warms up on Modal (~3โ€“5 min). ## What it does Type something like *"Arjun, 5, a curious mongoose who finds a library under a banyan tree."* Nidra writes an outline, then the full story, then narrates it line by line in the voice you upload (or a default warm one). You can download the whole agent trace if you want to see how it got there. ## How it works Two passes of NVIDIA's Nemotron-Nano-9B โ€” outline, then story โ€” and then VoxCPM2 voices each sentence. The Space itself is CPU-only; all the GPU work is a serverless Modal app that scales to zero between runs. ```mermaid flowchart LR A[name ยท age ยท theme] --> B[Nemotron: outline] --> C[Nemotron: story] --> D[VoxCPM2: narrate] --> E[๐Ÿ”Š] V[your voice clip] --> D ``` Built by [@praxelhq](https://huggingface.co/praxelhq) for the HuggingFace **Build Small** hackathon โ€” Backyard AI. Models: Nemotron-Nano-9B (NVIDIA) and VoxCPM2 (OpenBMB), both small, both on Modal. [Build notes](./FIELD_NOTES.md) ยท [agent traces shared on the Hub](https://huggingface.co/datasets/build-small-hackathon/praxy-voice-agent-traces).