This project is part of my CodeAlpha Artificial Intelligence Internship.
The Language Translation Tool allows users to:
- Enter text in any language.
- Automatically detect the source language.
- Translate text into a target language of their choice.
- Read aloud the translated text using Text-to-Speech (TTS).
It’s a simple yet powerful application that demonstrates real-world AI integration using translation APIs and speech synthesis.
✅ Auto Language Detection – No need to manually select the source language.
✅ Multi-Language Translation – Supports dozens of languages via API.
✅ Text-to-Speech – Hear the translated text spoken in the target language.
✅ Simple Web Interface – Easy-to-use input & output display.
✅ Fast & Accurate – Uses industry-standard APIs for instant translations.
- Python – Core backend logic.
- Streamlit – For building the user-friendly web interface.
- Googletrans – For translation & language detection.
- gTTS (Google Text-to-Speech) – For converting text into spoken audio.

(Example: Translating English to Arabic with TTS button)
git clone https://github.com/KisamiYounes/-Artificial-Intelligence-CodeAlpha.git
cd CodeAlpha_LanguageTranslationToolpip install -r requirements.txtstreamlit run app.pyType or paste your text in the input box.
Select the target language.
Click Translate.
Click Play Audio to hear the translated text.
📦 Requirements Make sure you have Python 3.8+ installed. Install dependencies from requirements.txt:
streamlit
googletrans==4.0.0-rc1
gtts
📜 Project Structure
📂 CodeAlpha_LanguageTranslationTool
├── app.py # Main application code
├── requirements.txt # Dependencies list
├── assets/ # Images, screenshots, audio files
├── README.md # Project documentation🚀 Future Improvements Add copy to clipboard function.
Support offline translation for some languages.
Improve UI design with better styling.
🙌 Acknowledgements CodeAlpha – For the internship opportunity.
Google Translate API – For translation & language detection.
gTTS – For text-to-speech support.
Streamlit – For fast UI development.
📄 License This project is licensed under the MIT License.