Human Language Translator
This Python-based application, featuring a graphical user interface built using Tkinter, aims to provide real-time translation of spoken language into a language of choice.
- Speech Recognition: Leveraged the
speech_recognitionlibrary for capturing and interpreting voice input. - Translation Service: Integrated the
googletranslibrary to facilitate language translation services. - Text-to-Speech Synthesis: Incorporated the
pyttsx3library for converting translated text into speech. - Graphical User Interface (GUI): Developed an intuitive and user-friendly interface using Tkinter.
- Audio Playback: Used
playsoundandgTTSto play back translated audio.
- Initialization: The application initializes libraries and sets up the GUI for an immersive user experience.
- Voice Command Activation: Clicking the 'START' button activates voice command recognition.
- Language Selection: Users have to speak to provide the desired language for translation.
- Translation Process:
- Captures voice input and converts it to text.
- Utilizes
googletransfor real-time language translation. - Converts translated text into an audio file using
gTTS. - Plays back the translated audio using
playsound. - Removes the saved audio file using the
osmodule.
- Continuous Translation: The program remains in a loop, translating user input until the user decides to exit by issuing the "exit command."
This application facilitates multilingual communication, allowing users from different parts of the world to communicate easily. It enables seamless understanding and exchange of information, breaking down language barriers.