pythonaudiogracenote

How to recognize a music sample using Python and Gracenote?


I recently discovered the GNSDK (Gracenote SDK) that seems to provide examples in several programming languages to recognize music samples by fingerprinting them, and then to request their audio database to get the corresponding artist and song title.

But the documentation is horrible.

How can I, using Python and the GNSDK, perform a recognition of an audio sample file? There isn't any examples or tutorials in the provided docs.

Edit: I really want to use the GNSDK with Python. Don't post anything unrelated, you'll waste your time.


Solution

  • I ended up using ACRCloud which works very well.

    Python example:

    from acrcloud.recognizer import ACRCloudRecognizer
    
    config = {
        'host': 'eu-west-1.api.acrcloud.com',
        'access_key': 'access key',
        'access_secret': 'secret key',
        'debug': True,
        'timeout': 10
    }
    
    acrcloud = ACRCloudRecognizer(config)
    
    print(acrcloud.recognize_by_file('sample of a track.wav', 0))
    

    https://github.com/acrcloud/acrcloud_sdk_python