Skip to content

Python program to translate text between different languages using speech recognition and Google Translate API.

Notifications You must be signed in to change notification settings

aarushijain-24/Language-Translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Language Translator

This Python script allows you to translate text between different languages using the Google Translate API. It also provides the functionality to translate spoken language to text using speech recognition.

Dependencies

Before running the script, ensure you have the following Python packages installed:

  • tkinter: GUI toolkit for creating the graphical user interface.
  • speechrecognition: Library for performing speech recognition.
  • googletrans: Library for Google Translate API.

You can install the required dependencies using pip:

pip install tkinter
pip install speechrecognition
pip install googletrans

Usage

  1. Run the LanguageTranslator.py script in your Python environment.
  2. Enter the target language and the text you want to translate in the respective input fields.
  3. Click the "Translate" button to translate the text.
  4. The translated text will be displayed in the "Output Text" field.
  5. Optionally, click the "Speak" button to speak the text you want to translate, and the script will recognize your speech and translate it.

Note

  1. Ensure you have an active internet connection to use the translation services provided by Google Translate.
  2. The accuracy of speech recognition may vary based on the clarity of the spoken language and the ambient noise.

About

Python program to translate text between different languages using speech recognition and Google Translate API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages