RoboSpeaker is a simple yet powerful Python-based voice assistant that can speak any text you type and announce the weather for any city using live weather data — all through Text-to-Speech (TTS) technology.
- 🗣️ Text-to-Speech Tool: Type anything and the program will speak it aloud.
- ☁️ Weather Announcer: Enter a city name and get the current temperature spoken out loud.
- 🔁 Loop mode: Use it continuously for multiple entries until you choose to exit.
- ✅ Easy to use and beginner-friendly.
Before running the program, make sure you have Python installed and install the following libraries:
pip install requests pyttsx3RoboSpeaker/
├── wetherApp.py # Weather-based TTS using weatherapi.com
├── main.py # General-purpose TTS for any typed text
├── README.md # Project instructionsRun the following script to make the assistant speak anything you type:
python tts_speaker.py- Type your sentence.
- The program will speak it out loud.
- Type
byeto exit.
Run this script to get the spoken temperature for any city:
python tts_weather.py- Enter any city name (e.g.,
London,New York,Mumbai). - The program fetches the current temperature and speaks it.
- Type
xto exit the program.
⚠️ Make sure you're connected to the internet.
This project uses WeatherAPI.com to fetch real-time weather data. You can sign up to get your own free API key if needed.
You can customize:
- The voice or rate of speech using
pyttsx3settings. - Add more weather details (like humidity or wind) to the spoken output.
- Replace the API key for your own usage.
Vishwajit VM
📧 Email: vishwajitmall50@gmail.com
Enjoy the power of speech in Python! 🔉