This is a basic Android application that converts user-typed text into speech using Java and Android’s native TextToSpeech (TTS) API. It is a lightweight and beginner-friendly project designed to demonstrate the integration of TTS features in Android.
- ⌨️ Accepts text input from the user
- 🔊 Converts text to spoken audio
- 🌍 English (US) language support
- 📲 Simple and responsive UI
- 🧑💻 Java (Android)
- 📱 Android SDK
- 🗣️ TextToSpeech API
- 🎨 XML for UI layouts
- Android Studio
- Android emulator or physical device with API 21+
-
Clone the repository:
git clone https://github.com/harinandanmv/text-to-voice.git
-
Open the project in Android Studio
-
Build and run on an emulator or Android device
text-to-voice/
├── app/
│ ├── src/
│ │ ├── main/
│ │ │ ├── java/
│ │ │ │ └── com/example/texttovoice/MainActivity.java
│ │ │ ├── res/
│ │ │ │ ├── layout/activity_main.xml
│ │ └── AndroidManifest.xml
├── build.gradle
└── README.md
- The app initializes the
TextToSpeechengine withLocale.US. - Users enter any message into an
EditText. - Pressing the Speak button triggers the TTS engine to vocalize the text.
- The layout is optimized with
EdgeToEdgesupport and system insets viaViewCompat.
This is a simple educational project open for experimentation and improvements.
Feel free to fork the repo, play with features, and submit a pull request if you build something interesting.
Built by Harinandan
Feel free to explore, star ⭐ the repo, or contribute with new features!