📅  最后修改于: 2022-03-11 14:45:24.780000             🧑  作者: Mango
This is the peice of code which had AttributeError: __enter__
with sr.Microphone as source:
It got resolved by adding '()' as below:
with sr.Microphone() as source: