TypeError: __init__() takes 2 positional arguments but 6 were given

I am trying to test speech to text component by following link “How to build a voice assistant with open source Rasa and Mozilla tools ” but facing issues in running deepspeech_test_prdiction script.

I am guessing your trying to use one of the later releases of deepspeech. You have to go look at the constructor on what all needs to be passed in the deepspeech documentation. I am guessing its 0.6.1 since its asking for 2 arguments:

ds = Model(model_path, beam_width)

I have the same problem. Any updates on this?

Use pip3 install deepspeech==0.5.1. Newer versions of deepspeech are not compatible.