Python SpeechRecognition word by word? continuous output?
问题 I was wondering whether there is a way to output words as soon as possible. For example if I say "hello world" it should output: hello world Currently I'm using this code import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: while True: r.pause_threshold=0.1 ##i tried playing with these 3 but no luck r.phrase_threshold=0.5 r.non_speaking_duration=0.1 audio = r.listen(source) try: text = r.recognize_google(audio) print(text) except Exception as e: print("-") What