A simple language translator web app that allows users to translate text between different languages using the MyMemory Translation API. It also includes Text-to-Speech (TTS) and Speech-to-Text (STT) functionalities using the Web Speech API.
- ✅ Translate Text between multiple languages
- ✅ Swap Languages easily with a button click
- ✅ Copy Translated Text to the clipboard
- ✅ Text-to-Speech (TTS) for pronunciation assistance
- ✅ Speech-to-Text (STT) for voice input
- ✅ Responsive Design for all screen sizes
- HTML - Structure of the app
- CSS - Styling and responsiveness
- JavaScript - Core functionality
- MyMemory Translation API - Translation service
- Web Speech API - Speech recognition & text-to-speech
📦 language-translator
├── 📂 js
│ ├── countries.js # List of supported languages
│ ├── script.js # Main JavaScript logic
├── 📂 css
│ ├── style.css # Styles for the UI
├── index.html # Main HTML file
├── README.md # Project documentation
- Clone the repository
git clone https://github.com/SarveshShahane/Bhaasha/tree/main
- Open
index.htmlin a browser. - Start translating!
- Enter text in the input box.
- Select languages from the dropdown.
- Click Translate to get the translated text.
- Use Copy, TTS, or Speech Input for additional functionality.
- Click the microphone to speak and convert speech to text.
- Click the speaker icon to hear the translated text.
Feel free to contribute! Fork the repo, make changes, and submit a pull request. 😊