TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: ChatGPT-powered music playlists for every mood and activity

2 pointsby diggumabout 2 years ago
Hi, HN!<p>Excited to share a project I&#x27;ve built over the last few weeks that uses natural language queries to generate incredible music playlists at <a href="https:&#x2F;&#x2F;muze.one&#x2F;" rel="nofollow">https:&#x2F;&#x2F;muze.one&#x2F;</a>. The more detailed or interesting the request, the better the results. We also launched today on PH: <a href="https:&#x2F;&#x2F;www.producthunt.com&#x2F;posts&#x2F;muze-1a1d9f6e-b906-4256-95c1-f313ba56dad4" rel="nofollow">https:&#x2F;&#x2F;www.producthunt.com&#x2F;posts&#x2F;muze-1a1d9f6e-b906-4256-95...</a><p>This is a tech sneak peek, bringing a significant advance in quality and accuracy to our previous, fitness-based product. We&#x27;ll generate a playlist, which can be extended several times, and give a detailed reason why each song was selected. It&#x27;s already led me to discover dozens of new bands and artists I probably wouldn&#x27;t have found otherwise, and I&#x27;ve heard the same from several of the early friends &amp; family testers.<p>If you&#x27;re looking to soundtrack your day, please give it a try and let me know how it worked out. I&#x27;m not a developer by any means, so this has been a lot of fun and a great learning experience to build.

1 comment

diggumabout 2 years ago
I relied upon ChatGPT to build this as my development experience is pretty light. What I found was it&#x27;s not perfect, but because I know enough Python to troubleshoot, I was able to either fix issues myself or understand the right way to frame the next prompt to improve or resolve any problems I ran into.<p>I started a new chat and explained that we would be working together to build a web app that would take a user&#x27;s input and use the chatGPT API generate a unique music playlist, taking into account every mood, activity, emotion, attitude, era, and artist that the user mentioned. The results would be displayed in a table with the album thumbnail, artist and song information, and an audio preview. The user should also be able to open the full playlist in Spotify.<p>It recommended we create a Flask app in Python and immediately generated some code and instructions. It took a bit of finessing to get the right libraries installed and setup the environment variables correctly, but I had something working within about an hour. It was ugly, it was slow, but it was functional.<p>After several queries, it&#x27;s recommendations no longer seemed to be talking about the same code we&#x27;d written. It would reference functions that didn&#x27;t exist or weren&#x27;t named the same. For awhile, I could reset it by simply saying, &quot;Here is the current version of the code&quot; and paste the source in, but eventually, it got too large. I refactored both the python file and the html templates so that they were more manageable sizes, and that helped. I found I could also simply paste a function or section of code I was having trouble with and usually get usable feedback.<p>I had avoided using frameworks like Bootstrap before because there seemed to be a learning curve that I just didn&#x27;t have time or need to dive into. However, because it designed the app around those frameworks, I had the luxury of just seeing the results and how they were achieved. I won&#x27;t pretend I&#x27;m an expert, but I do feel far more confident if I needed to start from scratch.<p>By the evening, around 6 hours after I&#x27;d started, I had an incredibly usable web app. It was clear enough that I could continue to iterate on my own, occasionally asking chatGPT for assistance when I wanted to make a larger change. Over the next few days, I worked with some partners to fix up the design and hosted it on a server that wasn&#x27;t my dev computer.<p>About a week before we launched, I ran into a bug. Two queries ran very close together and the first user got the second users results. Oh no! I realized I&#x27;d need some sort of user session management on the server, but didn&#x27;t really know where to begin. I pasted some of the API functions to chatGPT and explained what happened and what I thought needed to be done. Within 15 minutes, I now had server-side session management. But now I was running into openAI rate limits! It took a little longer to get that all working, but within an hour or two, I now had a working queueing system.<p>I was then able to very quickly add little bits and pieces: a button to use speech recognition to submit your request instead of typing, the ability to share your playlist via SMS or notes, and an option to extend your playlist if you wanted more songs.<p>I feel like I&#x27;ve learned more in the past 3 weeks than I have over most of my technical career - I was certainly able to achieve success much more quickly which kept me motivated through the more difficult or confusing periods. The response today has been fantastic, and I&#x27;m really proud of what I created.