The voice interactive music box is an interactive music device based on speech recognition and music generation technology. Its principles and technologies involve aspects such as speech recognition, music synthesis and interactive design. Using the speech recognition module to control whether the music box plays or not is a specific application case of speech recognition. It provides users with a creative, interactive and personalized music experience.