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

Has anyone tried to use soundfile in AWS Lambda? #313

Open
Jun711 opened this issue Sep 14, 2021 · 1 comment
Open

Has anyone tried to use soundfile in AWS Lambda? #313

Jun711 opened this issue Sep 14, 2021 · 1 comment

Comments

@Jun711
Copy link

Jun711 commented Sep 14, 2021

I have encountered several issues.

  1. raise OSError('sndfile library not found')
    I followed this arrticle and included libsndfile library in a lambda layer but it seems to throw the same error
    https://gianlucazuccarelli.medium.com/librosa-and-aws-lambda-20e48f23b57e

  2. when I put soundfile in a lambda layer, it seems to have import issue: No module named '_soundfile
    from from _soundfile import ffi as _ffi in soundfile.py

If anyone knows how to set up in AWS lambda or using another AWS service, could you please teach me how to do it?

@panosl
Copy link
Contributor

panosl commented Oct 4, 2021

We use it at work, I had created a docker image, that compiled libsndfile.so and included it in the lambda layer along with my actual project code, and had the python layer load it from there.

A bit hackish, but works. I can check for more notes, when I get back to the office in a couple of days.

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

2 participants