Skip to content

About

An intelligent English vocabulary learning agent that generates interactive word cards with AI-powered explanations, anime-style images, natural audio pronunciation, and leverages state-of-the-art AI models for English conversation

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AI Word Master

AI Word Master

EN 日本語 中文

Live Demo GitHub License Python

Make vocabulary learning come alive — enter any word for a complete listening, speaking, reading, and writing practice, or choose a word list to study words randomly.

This project is under active development. It integrates Google Gemini, DeepSeek, and Mistral models to generate definitions, example sentences, and writing suggestions, and uses Amazon Polly for natural pronunciations and conversational audio. Real-time speech-to-text and additional features are planned.

Note: First visit may take 3–4 minutes due to free‑tier cold starts.

Features

  • Vocabulary Levels: Select from junior, senior, cet4, cet6, gre, ielts, sat, toefl levels
  • Interactive Chat: Practice English conversation with AI tutor (multilingual input, English output)
  • The system integrates multiple large language models (Google Gemini, DeepSeek, and Mistral) for text generation, supports dual audio providers (Amazon Polly and Deepgram) for natural pronunciations and conversational audio, and uses Google Gemini Imagen to generate anime-style contextual images.

Installation

1. Clone Repository

git clone <repository-url>
cd AWS-English-academic-presetation

2. Install Dependencies

pip install -r requirements.txt

3. Configure Environment Variables

Create a .env file in the project root:

# Text Generation APIs (choose one or more)
MISTRAL_API_KEY=your_mistral_api_key
DEEPSEEK_API_KEY=your_deepseek_api_key
GOOGLE_API_KEY=your_google_api_key

# Google Cloud Configuration for Vertex AI (optional)
GOOGLE_PROJECT_ID=YOUR_PROJECT_ID
GOOGLE_LOCATION=global

# Audio Generation APIs
DEEPGRAM_API_KEY=your_deepgram_api_key

# AWS Configuration (for Amazon Polly)
AWS_PROFILE=EAP001
AWS_REGION=us-east-1

# Server Configuration
PORT=5500
HOST=127.0.0.1

4. Configure AWS Credentials (for Amazon Polly)

Create or edit ~/.aws/credentials:

[EAP001]
aws_access_key_id = YOUR_ACCESS_KEY_ID
aws_secret_access_key = YOUR_SECRET_ACCESS_KEY
region = us-east-1

Required IAM Policy: AmazonPollyFullAccess

5. Run the Application

python server.py

Or use the startup script:

./start.sh

Usage

Generate Word Card

  1. (Optional) Select vocabulary level from dropdown (junior, senior, cet4, cet6, gre, ielts, sat, toefl)
  2. (Optional) Select text model (Mistral, DeepSeek, or Gemini)
  3. (Optional) Select audio model (Polly or Deepgram)
  4. (Optional) Select voice (Joanna, Matthew, or Salli)
  5. Enter a word in the input field (or leave empty for random word)
  6. Click "Start Learning"
  7. Wait for the card to generate (~15-20 seconds)
  8. Click the speaker icons to play audio
  9. Click the phonetic transcription play button to hear pronunciation

Chat with AI

  1. Type any message in the chat box (any language supported)
  2. AI will respond in English with streaming output
  3. Click the speaker icon to hear the response

Flip for New Word

Click the refresh button (bottom right) to generate a new random word card.

License

This project is for educational purposes.

Word list data sourced from english-words.

Acknowledgments

About

An intelligent English vocabulary learning agent that generates interactive word cards with AI-powered explanations, anime-style images, natural audio pronunciation, and leverages state-of-the-art AI models for English conversation

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages