We will be using deepspeech in this python code to generate the text from a voice. Deepspeech is an open-source api for Speech to text.
DeepSpeech is an open-source Speech-To-Text engine, using a model trained machine learning techniques based on Baidu’s Deep Speech research paper.
To install the required package sue the following commands
pip install deepspeech==0.9.3 (DeepSpeech only works with python version 3.7 and lower)