Skip to content

This repository contains a simple Google Translator application built using the googletrans and gtts (Google Text-to-Speech) libraries in Python. The application allows users to translate text from one language to another and convert the translated text into speech.

Notifications You must be signed in to change notification settings

onkar0127/Language-translator-using-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Language-translator-using-python

This repository contains a simple Language Translator application built using the googletrans and gtts (Google Text-to-Speech) libraries in Python. The application allows users to translate text from one language to another and convert the translated text into speech.

Language Translator

A simple language translator application built using the Streamlit framework and the Google Translate API.

Installation

  1. Clone the repository:
git clone https://github.com/your-username/language-translator.git
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Run the application:
streamlit run translator.py
  1. The application will open in your default web browser.

  2. Enter the text you want to translate in the "Input" section.

  3. Select the target language from the dropdown menu.

  4. Click the "Translate" button to see the translated text in the "Translation" section.

  5. If the translation is successful, an audio player will be displayed below the translated text, allowing you to listen to the translation.

  6. You can download the audio translation by clicking the "Download Audio" button.

API

The application uses the following APIs:

Contributing

If you would like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your changes to your forked repository.
  5. Submit a pull request to the main repository.

License

This project is licensed under the MIT License.

Testing

To run the tests for this project, use the following command:

pytest tests/

This will run all the tests defined in the tests/ directory.

About

This repository contains a simple Google Translator application built using the googletrans and gtts (Google Text-to-Speech) libraries in Python. The application allows users to translate text from one language to another and convert the translated text into speech.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published