narrator Documentation

David Attenborough narrates your life

4,424 stars Python Python 1 file ยท ~365 tokens
RAW Doc

Technical Documentation: cbh123/narrator

โ„น๏ธ Provenance: Multi-Tier Ingestion ยท CodeWiki Reference

Overview (`README.md`)

David Attenborough narrates your life.

https://twitter.com/charliebholtz/status/1724815159590293764

Want to make your own AI app?

Check out Replicate. We make it easy to run machine learning models with an API.

Setup

Clone this repo, and setup and activate a virtualenv:

bash
python3 -m pip install virtualenv
python3 -m virtualenv venv
source venv/bin/activate

Then, install the dependencies:
pip install -r requirements.txt

Make a Replicate, OpenAI, and ElevenLabs account and set your tokens:

text
export OPENAI_API_KEY=<token>
export ELEVENLABS_API_KEY=<eleven-token>

Make a new voice in Eleven and get the voice id of that voice using their get voices API, or by clicking the flask icon next to the voice in the VoiceLab tab.

text
export ELEVENLABS_VOICE_ID=<voice-id>

Run it!

In on terminal, run the webcam capture:

bash
python capture.py

In another terminal, run the narrator:

bash
python narrator.py

--- METRICS ---