Skip to content

AashnaAnand25/AstraSign

Repository files navigation

AstraSign - ASL Translation System

Advanced ASL translation system with real-time sign detection and 3D avatar animation.

Features

  • Audio → ASL: Speak naturally and see sign translations in real-time
  • ASL → Audio: Show signs and hear voice output with text-to-speech
  • 3D Avatar System: Interactive 3D characters performing ASL signs
  • Multiple ML Models: Support for MobileNetV2, ResNet50, EfficientNetB0, InceptionV3, VGG16, DenseNet121
  • Real-time Processing: Live transcription and sign detection
  • Training Pipeline: Train custom models with your data

Quick Start

  1. Install dependencies:

    npm install
  2. Start the development server:

    npm run dev
  3. Start the backend server:

    cd backend
    python main.py
  4. Access the application: Open http://localhost:8081 in your browser

Project Structure

  • src/components/astraign/ - React components for ASL features
  • src/services/ - ML model services and API integrations
  • src/data/ - ASL signs database and training data
  • backend/ - FastAPI backend for transcription and TTS
  • public/models/ - 3D model files for avatars

Technology Stack

  • Frontend: React + TypeScript + Three.js + TensorFlow.js
  • Backend: FastAPI with Python
  • ML Models: TensorFlow.js implementations
  • 3D Rendering: Three.js with React Three Fiber
  • UI: Shadcn/ui with Tailwind CSS

Configuration

Environment Variables

Create a .env file in the backend directory:

OPENAI_API_KEY=your_openai_key
GEMINI_API_KEY=your_gemini_key
ELEVENLABS_API_KEY=your_elevenlabs_key
API_SECRET=your_secret_key

Model Configuration

The system supports multiple computer vision models:

  • MobileNetV2 (default, fast)
  • ResNet50 (balanced accuracy/speed)
  • EfficientNetB0 (high accuracy)
  • InceptionV3 (very high accuracy)
  • VGG16 (legacy support)
  • DenseNet121 (alternative architecture)

Usage

Audio → ASL Translation

  1. Click the "Audio → ASL" tab
  2. Select your preferred detection model
  3. Click the microphone button to start recording
  4. Speak naturally and watch the ASL translation appear
  5. Use the play button to see avatar animations

ASL → Audio Translation

  1. Click the "ASL → Audio" tab
  2. Enable camera access
  3. Start sign detection
  4. Show ASL signs to the camera
  5. Listen to the voice output

Avatar System

  1. Click the "Avatar" tab
  2. Choose your preferred avatar model and environment
  3. Select signs to animate or use quick actions
  4. Control playback speed and camera settings

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

License

This project is licensed under the MIT License.

Support

For support and questions, please contact the AstraSign team.

The only requirement is having Node.js & npm installed - install with nvm

Follow these steps:

# Step 1: Clone the repository using the project's Git URL.
git clone <YOUR_GIT_URL>

# Step 2: Navigate to the project directory.
cd <YOUR_PROJECT_NAME>

# Step 3: Install the necessary dependencies.
npm i

# Step 4: Start the development server with auto-reloading and an instant preview.
npm run dev

Edit a file directly in GitHub

  • Navigate to the desired file(s).
  • Click the "Edit" button (pencil icon) at the top right of the file view.
  • Make your changes and commit the changes.

Use GitHub Codespaces

  • Navigate to the main page of your repository.
  • Click on the "Code" button (green button) near the top right.
  • Select the "Codespaces" tab.
  • Click on "New codespace" to launch a new Codespace environment.
  • Edit files directly within the Codespace and commit and push your changes once you're done.

What technologies are used for this project?

This project is built with:

  • Vite
  • TypeScript
  • React
  • shadcn-ui
  • Tailwind CSS

How can I deploy this project?

Simply open Lovable and click on Share -> Publish.

Can I connect a custom domain to my Lovable project?

Yes, you can!

To connect a domain, navigate to Project > Settings > Domains and click Connect Domain.

Read more here: Setting up a custom domain

About

AstraSign is a real-time ASL translation platform that converts spoken language to American Sign Language and ASL signs back to speech using computer vision and machine learning. It features live sign detection, text-to-speech output, and interactive 3D avatars to make communication between deaf and hearing individuals more accessible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors