Skip to content

Voice-activated desktop assistant that chats with you, detects your mood through sentiment analysis, and plays YouTube music based on emotion. Built with Python, Tkinter, SpeechRecognition, and TextBlob.

Notifications You must be signed in to change notification settings

pratikdkale/MoodyPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moody Player – Voice-Based Mood Detection and Music Player

Moody Player is an interactive voice-driven desktop assistant that engages users in a short conversation, detects their mood using sentiment analysis, and plays a relevant playlist via YouTube.


Features

  • Voice interaction using speech recognition
  • Detects user mood through sentiment analysis
  • Plays a curated playlist from YouTube based on identified mood
  • Randomized daily questions to avoid repetition
  • Simple and lightweight GUI using Tkinter
  • JSON-based playlist and question storage for easy updates

Setup Instructions

1. Clone the Repository

git clone https://github.com/yourusername/MoodyPlayer.git
cd MoodyPlayer

2. Create and Activate a Python Environment (optional)

conda create -n moodyplayer python=3.10
conda activate moodyplayer

3. Install Dependencies

pip install -r requirements.txt

If pyaudio fails to install, run:

pip install pipwin
pipwin install pyaudio

4. Run the Application

python MoodyPlayerGUI.py

Folder Structure

MoodyPlayer/
├── MoodyPlayerGUI.py
├── requirements.txt
├── README.md
└── data/
    ├── mood_playlists.json
    ├── question_bank.json
    └── used_questions.json  (auto-generated)

Customization

  • You can expand or edit the mood_playlists.json file to include more songs per mood.
  • Add or replace mood detection questions in question_bank.json.

About

Voice-activated desktop assistant that chats with you, detects your mood through sentiment analysis, and plays YouTube music based on emotion. Built with Python, Tkinter, SpeechRecognition, and TextBlob.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages