Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cbh123/narrator
David Attenborough narrates your life
https://github.com/cbh123/narrator
Last synced: 25 days ago
JSON representation
David Attenborough narrates your life
- Host: GitHub
- URL: https://github.com/cbh123/narrator
- Owner: cbh123
- Created: 2023-11-14T20:10:10.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-07-22T21:54:35.000Z (4 months ago)
- Last Synced: 2024-10-01T11:03:12.154Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 206 KB
- Stars: 4,360
- Watchers: 29
- Forks: 536
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - cbh123/narrator - David Attenborough narrates your life (Python)
- my-awesome-github-stars - cbh123/narrator - David Attenborough narrates your life (Python)
- awesome - cbh123/narrator - David Attenborough narrates your life (Python)
README
# David Attenborough narrates your life.
https://twitter.com/charliebholtz/status/1724815159590293764
## Want to make your own AI app?
Check out [Replicate](https://replicate.com). 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](https://replicate.com), [OpenAI](https://beta.openai.com/), and [ElevenLabs](https://elevenlabs.io) account and set your tokens:
```
export OPENAI_API_KEY=
export ELEVENLABS_API_KEY=
```Make a new voice in Eleven and get the voice id of that voice using their [get voices](https://elevenlabs.io/docs/api-reference/voices) API, or by clicking the flask icon next to the voice in the VoiceLab tab.
```
export ELEVENLABS_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
```