Skip to content

divyanshmrawal/VoiceToVoiceTranslator

Repository files navigation

VoiceToVoiceTranslator

Live Voice-to-Voice Translation — Speak into your microphone, and the program will translate your words into another language and play it back.


Features

  • Listen to your voice
  • Translate spoken words
  • Speak out the translation

Prerequisites

  • Python 3.8+
  • Microphone
  • Internet connection
  • Install required packages:
pip install SpeechRecognition gTTS playsound pyaudio googletrans==4.0.0-rc1

How to Use

  1. Connect your microphone.
  2. Run the script:
python VoiceToVoiceTranslator.py
  1. Speak clearly.
  2. Translation will play back automatically.
  3. To stop, press Ctrl+C or say your stop word (if configured).

Settings

Open the script and adjust:

SOURCE_LANG = 'en'      # language you speak
TARGET_LANG = 'hi'      # language to translate
TTS_LANG = 'hi'         # language for audio playback
STOP_WORD = 'zero'      # word to stop the program

Tips

  • Make sure the microphone is working.
  • If audio isn't clear, speak slowly and adjust noise settings.
  • On Windows, run chcp 65001 if you see weird characters.

About

This project is a Python-based voice translation system that allows two people speaking different languages to communicate easily. It listens to one person’s voice, translates it into another language, and then speaks the translated message aloud.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages