This application provides a speaker module and an electronic device, to improve a
sound quality experience of the speaker module. The speaker module includes a first housing, a second housing, an electroacoustic
transducer, sound-absorbing particles, a fixing ring, and a breathable isolating member. The second housing is mounted in the first housing, and is enclosed with the first housing to form a sound cavity. An avoidance hole is provided on the second housing, and the avoidance hole is in communication with the sound cavity and an outer side of the second housing. The electroacoustic
transducer is mounted in the sound cavity. The electroacoustic
transducer includes a
lower pole piece and a sound membrane. The
lower pole piece runs through the avoidance hole, and is spaced apart from a hole wall of the avoidance hole. The sound membrane is spaced apart from the
lower pole piece, and divides the sound cavity into a front sound cavity and a rear sound cavity. The sound-absorbing particles are filled in the rear sound cavity. The fixing ring is mounted between the second housing and the lower
pole piece, and is arranged surrounding an edge of the lower
pole piece. The breathable isolating member is fixedly connected to an upper surface of the fixing ring, and is located between the hole wall of the avoidance hole and the lower
pole piece. The breathable isolating member is arranged surrounding the electroacoustic transducer, and is configured to isolate the sound-absorbing particles and the electroacoustic transducer.