Captain Blackbeard (a.k.a. AI-Pirate-Assistant) is a voice-powered AI assistant with a pirate's swagger. It:
- Listens to your voice commands via browser.
- Uses Gemini LLM to craft intelligent, pirate-flavored responses.
- Speaks back using Murf AI for natural TTS.
- Keeps your API keys purely session-based—nothing is persistently stored.
It comprises:
- FastAPI backend.
- Pirate-themed frontend.
- Voice Input – Record and send audio directly from your browser
- AI-Powered Responses – Integrates Gemini & other APIs for smart replies
- Voice Output – Listen to AI’s response with Murf TTS
- Weather & News APIs – Ask real-world updates instantly
- User Privacy First – API keys live only in your session (not stored after reload)
- Deployed on Render – Accessible from anywhere
Try it live here:
👉 AI Pirate Assistant on Render
- Backend: FastAPI (Python)
- Frontend: HTML, CSS, JavaScript
- Audio Handling: pydub, Web Audio API
- APIs Integrated:
- Gemini API
- AssemblyAI (Speech-to-Text)
- Murf AI (Text-to-Speech)
- Weather API
- News API
- Deployment: Render
AI-Pirate-Assistant/
├── captain.py # FastAPI backend logic
├── captain.html # Frontend pirate-themed UI
└── README.md # Project documentation
git clone https://github.com/shravya1125/AI-Pirate-Assistant.git
cd AI-Pirate-AssistantCreate a virtual environment & install dependencies:
pip install -r requirements.txtRun FastAPI server
uvicorn captain:app --host 0.0.0.0 --port 8000 --reload- Open captain.html in your browser.
- Enter your Gemini LLM and Murf AI API keys in the config modal.
- Click Speak to Captain, speak into your mic, and get responses with authentic pirate flair.
- Open the app (local or Render link).
- Enter your API keys in the Config modal.
- Speak into the mic 🎤 – your voice is transcribed.
- Captain Blackbeard (AI) responds with text + voice 🔊.
- Keys disappear after session ends – no storage.
Contributions, issues, and feature requests are welcome!
Feel free to open a PR or start a discussion.
Captain Blackbeard was crafted as part of my learning & exploration journey. 🚀
Special appreciation to the 30 Days of AI Voice Agents Challenge, which inspired and pushed me to bring this project to life. 🏴☠️
⚓ “Arrr, may yer code sail smoothly and yer bugs walk the plank!” 🏴☠️

