A tool for music synchronization across devices on a local network.
There are two versions for this tool as mentioned below. The command-line version is the one that is a little ahead, some features are yet to be adapted to the GUI-version.
The libraries needed are - pygame
and PyQt5
. They can be installed via pip.
python -m pip install pygame==2.0.0
python -m pip install pyqt5==5.15.1
(Note: The versions used at the time of development are specified above.)
The music that needs to be played must be present under the music
folder (which has been createdunder both GUI and CLI implementation folders but is empty for now) whether the node is acting as a client or a server.
- Go to the
CLI
folder.
cd CLI
- Run
main.py
py main.py
This is followed by some self explanatory queries for the communication.
Note: In this implementation, the server will query for the file from the clients if it does not have it. It will then verify whether all the clients have the file to be played. Then it will start operation.
- Go to the
GUI
folder
cd GUI
- run
main.py
py main.py
This is followed by some self-explanatory on-screen prompts for the user to continue operation.
Note: In this implementation, the server needs to have any file that is to be played. It will only verify whether all the clients have the file to be played or not. If the file is not present on some client, it will send the file to that client before beginning any operation.