Concept that I want to achieve:
A web application that listens to user's speech at the background and do what the user wants.
What I have:
A Python - Django application with Speech Recognition enabled with the following two files.
- speechrecognition.py (This is where speech recognition related logic is)
- index.html
Note: speechrecognition.py goes on a loop repeatedly listening to user's input.
What I tried:
I tried calling speechrecognition.py class before rendering index.html in views.py
from SpeechRegApp.speechrecognition import SpeechRecognition
def index(request):
SpeechRecognition()
return render(request, "index.html", {})
Problem that I'm facing:
Since I'm repeatedly listening to user's input in speechrecognition.py, index.html doesn't get rendered.