Files
alloy-voice-assistant/README.md

25 lines
551 B
Markdown
Raw Normal View History

2024-05-27 15:57:16 -04:00
# Sample AI assistant
2024-05-24 11:54:36 -04:00
2024-05-31 15:21:33 -04:00
You need an `OPENAI_API_KEY` and a `GOOGLE_API_KEY` to run this code. Store them in a `.env` file in the root directory of the project, or set them as environment variables.
2024-05-27 15:57:16 -04:00
If you are running the code on Apple Silicon, run the following command:
2024-05-24 11:54:36 -04:00
2024-05-27 15:57:16 -04:00
```
$ brew install portaudio
```
Create a virtual environment, update pip, and install the required packages:
2024-05-24 11:54:36 -04:00
```
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -U pip
2024-05-27 15:57:16 -04:00
$ pip install -r requirements.txt
```
Run the assistant:
```
2024-05-31 15:21:33 -04:00
$ python3 assistant.py
2024-05-24 11:54:36 -04:00
```