Giter Site home page Giter Site logo

iris's Introduction

IrisAI

Just experimenting with ChatGPT as a voice assistant.

Prerequisites

  • Python > 3.6 and < 3.10
  • DeepSpeech model files: deepspeech-model.pbmm and deepspeech-scorer.scorer
  • OpenAI API key

You can get the model and scorer here:

Setup

  1. Clone the repository:
git clone https://github.com/ly0xr/iris.git
cd iris
  1. Create a virtual environment and activate it:

For Linux/macOS:

python3 -m venv venv
source venv/bin/activate

For Windows (cmd.exe):

python -m venv venv
.\venv\Scripts\activate
  1. Install the required packages:

pip install -r requirements.txt

  1. Place the DeepSpeech model files deepspeech-model.pbmm and deepspeech-scorer.scorer in the project directory.

  2. Set up the OpenAI API key:

Create a .env file in the project directory and add the following line:

OPENAI_API_KEY=your-api-key-here

Replace your-api-key-here with your actual OpenAI API key.

  1. Run the voice assistant:

python irisai.py

The voice assistant will start listening for your voice commands. To exit, press Ctrl+C.

Troubleshooting

If you encounter issues with the microphone device index, you can list available input devices using the list_input_devices() function in the script. Update the input_device_index parameter in the audio.open() function accordingly.

iris's People

Contributors

lyokodev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.