Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

codeIntrovert/GDG-APL-ONE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

VOICE AND TEXT-BASED ALEXA CLONES USING GEMINI

This project provides both voice-based and text-based AI assistants using Google's Gemini API. The AI-powered assistants can process user input via text or speech and generate intelligent responses.

Skill Tags

Python, APIs, Google Gemini API, AI, Voice Recognition, Speech-to-Text, Text-to-Speech (TTS), Voice Assistant, Automation, Speech Synthesis

Relevant Links

Visual Studio Code: https://code.visualstudio.com/ Python: https://www.python.org/downloads/


Getting Started

Follow these steps to set up and run the project on your local machine.

1. Clone the Repository

First, clone or download the project from the GitHub repository:

 git clone https://github.com/codeIntrovert/GDG-APL-ONE
 cd GDG-APL-ONE

2. Get a Free Gemini API Key

You need an API key from Google's AI Studio to use the Gemini AI services.

  • Visit Google AI Studio
  • Sign in with your Google account
  • Generate a free API key
  • Save the key for later use

3. Create a Python Virtual Environment

Setting up a virtual environment ensures dependencies don’t interfere with system packages.

py -m venv env # Create virtual environment

Activate the environment:

  • Windows:
    env\Scripts\activate
  • Mac/Linux:
    source env/bin/activate

4. Install Required Dependencies

Once the virtual environment is activated, install the dependencies:

pip install -r requirements.txt

5. Set Up Your API Key

To securely store your API key, create a .env file in the project directory and add:

API_KEY=your_gemini_api_key_here

Usage

Text-Based Chat Assistant

Run the following command to interact with the text-based AI assistant:

py text_gemini.py

Voice-Based AI Assistant

Run this command to use the voice-enabled assistant:

py voice_gemini.py

Project Structure

πŸ“‚ alexa-clone
β”œβ”€β”€ πŸ“‚ env/ # Virtual environment (ignored in .gitignore)
β”œβ”€β”€ πŸ“‚ library/ # Helper modules
β”œβ”€β”€ πŸ“œ text_gemini.py # Text-based AI assistant
β”œβ”€β”€ πŸ“œ voice_gemini.py # Voice-based AI assistant (final outcome)
β”œβ”€β”€ πŸ“œ requirements.txt # Required dependencies
β”œβ”€β”€ πŸ“œ .env # API key storage (not committed to Git)
└── πŸ“œ README.md # Documentation

Troubleshooting

Common Issues and Fixes

❌ Running Scripts is disabled on this machine

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

❌ ModuleNotFoundError: No module named 'xyz'

βœ… Ensure you've installed all dependencies:

pip install -r requirements.txt

❌ ImportError: attempted relative import with no known parent package

βœ… Try running the script as a module:

py -m text_gemini

❌ API not responding

βœ… Verify your .env file contains the correct API key.
βœ… Ensure your internet connection is working.


Features

βœ… Text-based AI chat assistant
βœ… Voice-based AI assistant
βœ… Uses Google's Gemini API for responses
βœ… Lightweight and easy to set up
βœ… Python-based with minimal dependencies


Acknowledgments

πŸ”Ή Powered by Google Gemini AI
πŸ”Ή Inspired by Alexa Voice Assistant πŸ”Ή Project by Google Developer Groups On Campus SSTC


Happy Coding! πŸš€

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /