Hey i need a hand this is my first post on here so i don't know how to do this but i would like to find out how to fix my issue i am new to coding
def get_audio():
with sr.Microphone() as source:
audio = listener.listen(source)
said =''
try:
said = r.recognize_google(audio)
print(said)
except Exception as e:
print('Exception' + str(e))
Wake = 'hey friday'
while True:
text = get_audio()
if text.count(Wake) < 0:
talk('I am ready sir')