You are not logged in.

#1 2016-04-22 03:44:32

HappyClown
Member
Registered: 2015-08-15
Posts: 161

Shazam-like program for Linux

So, if you're anything like me, you listen to a lot of mixes and when that really awesome song comes on that you don't know the name of, you're too lazy to disconnect your headphones, pause the music run shazam, close the ads that pop up and identify the song. I've been thinking about writing a program (a Linux exclusive, this time) that pulls info from an audio stream, which could either be from a file or from the live audio from a youtube video, media player etc. and uses the algorithms similar apps use to identify these songs. This should be especially helpful because it doesn't require a microphone and it could be configured to run in the background and identify a song when a key binding is activated. I'm not going to bother developing this (open source, free) if no one's going to use it. What do you think of this?

Last edited by HappyClown (2016-04-22 05:44:06)

Offline

#2 2016-04-22 05:44:05

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Shazam-like program for Linux

@HappyClown,

I don't know why you have posted this in the Community Contributions section as there is nothing concrete for you to share as of now. If this is only meant to gauge people's interest in such a program, this is the wrong forum. I have moved it to GNU/Linux discussions for now.

Offline

#3 2016-04-22 05:46:05

HappyClown
Member
Registered: 2015-08-15
Posts: 161

Re: Shazam-like program for Linux

Are you sure that GNU/Linux is the appropriate forum? Also, I have a small amount of code, but it's VERY incomplete:

#include<pulse/simple.h>
#include<pulse/error.h>
#include<cstdio>

char buffer[44100 *60];

int record(){
int placez;
pa_simple *s;
pa_simple *r;
pa_sample_spec ss;
ss.format = PA_SAMPLE_S16NE;
ss.channels = 2;
ss.rate = 44100;
s = pa_simple_new(NULL,               // Use the default server.
                  "Fooapp",           // Our application's name.
                  PA_STREAM_RECORD,
                  NULL,               // Use the default device.
                  "Music",            // Description of our stream.
                  &ss,                // Our sample format.
                  NULL,               // Use default channel map
                  NULL,               // Use default buffering attributes.
                  NULL               // Ignore error code.
                  );
r = pa_simple_new(NULL,               // Use the default server.
                  "Fooapp",           // Our application's name.
                  PA_STREAM_PLAYBACK,
                  NULL,               // Use the default device.
                  "Music",            // Description of our stream.
                  &ss,                // Our sample format.
                  NULL,               // Use default channel map
                  NULL,               // Use default buffering attributes.
                  NULL               // Ignore error code.
                  );
printf("Reading\n");
pa_simple_read(s, buffer, 44100 *60, &placez);
printf("%s\n",pa_strerror(placez));
printf("Writing\n");
pa_simple_write(r, buffer, 44100 *60, &placez);
printf("%s\n",pa_strerror(placez));
}

int main(){
record();
//int a = 1;
//FILE* acid = fopen("das","w");
//while(1){
//fputc(buffer[a], acid);
//a++;
//}

}

Offline

#4 2016-04-22 05:53:07

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Shazam-like program for Linux

If you need community input for developing your code, I can move it to the programming forum. But unless you have something working to offer, I don't think it is suitable for community contributions.

Perhaps you can explain how the program is supposed to work. What features are implemented, what features are missing etc.

Offline

#5 2016-04-22 06:02:33

HappyClown
Member
Registered: 2015-08-15
Posts: 161

Re: Shazam-like program for Linux

Hmm, good point. I guess I don't need programming input, but I'd like to know if someone would use this thing.

The program listens to a song and comes up with the songs name. So far, it can listen and remember what it just heard, but it can't figure out the song name.

Offline

#6 2016-04-22 07:41:22

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Shazam-like program for Linux

Feed your thread title to a search engine and see other people asking about this -- giving you potential users and/or existing alternatives.

Offline

#7 2016-04-22 22:08:35

Steef435
Member
Registered: 2013-08-29
Posts: 577
Website

Re: Shazam-like program for Linux

This looks like it might be useful, if you feel like pursuing it: http://echoprint.me/

Offline

#8 2016-04-23 02:05:07

HappyClown
Member
Registered: 2015-08-15
Posts: 161

Re: Shazam-like program for Linux

That actually sounds very interesting, I'll look into it.

Offline

Board footer

Powered by FluxBB