Click here to Skip to main content
15,890,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I'm totally new to programming, did some Python in high school but that class was kinda sh*tty, so bear with me if I have no idea about anything and use wrong terminology.
The basic idea is: I often have pieces of song lyrics stuck in my head, and don't know which song they're from. They're too short/generic to be able to successfully google which song they're from, I only know I recently listened to that song. I want to write a program that will take songs from my Spotify playlists, google them in combination with the lyrics snippet I had in my head, and tell me if there is a useable result that actually contains all search terms.
Now, I am very well aware this is super complex for a beginner and I'll have to figure out a lot of detail on how to actually do this on the way. But I have a lot of time on my hands and know that I will learn a lot throughout this. For now, I just need to know where to start.
For example, when we coded with python, we would only stay "within" the program and never asked it to access the internet. I'm vaguely familiar with the term API and that it might help me in this, but I don't really know what how that all works, so I'm fully lost in the sauce.

I just need to know where to start, once I have the framework, a programming language, some words I can google and stuff, I'll probably be able to google my way around. So if anyone has any experience with this, what's some terms I could google to get into this, would you recommend a certain language, anything else important to know?


TLDR; I'm a bloody beginner and want a program to google songs from my Spotify for me. Where do I start? What language and other tools can/should I use to somehow make this work?

Thanks in advance.

What I have tried:

I've tried nothing so far, since I don't know how to start. How do I tell a program to access the internet? And can I even access private playlists on my account?
Posted
Updated 19-Mar-20 7:01am
Comments
phil.o 19-Mar-20 12:19pm    
If you cannot google it yourself because it is too short/generic, there is a great chance that a computer program cannot google it either.
I guess you can imagine to use some sort of speech recognition on tracks, but this is way too advanced for a beginner. I would advise to learn the language first with much simpler projects. If I may make an analogy: when you never have done rock-climbing, you do not start on the Everest right away.
Member 14777407 19-Mar-20 12:30pm    
I also feel it's a huge project, but the program would have one advantage over me: It can make a few hundred google searches, combining song titles and artist from my playlists with the lyric snippet. My problem is, I can't google the lyric in combination with every song I've recently listened to, but a program could. So that's where I'm coming from, and why I don't think I would need speech recognition.

1 solution

Start with the Spotify API:
Web API | Spotify for Developers[^]

They provide read-made libraries for a large number of languages/frameworks, so the choice is up to you:
Web API Libraries | Spotify for Developers[^]


There are quite a few APIs you can use to search for song lyrics - eg:
Results: Lyrics APIs | ProgrammableWeb[^]

Some of these may be free, and others will cost money. You'll need to pick one that does what you want, is within your budget, and is easy to call from your chosen language.

REST[^] APIs are usually the easiest to call, but the details of how you call the API will depend on your chosen language.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900