Closed wesky93 closed 6 years ago
oh and AWS lambda OS is
The underlying AWS Lambda execution environment is based on the following:
Public Amazon Linux AMI version (AMI name: amzn-ami-hvm-2016.03.3.x86_64-gp2):
For information about using an AMI, see Amazon Machine Images (AMI) in the Amazon EC2 User Guide for Linux Instances.
Linux kernel version – 4.4.35-33.55.amzn1.x86_64
check this
Where did you compile your dependencies?
hey.Trying to use fastdtw with librosa but getting the error below.Kindly assist import librosa from numpy.linalg import norm from fastdtw import fastdtw
y1, sr1 = librosa.load('coolBack.wav') y2, sr2 = librosa.load('nelly.wav') mfcc1 = librosa.feature.mfcc(y1,sr1) #Computing MFCC value mfcc2 = librosa.feature.mfcc(y2, sr2) #Computing MFCC value dist, cost, acc_cost, path = fastdtw(mfcc1.T, mfcc2.T, dist=lambda x, y: norm(x - y, ord=1)) print('Normalized distance between the two sounds:', dist) #Comparison of the two using DTW
ValueError Traceback (most recent call last)
@Apathyman oh. I solved this problem by compiling in the same environment.
I have two code. one is use default dist, another is use Euclidean func.. I test two code in my MacBook. and it work! but in AWS lambda it doesn't work.. but I don't know why.. because Euclidean func is work but default doesn't work.. this is AWS lambda error..
but same code In my Mackbook.. it work!