Skip to content

farhaan-arshad/LangTranslator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangTranslator

LangTranslator is a real-time speech translation application built with Python. It converts spoken words into text, translates them into a target language, and provides an audio output of the translated text. This project leverages Speech Recognition, Machine Translation, and Text-to-Speech (TTS) to enhance communication across different languages.

Features

  • 🎙️ Speech Recognition: Captures spoken words using Google Speech Recognition
  • 🌍 Translation: Converts recognized speech into multiple target languages
  • 🔊 Text-to-Speech: Plays the translated text as audio output
  • 🖥️ Streamlit Web Interface: Provides a user-friendly web-based UI for easy interaction
  • 📡 Cross-Platform Support: Works on Windows, macOS, and Linux

Supported Languages

LangTranslator currently supports translation and speech output for the following languages:

  • 🇫🇷 French (fr)
  • 🇪🇸 Spanish (es)
  • 🇩🇪 German (de)
  • 🇮🇳 Hindi (hi)
  • 🇨🇳 Chinese (zh)
  • 🇸🇦 Arabic (ar)
  • 🇮🇳 Kannada (kn)

Streamlit Web App

The project includes a Streamlit-based web interface where users can:

  • Select a target language from a dropdown menu
  • Click a button to start speech recognition
  • View the recognized and translated text in real time
  • Listen to the translated speech output with a single click

Technologies Used

  • Python for backend processing
  • Google Speech Recognition API for speech-to-text conversion
  • mtranslate for text translation
  • gTTS (Google Text-to-Speech) for converting text to speech
  • Streamlit for building the web interface

Installation & Usage

  1. Clone the repository:
    git clone https://github.com/farhaan-arshad/LangTranslator.git
  2. Navigate to the project directory:
    cd LangTranslator
  3. Install dependencies:
    pip install -r requirements.txt
  4. Run the Streamlit app:
    streamlit run app.py

Made By

Farhaan Arshad

About

This AI-powered speech translator listens to spoken words, translates them into a target language, and speaks the translation aloud. It uses Google’s speech recognition, mtranslate for translation, and gTTS for text-to-speech conversion. Perfect for real-time language translation!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages