This project features a sample implementation of Hume's Empathic Voice Interface using Hume's API with Python in a terminal window.
Before you install the dependencies, you might want to create a virtual environment to isolate your package installations. To create a virtual environment, run the following commands in your terminal:
# Create a virtual environment in the directory 'evi-env'
python -m venv evi-env
# Activate the virtual environment
# On Mac/Linux:
source evi-env/bin/activate
After activating the virtual environment, you can proceed with the installation of dependencies as described below.
In order to run it, you need to install the requirements.txt
using pip
:
pip install -r requirements_mac.txt
pip install -r requirements_linux.txt
Either create a .env
file or set environment variables for HUME_API_KEY and HUME_SECRET_KEY.
Example .env
file:
HUME_API_KEY="<YOUR API KEY>"
HUME_SECRET_KEY="<YOUR SECRET KEY>"
Example terminal commands to set environment variables manually:
export HUME_API_KEY="<YOUR API KEY>"
export HUME_SECRET_KEY="<YOUR SECRET KEY>"
cd src
python main.py