Update Jarvis2.py
This commit is contained in:
parent
dec66fcc8b
commit
98b2ffb06b
@ -78,6 +78,7 @@ def take_command():
|
|||||||
with sr.Microphone() as source:
|
with sr.Microphone() as source:
|
||||||
print("Listening....")
|
print("Listening....")
|
||||||
r.pause_threshold = 0.5
|
r.pause_threshold = 0.5
|
||||||
|
r.energy_threshold = int(config['DEFAULT']['energy_threshold'])
|
||||||
audio = r.listen(source)
|
audio = r.listen(source)
|
||||||
|
|
||||||
print("Recognizing....")
|
print("Recognizing....")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user