Inference pipeline AttributeError: 'NoneType' object has no attribute 'n_samples'

Can anyone help me figure the problem I’m facing here? I tried to pass raw audio stream as numpy array to inference pipeline but got AttributeError: ‘NoneType’ object has no attribute ‘n_samples’ as shown on the pastebin below
error message pastebin
and this is code snippet in question