Has anyone tried to use soundfile in AWS Lambda?
I have encountered several issues.
-
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
-
when I put soundfile in a lambda layer, it seems to have import issue:
No module named '_soundfilefromfrom _soundfile import ffi as _ffiin 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?
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.