You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expect song artist title, song should be displayed like shazam app
Current Behavior
it crashes in listen.py step:
epardee@nhan7: /tmp/shazam-demo$ python listen.py -s 5
Listening....
Okey, enough
Took 204800 samples
Traceback (most recent call last):
File "listen.py", line 98, in <module>
matches.extend(find_matches(channel))
File "listen.py", line 68, in find_matches
hashes = analyzer.fingerprint(samples, Fs=Fs)
File "/private/tmp/shazam-demo/src/analyzer.py", line 36, in fingerprint
arr2D = 10 * np.log10(replaceZeroes(arr2D))
File "/private/tmp/shazam-demo/src/analyzer.py", line 84, in replaceZeroes
min_nonzero = np.min(data[np.nonzero(data)])
File "/usr/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 2618, in amin
initial=initial)
File "/usr/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity
Expected Behavior
Expect song artist title, song should be displayed like shazam app
Current Behavior
it crashes in listen.py step:
Steps to Reproduce
Context (Environment)
macOS 10.14
Python 2.7.15
node v11.6.0
The text was updated successfully, but these errors were encountered: