Spaces:
Sleeping
Sleeping
shamimjony1000
commited on
Commit
•
cf292fb
1
Parent(s):
132f875
Update voice_handler.py
Browse files- voice_handler.py +1 -1
voice_handler.py
CHANGED
@@ -8,7 +8,7 @@ class VoiceHandler:
|
|
8 |
self.recognizer.energy_threshold = 4000
|
9 |
self.recognizer.dynamic_energy_threshold = True
|
10 |
self.recognizer.pause_threshold = 0.8
|
11 |
-
self.permission_granted =
|
12 |
|
13 |
def check_microphone_access(self) -> bool:
|
14 |
"""Check if microphone is accessible"""
|
|
|
8 |
self.recognizer.energy_threshold = 4000
|
9 |
self.recognizer.dynamic_energy_threshold = True
|
10 |
self.recognizer.pause_threshold = 0.8
|
11 |
+
self.permission_granted = False
|
12 |
|
13 |
def check_microphone_access(self) -> bool:
|
14 |
"""Check if microphone is accessible"""
|