Skip to content

I have made this Weather Forecast with Robotic Voice Speaker Using Pyttx3, json by integrating WeatherAPI's api.

Notifications You must be signed in to change notification settings

imshaa/WeatherForecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🌦 Weather Forecast with Robotic Voice Speaker

This Python project fetches real-time weather data and reads it aloud using a robotic voice. It uses WeatherAPI to retrieve weather details and pyttsx3 for text-to-speech functionality.

πŸš€ Features

  • 🌍 Get real-time weather updates for any city
  • πŸ”Š Robotic voice assistant (using pyttsx3)
  • πŸ“Œ Fetches details like temperature, humidity, region, and time
  • πŸ›  Error handling for incorrect city names or network issues

πŸ›  Technologies Used

  • Python
  • requests (for fetching weather data)
  • json (for parsing API response)
  • pyttsx3 (text-to-speech conversion)

πŸ“₯ Installation

1️⃣ Clone the repository

git clone https://github.com/imshaa/WeatherForecast.git
cd weather-forecast-voice

2️⃣ Install required dependencies

pip install requests pyttsx3

🎀 How It Works

  1. The program asks the user for a city name
  2. It fetches real-time weather data from WeatherAPI
  3. The robotic voice speaker (pyttsx3) reads out the weather details

πŸ“œ Usage

python weather_forecast.py

Then enter a city name when prompted. The program will fetch the weather and read it out loud.

πŸ”Š About Robotic Voice Speaker

This project uses pyttsx3, a text-to-speech conversion library in Python that works offline. It supports multiple voice properties:

  • Rate (speed of speech)
  • Volume
  • Different voice types (male/female)

By default, it reads weather details in a robotic voice to make the experience more interactive.

πŸ“Œ Example Output

Enter the name of the city: London
πŸ”Š "Here is the weather information for London. The temperature is 15 degrees Celsius. The humidity is 80%."

πŸ›  Future Improvements

  • βœ… Add voice input support
  • βœ… Improve speech clarity and intonation
  • βœ… Display additional weather details like wind speed

🀝 Contributing

Feel free to fork this project and improve it! Pull requests are welcome. 😊

πŸ“„ License

This project is open-source and available under the MIT License.


πŸ”— Follow for more cool projects! πŸš€

About

I have made this Weather Forecast with Robotic Voice Speaker Using Pyttx3, json by integrating WeatherAPI's api.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages