Sound requires a medium to propagate (example: air, water, solid) hence the energy produced in a speaker produces movement in the mass of the medium and therefore produces sound.Light having dual nature does not require a medium to travel in (it travels even in space which is a vacuum and no medium is present there) so it does not produce a sonic boom.