Giter Site home page Giter Site logo

Change Source of Raw Input about dejavu HOT 6 CLOSED

worldveil avatar worldveil commented on July 22, 2024
Change Source of Raw Input

from dejavu.

Comments (6)

worldveil avatar worldveil commented on July 22, 2024

This seems cool. What would be a use case?

If you can talk a little more about a use case and your proposed addition to the dejavu api that wouldn't break backwards compatibility, I'd certainly accept a PR.

from dejavu.

jpramirez avatar jpramirez commented on July 22, 2024

A typical usage will be a core developer for example that is using pyradio or developing his own detection system, sometimes and in this days, we rarely have a "real radio" connected or even listen to mp3. right? so we base almost anything we do online , radios, tv etc.
For that reasong this feature will be cool.
The user present a new source, a stream that can be converted with gstreamer, ffmpeg or whatever to raw format mp3 , etc and either create a virtual output device or output to a file (for recording and decoding later).
So basically after that we create a new sink in dejavu or read from a stream, the same way that you did with the microphone.

So, at any given time the user put an url, gst or ffmpeg(avconv) reads it and pass it along to dejavu to create the matching.
This will not affect the fingerprinting, just the Recogn part.

Sorry if i make it more complicated ( many hours without sleep by now :) )

from dejavu.

worldveil avatar worldveil commented on July 22, 2024

OK, that sounds great and I would gladly accept your PR. What would you like the API to look like as an example?

from dejavu.

Wessie avatar Wessie commented on July 22, 2024

The API can probably be extended with a fingerprint_stream of sorts, that accepts something with a read method.

The bigger problem is that most of the fingerprinting code currently assumes it has the whole audio track at hands. This might require quite a bit of reworking of the fingerprinting code.

from dejavu.

jpramirez avatar jpramirez commented on July 22, 2024

Thanks !! Although my initial plan is not fingerprint the streaming music, just recognizing it. So im assuming that is the method read inside recog can loop between T (T being the time we want to listen to) just in the way that microphone is doing it.

I will write a small proposal with source code, at the beggining with a little delay, for example:

connect to Stream, download T seconds , save file , call the recognize function.

from dejavu.

worldveil avatar worldveil commented on July 22, 2024

Great. When you get a proposal together, please open a PR.

from dejavu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.