Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.64 KB

File metadata and controls

67 lines (46 loc) · 1.64 KB

Empathic Voice Interface | Sample Implementation

Jumpstart your development with Hume's Empathic Voice Interface!

Overview

This project features a sample implementation of Hume's Empathic Voice Interface using Hume's API with Python in a terminal window.

Setting up a virtual environment (optional)

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.

Dependencies

In order to run it, you need to install the requirements.txt using pip:

Mac

pip install -r requirements_mac.txt

Linux

pip install -r requirements_linux.txt

Environment variables

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>"

Usage

cd src
python main.py