songzplayer banner

songzplayer

1 devlog
5h 21m 14s

Basically for playing songs, as the name says. I’ll specify all the features in the readme. It’s a cli btw.

This project uses AI

Used ChatGPT to clear up a few doubts.

Ashmit

Oohhh I forgot to devlog, sorry, sorry, sorry… Anyway this is my first devlog and so far I have got a lot of the aspects of this finished. Right now, the CLI can search for songs, ask you which one you want to play (there might be many tracks with the same name) and then download that track from YouTube via yt-dlp then store it in a folder, then when the song is played, the required one is loaded into a temporary file, song.mp3. While the songs are downloaded with a .webm file format, the songs are converted to mp3s as needed and then played. While a song is playing, you can use the keys W and S to control volume, E to pause or play and Q (for quit) to stop playing the current song and exit. While these keys are being pressed, they will actually log in as key presses in the command prompt window and show up in the prompt when you quit the player. I used the keyboard library to deactivate the keys only when the window is focused. So you can carry on with your daily tasks while the song is playing. I’m planning on adding queue functions next, so that you can play songs one by one, with like you know, similar tracks things… yeah. last.fm has a similar track API so I’m gonna use that and suggest a few tracks to the user and if they don’t respond a few seconds before the song ends, it just downloads the next song and gets ready to play it. So yeah, that’s my first devlog.
btw, is 85 MB too much to ask for? I’m sorry but I wasn’t able to upload my recording as is and I needed to change the format. oh nvm I used ffmpeg and 85 MB went to 1 MB.

0