Multilingual AI Voice Assistant Development by Ahmad MujtabaMultilingual AI Voice Assistant Development by Ahmad Mujtaba

Multilingual AI Voice Assistant Development

Ahmad Mujtaba

Ahmad Mujtaba

Multilingual AI Voice Assistant

Overview

This project is a multilingual AI voice assistant built in Python. It allows users to interact with an AI assistant using their voice, supporting multiple languages for both input and output. The assistant recognizes spoken language, detects the language used, generates intelligent responses using OpenAI models (via OpenRouter), and replies using natural-sounding speech.

Features

Voice Recognition: Speak to the assistant using your microphone.
Multilingual Support: Detects and responds in multiple languages.
Conversational AI: Uses OpenAI models for intelligent, context-aware responses.
Text-to-Speech: Replies are spoken aloud using Google Text-to-Speech (gTTS).
Session Memory: Maintains conversational context in a session.

Tech Stack

Python 3.13+

Installation

Clone the repository:
git clone <your-repo-url>
cd AIChatBot
Install dependencies: If you use Poetry:
poetry install
Or, using pip:
pip install -r requirements.txt
Or, using the provided pyproject.toml:
pip install .
Set up environment variables:
Copy .env.example to .env and add your OpenRouter API key:
OPENROUTER_API_KEY=your-openrouter-api-key

Usage

Start the assistant:
python main.py
Speak into your microphone when prompted.
Listen to the AI assistant's spoken response.
Press Ctrl+C to exit.

File Structure

main.py — Main application script (voice recognition, conversation, TTS)
.env — Environment variables (API keys)
pyproject.toml — Python dependencies and project metadata
README.md — Project documentation

Requirements

Python 3.13 or newer
Microphone and speakers
OpenRouter API key

Credits

License

MIT License
Last updated: July 11, 2025
Like this project

Posted Jul 12, 2025

Developed a multilingual AI voice assistant using Python and OpenAI models.

Likes

0

Views

0

Timeline

Jun 15, 2025 - Jul 11, 2025