2023-11-14 14:10:19 -06:00
|
|
|
# narrator
|
2023-11-15 09:49:20 -06:00
|
|
|
|
|
|
|
David Attenborough narrates your life.
|
|
|
|
https://twitter.com/charliebholtz/status/1724815159590293764
|
|
|
|
|
2023-11-15 20:23:50 -06:00
|
|
|
## 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.
|
|
|
|
|
2023-11-15 09:49:20 -06:00
|
|
|
## 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`
|
|
|
|
|
2023-11-15 20:23:50 -06:00
|
|
|
Make a [Replicate](https://replicate.com), OpenAI, and [ElevenLabs](https://elevenlabs.io) account and set your tokens:
|
2023-11-15 09:49:20 -06:00
|
|
|
|
|
|
|
```
|
2023-11-15 13:42:50 -06:00
|
|
|
export OPENAI_API_KEY=<token>
|
|
|
|
export ELEVENLABS_API_KEY=<eleven-token>
|
2023-11-15 09:49:20 -06:00
|
|
|
```
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
## Run it!
|
|
|
|
|
|
|
|
```bash
|
|
|
|
python capture.py
|
|
|
|
```
|
|
|
|
In one terminal. In the other, run the narrator:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
python narrator.py
|
|
|
|
```
|
|
|
|
|