Overview This is a Language Translation Tool built using Python and CustomTkinter. It supports both auto-translate and manual translate modes, allowing users to translate text between multiple languages. The app also includes a voice input feature for hands-free translation.
- Auto-Translate Mode:
- Automatically translates text as the user speaks or writes.
- Manual Translate Mode:
- Allows users to write text and click a "Translate" button to translate it.
- Voice Input:
- Users can speak into their microphone, and the app will recognize and translate the text.
- Multiple Languages:
- Supports translation between English, Hindi, French, Japanese, German, Spanish, Chinese, Russian, Arabic, and Portuguese.
- Swap Languages:
- Users can swap the source and target languages with a single click.
- Save Translation History:
- Translations can be saved to a file for future reference.
- Python 3.x
- Libraries:
customtkinter
googletrans==4.0.0-rc1
speechrecognition
datetime
threading
Install the required libraries using:
pip install customtkinter googletrans==4.0.0-rc1 speechrecognition
- Auto-Translate Mode:
- Toggle the "Auto-Translate" switch to enable auto-translate.
- Speak into your microphone, and the recognized text will appear in the input box.
- The text will be automatically translated and displayed in the output box.
- Manual Translate Mode:
- Toggle the "Auto-Translate" switch to disable auto-translate.
- Write text in the input box and click the "Translate" button to translate it.
- Swap Languages:
- Use the "⇄" button to swap the source and target languages.
- Save History:
- Click "Save Translation History" to save the current translation to a file.
This project is open-source and available under the MIT License.