This project features a minimal implementation of Hume's Empathic Voice Interface (EVI) using Hume's API with Python. It demonstrates how to authenticate, connect to, and display output from EVI in a terminal application.
-
Clone this examples repository:
git clone https://github.com/humeai/hume-api-examples cd hume-api-examples/evi/evi-python-raw-api -
Set up a virtual environment (Optional):
It's recommended to isolate dependencies in a virtual environment. Choose one of the following methods:
-
Using
conda(requires Miniconda or Anaconda):conda create --name evi-env python=3.11 conda activate evi-env
-
Using built-in
venv(available with Python 3.3+):python -m venv evi-env source evi-env/bin/activate
After activating the environment, proceed with installing dependencies.
-
-
Install the required dependencies:
pip install -r requirements_mac.txt
pip install -r requirements_linux.txt
-
Set up environment variables:
-
Copy the
.env.examplefile to use as a template:cp .env.example .env
-
Place your API keys inside:
- Visit the API keys page on the Hume Platform to retrieve your API keys. See our documentation on getting your api keys.
- Upon doing so, the
.envfile becomes a persistent local store of your API key, Secret key, and EVI config ID. The.gitignorefile contains local env file paths so that they are not committed to GitHub.
(Note:
.envis a hidden file so on Mac you would need to hitCOMMAND-SHIFT .to make it viewable in the finder). -
cd src
python main.py