/Python-Voice-Assistant-Suryanshsk

A Python-based virtual assistant using Gemini AI. Features include voice recognition, text-to-speech, weather updates, news retrieval, jokes, Wikipedia info, and music management. Comes with an interactive web interface. Easily extendable and customizable.

Primary LanguagePythonMIT LicenseMIT

Python-Voice-Assistant-Suryanshsk

A Python-based virtual assistant using Gemini AI. Features include voice recognition, text-to-speech, weather updates, news retrieval, jokes, Wikipedia info, and music management. Comes with an interactive web interface. Easily extendable and customizable.

Suryanshsk Python Voice Assistant

  1. Generate requirements.txt:

    If you have a virtual environment set up with all the necessary packages, you can generate the requirements.txt file with the following command:

    pip freeze > requirements.txt
  2. Include requirements.txt in the README:

    Here’s an updated version of the README that includes the requirements.txt instructions:

# Virtual Assistant with Gemini AI

A sophisticated Python-based virtual assistant utilizing Gemini AI. This project integrates various functionalities to create a versatile and interactive assistant.

## Features

- **Voice Recognition**: Processes and understands spoken commands.
- **Text-to-Speech**: Converts text responses into spoken output.
- **Weather Information**: Provides real-time weather updates.
- **News Updates**: Fetches the latest news headlines.
- **Jokes**: Delivers a variety of jokes.
- **Wikipedia Information**: Retrieves data from Wikipedia.
- **Music Management**: Handles and plays music.
- **Web Interface**: Interactive frontend with animations.
- **Your Question**: It Give Answer OF Your Questions.

## Installation

1. Clone the repository:

   ```bash
   git clone https://github.com/suryanshsk/Python-Voice-Assistant-Suryanshsk.git
  1. Navigate to the project directory:

    cd repository
  2. Install dependencies:

    pip install -r requirements.txt

    The requirements.txt file includes the following modules:

    pip install speechrecognition==3.8.1
    gtts==2.2.3
    requests==2.28.1
    beautifulsoup4==4.12.0
    flask==2.3.2
    websocket-client==1.5.1
    google-generativeai==0.3.1
    request
    speechrecognition
    pyttsx3
    wikipedia
    requests
    pyjokes
    
    pip install -U google-generativeai
    

Notice

User Your Own Api Key

genai.configure(api_key="Your_Own_API_KEY_FOR_GEMINI_AI")  # Replace with your actual API key
# Example API call, replace with a real news API
    api_key = 'YOUR_NEWS_API_KEY'
API_KEY = 'YOUR_WEATHER_API_KEY'  # Replace with your API key

Usage

Run the main script to start the assistant:

python main_assistant.py

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For questions or feedback, reach out to suryanshskcontact@gmail.com.