Skip to content

A Python chatbot that can recognize emoticons and simple moods, greet you, answer fun questions, recommend music, and speak all responses aloud using Google Text-to-Speech and Pygame.

License

Notifications You must be signed in to change notification settings

hariiomp/Simple-chat-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Interactive Chatbot

A simple Python voice-interactive chatbot that detects mood from basic text input, responds with context-aware greetings, and offers fun, personalized interactions using text-to-speech and sound playback. The bot can recognize mood, answer ownership queries, suggest music, share the current date and time, and moreβ€”all with voice responses powered by Google Text-to-Speech and Pygame.

##✨ Features

  • Mood Detection: Recognizes mood/emoticon in text and responds accordingly.
  • Voice Feedback: Uses Google's gTTS and Pygame to speak out all responses.
  • Contextual Responses: Intelligent replies for greetings, jokes, mood chats, ownership, and song requests.
  • Music Recommendations: Suggests popular websites based on song language preference.
  • Date & Time Reporting: Tells the current date and time on request.
  • Fully Interactive: Runs in a text prompt/voice loop; user can interact as if chatting.

πŸ“¦ Requirements

  • Python 3.x
  • gTTS
  • pygame

** πŸš€ Usage**

  • Clone this repository or download the script.
  • Run the script python chatbot.py
  • Type your message (try emoticons like :), :'(, or greetings like hello, or ask "sing a song", etc.).
  • Listen and watch the console for voice and text responses.

** ⚑ Example Interactions **

  • Input: :) Output (voice & text): "You are in happy mood"

  • Input: hello Output: Random greeting and "How are you?"

  • Input: sing a song Output: Asks for language and recommends resources

πŸ§‘β€πŸ’» Author

Developed by Hariom Pandey

About

A Python chatbot that can recognize emoticons and simple moods, greet you, answer fun questions, recommend music, and speak all responses aloud using Google Text-to-Speech and Pygame.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages