PollyGlot

PollyGlot is a web application designed to provide accurate translations using advanced generative AI models. Users can enter text, select a target language, and receive translated text with the help of Google's Generative AI.

Features

  • Text Translation: Input text and select a target language to get accurate translations.
  • Language Options: Supports French, Spanish, Japanese and Chinese.
  • Responsive Design: Mobile-friendly interface.
  • Text-to-Speech: Functionality for pronunciation of translated text using Chrome Speechify API(chrome tts).

Technologies Used

  • Frontend: HTML, CSS, JavaScript
  • Backend: Node.js, Express
  • API: Google Generative AI API, Chrome Speechify

Clone the Repository

git clone https://PreciousDipe/your-username/pollyglot.git
cd pollyglot

Create a .env file

Add your apikey "API_KEY=your-google-generative-ai-api-key" and port "PORT=3000"

Build the Docker Image

docker-compose up --build

File Structure

pollyglot/
│
│── node_modules/
│── .env
│── .gitignore
│── Dockerfile
│── docker-compose.yml
│── server.js
│── package.json
│── package-lock.json
│
└── public/
    ├── assets/
    │   ├── fr-flag.png
    │   ├── jpn-flag.png
    │   ├── sp-flag.png
    │   ├── chn-flag.png
    │   └── parrot.png
    ├── index.html
    ├── index.css
    └── index.js