Welcome to TiM: Text into Music, a pioneering project showcased at HackMIT 2023! Crafted with innovation and passion by Emma Qin (MIT '24), Lavan Vivekanandasarma (CU Denver '25), Hector Astrom (MIT '27) & Alec Wang (CU Boulder '26), TiM transforms the narrative of your chosen book into a harmonious musical experience, syncing it seamlessly with a track on Spotify. Follow the steps below to set up and immerse yourself in a melody woven from words:
-
For the Backend API the following packages need to be installed in your Python Environement:
- numpy
- fastapi
- uvicorn
- pydantic
Install these with:
pip install numpy fastapi uvicorn pydantic
Running the API should automatically install Pytorch and other required packages should you not have them.
-
For the ReactJS frontend be sure to install ReactJS and install dependencies before running with:
npm i
git clone https://github.com/Brotherswords/HackMIT2023.git
Open two separate terminal windows in the project directory to manage backend and frontend services.
In one of the terminal windows, navigate to hackmit-tim-ml-main
using the command:
cd hackmit-tim-ml-main
then use the command to start the API:
uvicorn fastapi_demo:app --reload
In the other terminal window, execute the following command to launch the frontend service:
npm start
Log in to your Spotify account and select a book. The on-screen text will be analyzed and transformed into a musical ID, directing you to a corresponding Spotify track that resonates with the narrative, creating a harmonic amalgamation of story and music.
We hope you enjoy this innovative blend of literature and music, creating a serene auditory landscape that complements the literary world.
Happy listening and happy reading! 📚🎶