Giter Site home page Giter Site logo

sobanejaz / automatic_voice_chatbot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

This is an automatic voice chatbot. It hears and responds to the sound without clicking any button or pressing any key. This is built on the API keys of OpenAI, ElevenLabs and whisper AI.

Python 100.00%

automatic_voice_chatbot's Introduction

๐ŸŽ™๏ธ๐Ÿค– Seamless and Real-Time Voice Interaction with AI Voice Chatbot ๐Ÿ—ฃ๏ธ๐Ÿ’ฌ

๐Ÿš€ Uses faster_whisper and elevenlabs input streaming for low latency responses to spoken input.

๐Ÿ› ๏ธ Setup

1. ๐Ÿ”‘ API Keys

Rename the .env_example to .env and enter your OpenAI and ElevenLabs API key values in the .env file

2. ๐Ÿ“ฆ Dependencies

๐ŸŽต mpv player installation

Make sure you have installed mpv player.

๐Ÿ–ฅ๏ธ Windows Users:

  1. ๐Ÿ“ฅ Download the latest mpv archive file from https://mpv.io/
  2. ๐Ÿ“ Extract the folder and rename it to mpv
  3. ๐Ÿ“Œ Copy the folder to "C:\Program Files"
  4. ๐Ÿ”’ Give user permissions (right-click "mpv" folder, properties, security, Users --> Full Control checkbox)
  5. ๐Ÿƒโ€โ™‚๏ธ Go to installer folder and run the installer as Administrator
  6. ๐Ÿ“‹ Copy the directory "C:\Program Files\mpv"
  7. ๐Ÿ” Open "System Environment Variables" from the Windows search bar and click "Environment Variables"
  8. ๐Ÿ“ In System environment variables, find "Path", click "Edit"
  9. โž• Add "C:\Program Files\mpv" to the list and click Ok on all windows
  10. ๐Ÿ”„ Restart the system

๐ŸŽ Mac Users:

Run: brew install mpv

๐Ÿง Linux Users:

Install it yourself. You're not like Windows users and You are the chad and chads don't need help.. ๐Ÿ˜‰

๐Ÿ“š Python Libraries:

Install the required Python libraries:

pip install -r requirements.txt

3. ๐Ÿƒโ€โ™€๏ธ Run the Script:

Execute the main script:

python main.py

๐Ÿ—ฃ๏ธ Talk into your microphone and ๐Ÿ‘‚ Listen to the reply

๐Ÿค Contribute

๐ŸŒŸ Feel free to fork, improve, and submit pull requests. If you're considering significant changes or additions, please start by opening an issue.

automatic_voice_chatbot's People

Contributors

sobanejaz 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.