Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 2.26 KB

File metadata and controls

76 lines (51 loc) · 2.26 KB

Empathic Voice Interface | Python Raw API Example

Jumpstart your development with Hume's Empathic Voice Interface!

Overview

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.

Setup Instructions

  1. Clone this examples repository:

    git clone https://github.com/humeai/hume-api-examples
    cd hume-api-examples/evi/evi-python-raw-api
  2. 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.

  3. Install the required dependencies:

    Mac

    pip install -r requirements_mac.txt

    Linux

    pip install -r requirements_linux.txt
  4. Set up environment variables:

    1. Copy the .env.example file to use as a template:

      cp .env.example .env
    2. 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 .env file becomes a persistent local store of your API key, Secret key, and EVI config ID. The .gitignore file contains local env file paths so that they are not committed to GitHub.

    (Note: .env is a hidden file so on Mac you would need to hit COMMAND-SHIFT . to make it viewable in the finder).

Run the project

cd src
python main.py