From 6b50e16c2c8855ecf75ddf935c314565bef92546 Mon Sep 17 00:00:00 2001 From: khanhkhanhlele Date: Sat, 8 Nov 2025 15:19:06 +0700 Subject: [PATCH] Fix typos in VoiceAssistant/Project_Basic_struct/speakListen.py --- VoiceAssistant/Project_Basic_struct/speakListen.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/VoiceAssistant/Project_Basic_struct/speakListen.py b/VoiceAssistant/Project_Basic_struct/speakListen.py index a28f67c2218..c6e5aa8dd4b 100644 --- a/VoiceAssistant/Project_Basic_struct/speakListen.py +++ b/VoiceAssistant/Project_Basic_struct/speakListen.py @@ -54,14 +54,14 @@ def hear(): [str]: [Speech of user as a string in English(en - IN)] """ r = sr.Recognizer() - """Reconizer is a class which has lot of functions related to Speech i/p and o/p. + """Recognizer is a class which has lot of functions related to Speech i/p and o/p. """ r.pause_threshold = ( 1 # a pause of more than 1 second will stop the microphone temporarily ) r.energy_threshold = 300 # python by default sets it to 300. It is the minimum input energy to be considered. r.dynamic_energy_threshold = ( - True # pyhton now can dynamically change the threshold energy + True # python now can dynamically change the threshold energy ) with sr.Microphone() as source: @@ -102,14 +102,14 @@ def long_hear(duration_time=60): [str]: [Speech of user as a string in English(en - IN)] """ r = sr.Recognizer() - """Reconizer is a class which has lot of functions related to Speech i/p and o/p. + """Recognizer is a class which has lot of functions related to Speech i/p and o/p. """ r.pause_threshold = ( 1 # a pause of more than 1 second will stop the microphone temporarily ) r.energy_threshold = 300 # python by default sets it to 300. It is the minimum input energy to be considered. r.dynamic_energy_threshold = ( - True # pyhton now can dynamically change the threshold energy + True # python now can dynamically change the threshold energy ) with sr.Microphone() as source: @@ -141,14 +141,14 @@ def short_hear(duration_time=5): [str]: [Speech of user as a string in English(en - IN)] """ r = sr.Recognizer() - """Reconizer is a class which has lot of functions related to Speech i/p and o/p. + """Recognizer is a class which has lot of functions related to Speech i/p and o/p. """ r.pause_threshold = ( 1 # a pause of more than 1 second will stop the microphone temporarily ) r.energy_threshold = 300 # python by default sets it to 300. It is the minimum input energy to be considered. r.dynamic_energy_threshold = ( - True # pyhton now can dynamically change the threshold energy + True # python now can dynamically change the threshold energy ) with sr.Microphone() as source: