Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_fingerprint_by_filebuffer exception 2010 #40

Open
davidecavallari opened this issue Dec 26, 2023 · 3 comments
Open

create_fingerprint_by_filebuffer exception 2010 #40

davidecavallari opened this issue Dec 26, 2023 · 3 comments

Comments

@davidecavallari
Copy link

I'm testing the audio recognizer. When testing in my local flask development webserver, everything works find. But when testing the web app deployed to Azure, I get this result:

{'status': {'msg': 'Unknow Error:<built-in function create_fingerprint_by_filebuffer> returned a result with an exception set', 'code': 2010}}

This is the code I'm using, where buf is the audio buffer I'm sending:

    configuration = {
        'host': config.acrcloud_host,  
        'access_key': config.acrcloud_access_key,
        'access_secret': config.acrcloud_access_secret,""
        'timeout': 10  # Tempo massimo di attesa per la risposta
    }

    recognizer = ACRCloudRecognizer(configuration)
    result = recognizer.recognize_by_filebuffer(buf, 0)
    result_dict = json.loads(result)
@owlwang
Copy link
Contributor

owlwang commented Dec 26, 2023

Hi, davidecavallari

Please send an email to our support team at [email protected] using the email address you used to register on the console.

Include details about your operating system, Python version, etc. so we can better assist you.

@matthewd-canva
Copy link

Workaround: use API directly with snippets of audio (instead of fingerprinting): https://docs.acrcloud.com/reference/identification-api

@fullfine909
Copy link

same here, what a shame that after 5 months there isn't at least an update on documentation, but repo is updated 4 days ago.. c'mon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants