Skip to content

[FEATURE] Add ShazamIO for audio sources that do not have direct integration through either API or D-Bus #83

@kholbrook1303

Description

@kholbrook1303

ShazamIO is a library that can take audio and attempt to recognize the track from Shazam.

Currently we are already capturing the raw PCM audio and sending it to libprojectM. We can take the existing AudioCaptureImpl_SDL and add a rolling 10 second audio buffer so that when a user triggers a lookup, the last 10 seconds of audio will be sent for recognition.

Only downfall I can see with this is that if the track just transitioned and say your only 5 seconds into the next song. The audio capture will be polluted with 2 songs. The user could get varying results on lookup. The only other option would be for the user to trigger a capture, which would trigger a lookup after capturing the 10 second clip and performing the request. This would cause a delay which I personally dont like. Maybe in the future expand this to be a user defined behavior.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions