[Setup] script. (#1)

This commit is contained in:
Ray Smets 2023-11-23 01:21:43 -08:00 committed by GitHub
parent 1174275b5b
commit b1f9236bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View File

@ -31,6 +31,13 @@ Make a new voice in Eleven and get the voice id of that voice using their [get v
export ELEVENLABS_VOICE_ID=<voice-id> export ELEVENLABS_VOICE_ID=<voice-id>
``` ```
### Setup Script
Alternatively, one can use the `setup.sh` script to facilitate getting the shell envs ready to rock by updating the API key values in `setup.sh` and run.
_Note: may have to manually run `source source venv/bin/activate` afterwards depending on shell env._
## Run it! ## Run it!
In on terminal, run the webcam capture: In on terminal, run the webcam capture:

16
setup.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# create a virtual environment
python3 -m pip install virtualenv
python3 -m virtualenv venv
# source the virtual environment
source venv/bin/activate
# install the dependencies
pip install -r requirements.txt
# set the environment variables
export ELEVENLABS_VOICE_ID=
export OPENAI_API_KEY=
export ELEVENLABS_API_KEY=