|
|
@ -19,9 +19,11 @@ class voiceInput(object): |
|
|
|
|
|
|
|
|
|
|
|
except sr.RequestError as err: |
|
|
|
except sr.RequestError as err: |
|
|
|
print("Unable to request results: {0}".format(err)) |
|
|
|
print("Unable to request results: {0}".format(err)) |
|
|
|
|
|
|
|
return self.voiceToText(deviceIndex) |
|
|
|
|
|
|
|
|
|
|
|
except sr.UnknownValueError as err: |
|
|
|
except sr.UnknownValueError: |
|
|
|
print("Unknown Error: {0}".format(err)) |
|
|
|
print("????") |
|
|
|
|
|
|
|
return self.voiceToText(deviceIndex) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def setMuted( self, setm: bool=True ): |
|
|
|
def setMuted( self, setm: bool=True ): |
|
|
|