Skip to content

Farru049/Jarvis-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jarvis Voice Assistant

A smart voice assistant application built using Python. Jarvis can perform various tasks such as fetching weather updates, providing news headlines, and responding to user commands through speech. This project leverages speech recognition, text-to-speech, and external APIs to provide a seamless user experience.

Features

  • Voice Recognition: Converts spoken commands into text using speech recognition.
  • Text-to-Speech: Converts responses into spoken audio.
  • Weather Updates: Fetches and reports current weather information.
  • News Headlines: Retrieves and displays recent news headlines.

Installation

To get started with Jarvis Voice Assistant, follow these steps:

  1. Clone the Repository

    git clone https://github.com/yourusername/jarvis_voice_assistant.git
    
  2. Navigate to the Project Directory

    cd jarvis_voice_assistant
  3. Create a Virtual Environment (Optional but Recommended)

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  4. Install Dependencies

    pip install -r requirements.txt

API Keys

This project uses external APIs for weather and news information. To use these features, you need to provide your own API keys. Replace the placeholders in src/weather_api.py and src/news_api.py with your API keys:

# src/weather_api.py
api_keys = {
    'weather': 'YOUR_WEATHER_API_KEY',
}
# src/news_api.py
api_keys = {
    'news': 'YOUR_NEWS_API_KEY',
}

Usage

  1. Run the Application

    python src/main.py
  2. Speak Commands

    Jarvis will listen for your voice commands and respond accordingly. Commands can include requests for weather updates, news headlines, and more.

File Structure

Here's an overview of the project structure:

jarvis_voice_assistant/
│
├── src/
│   ├── __init__.py
│   ├── main.py
│   ├── voice_recognition.py
│   ├── text_to_speech.py
│   ├── command_processing.py
│   ├── weather_api.py
│   └── news_api.py
│
├── requirements.txt
├── README.md
├── setup.py
└── .gitignore
  • main.py: Entry point of the application. Handles the main loop for voice recognition and processing.
  • voice_recognition.py: Contains functionality for recognizing speech and converting it to text.
  • text_to_speech.py: Converts text responses into spoken audio.
  • command_processing.py: Processes recognized commands and interacts with APIs.
  • weather_api.py: Fetches weather information from an external API.
  • news_api.py: Retrieves news headlines from an external API.

Contributing

Contributions are welcome! If you have suggestions or improvements, please fork the repository and submit a pull request. For bug reports or feature requests, open an issue on GitHub.

License

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

Contact

For any questions or feedback, feel free to reach out via [email protected].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages