Skip to content

Commit 6b50e16

Browse files
Fix typos in VoiceAssistant/Project_Basic_struct/speakListen.py
1 parent 53d2c53 commit 6b50e16

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

VoiceAssistant/Project_Basic_struct/speakListen.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ def hear():
5454
[str]: [Speech of user as a string in English(en - IN)]
5555
"""
5656
r = sr.Recognizer()
57-
"""Reconizer is a class which has lot of functions related to Speech i/p and o/p.
57+
"""Recognizer is a class which has lot of functions related to Speech i/p and o/p.
5858
"""
5959
r.pause_threshold = (
6060
1 # a pause of more than 1 second will stop the microphone temporarily
6161
)
6262
r.energy_threshold = 300 # python by default sets it to 300. It is the minimum input energy to be considered.
6363
r.dynamic_energy_threshold = (
64-
True # pyhton now can dynamically change the threshold energy
64+
True # python now can dynamically change the threshold energy
6565
)
6666

6767
with sr.Microphone() as source:
@@ -102,14 +102,14 @@ def long_hear(duration_time=60):
102102
[str]: [Speech of user as a string in English(en - IN)]
103103
"""
104104
r = sr.Recognizer()
105-
"""Reconizer is a class which has lot of functions related to Speech i/p and o/p.
105+
"""Recognizer is a class which has lot of functions related to Speech i/p and o/p.
106106
"""
107107
r.pause_threshold = (
108108
1 # a pause of more than 1 second will stop the microphone temporarily
109109
)
110110
r.energy_threshold = 300 # python by default sets it to 300. It is the minimum input energy to be considered.
111111
r.dynamic_energy_threshold = (
112-
True # pyhton now can dynamically change the threshold energy
112+
True # python now can dynamically change the threshold energy
113113
)
114114

115115
with sr.Microphone() as source:
@@ -141,14 +141,14 @@ def short_hear(duration_time=5):
141141
[str]: [Speech of user as a string in English(en - IN)]
142142
"""
143143
r = sr.Recognizer()
144-
"""Reconizer is a class which has lot of functions related to Speech i/p and o/p.
144+
"""Recognizer is a class which has lot of functions related to Speech i/p and o/p.
145145
"""
146146
r.pause_threshold = (
147147
1 # a pause of more than 1 second will stop the microphone temporarily
148148
)
149149
r.energy_threshold = 300 # python by default sets it to 300. It is the minimum input energy to be considered.
150150
r.dynamic_energy_threshold = (
151-
True # pyhton now can dynamically change the threshold energy
151+
True # python now can dynamically change the threshold energy
152152
)
153153

154154
with sr.Microphone() as source:

0 commit comments

Comments
 (0)