AI Assistant Martian Using Python and CSV Dataset

By Neelkanth

Project Overview

Martian is a voice-controlled AI assistant where all commands and responses are stored in a CSV dataset. This approach teaches readers how to structure data, access it using Python, and make the assistant data-driven - a core concept in machine learning projects. Instead of hard-coding responses, Martian dynamically reads from the CSV to respond to user queries.



Python Code


CSV Dataset Example

This CSV file stores the commands and their corresponding responses. Users can open this CSV to understand how the AI assistant accesses structured data.


Key Features

CSV-Driven Dataset

All commands and responses are stored in a CSV file, demonstrating how AI systems can be data-driven and easily extensible.

Voice Recognition

Uses the SpeechRecognition library to convert spoken words into text, allowing hands-free interaction.

Task Automation

Recognizes predefined commands to open websites like Google, YouTube, WhatsApp using Python's webbrowser module.

Dynamic Responses

Some responses like current time or Wikipedia summaries are generated dynamically, making Martian flexible.


Workflow

Step 1 - Voice Input

User speaks a command such as "Open YouTube" or "What is Python on Wikipedia?".

Step 2 - CSV Lookup

Martian searches the CSV dataset for a matching command and retrieves the corresponding response.

Step 3 - Response Execution

Martian speaks the response and, if applicable, opens websites or fetches dynamic data like Wikipedia summaries.


Limitations

No NLP Integration: Commands must match exactly with CSV entries. Martian cannot understand complex natural language.

Predefined Commands: Only commands present in the CSV will be recognized.


Future Enhancements

Expanded CSV: Add more commands and dynamic responses.

NLP Integration: Use NLP to understand user intent instead of exact command matching.

API Integration: Connect Martian with external APIs for music, weather, or news.


Conclusion

This CSV-driven Martian AI assistant teaches readers how to use structured data to build a real-time, voice-controlled assistant. It demonstrates the basics of AI workflows, dynamic responses, and data-driven design in Python.