The utility model discloses a
loudspeaker and an electronic device, relates to
loudspeaker structure technical field, the
loudspeaker comprises a housing, and a
magnetic circuit system and a vibration
system connected with the housing, the
magnetic circuit system has a magnetic gap, the vibration system comprises a first diaphragm, a
voice coil, a middle diaphragm, a second diaphragm and a rigid connecting piece, the
voice coil is connected with the first vibrating diaphragm, and at least part of the
voice coil is arranged in the magnetic gap; the middle diaphragm is positioned on the second side of the first vibrating diaphragm; the inner
peripheral side of the second vibrating diaphragm is connected with the voice coil; the rigid connecting piece is connected between the second vibrating diaphragm and the voice coil; wherein the shell comprises a first shell and a second shell; the first vibrating diaphragm and the middle diaphragm are fixed to the first shell, the
magnetic circuit system is fixed to the second shell, the second vibrating diaphragm is clamped between the first shell and the second shell, and the
second sound outlet hole is formed in the first shell. The utility model aims to provide the loudspeaker shell structure with small size and high performance.