This article presents how to design and implement smart door locks in smart homes based on AIoT approach. The construction of IoT architecture allows remote monitoring and control of door locks via web server. Besides, the use of suitable Artificial Intelligence (AI) algorithms in the Modular Audio Recognition Framework (MARF) library to authenticate speakers and keywords will make the door opening/closing automatically. Evaluation results through experimental models show that the system is easy to implement, operates with high accuracy (82.5%) and can be widely deployed in practice.