voice-assistant-chatbot

Voice Assistant Chatbot

This repository contains a simple voice assistant chatbot built using Python. The chatbot is capable of understanding user speech, processing it, and generating a spoken response. It utilizes various libraries, including SpeechRecognition, TextBlob, gTTS, and playsound, to handle speech recognition, sentiment analysis, text-to-speech conversion, and audio playback, respectively.

Getting Started

To run the voice assistant chatbot, follow these steps:

  1. Prerequisites Make sure you have Python installed on your system. You can download Python from the official website.

  2. Install Required Libraries You need to install the following libraries if you haven’t already:
    • SpeechRecognition
    • TextBlob
    • gTTS
    • playsound Install them using pip:
  3. Run the Chatbot Run the nlp.py script to start the voice assistant chatbot:

  4. Interact with the Chatbot Speak to the chatbot, and it will respond based on the input provided. To stop the chatbot, say “stop”.

Functionality

The voice assistant chatbot offers the following functionality:

File Structure

Contributing

Contributions are welcome! If you have any suggestions or feature requests, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgements