basicly trying to follow the steps of a vid, everything is working great exapt that those lines of code:
with sr.Microphone() as source:
print('listening..')
voice = listener.listen(source)
command = listener.recognize_google(voice)
print(command)
it is giving me the output:
listening..
result2:
{ 'alternative': [{'confidence': 0.97219545, 'transcript': 'hello there'}],
'final': True}
hello there
Process finished with exit code 0
Im trying just to avoid this line:
result2:
{ 'alternative': [{'confidence': 0.97219545, 'transcript': 'hello there'}],
'final': True}
to have the result like this:
listening..
hello there
Process finished with exit code 0