📅  最后修改于: 2022-03-11 14:47:57.893000             🧑  作者: Mango
import speech_recognition as sr
for index, name in enumerate(sr.Microphone.list_microphone_names()):
print("Microphone with name \"{1}\" found for `Microphone(device_index={0})`".format(index, name))