Sound cannot travel through a vacuum. Sound is a mechanical wave that requires a medium (such as air, water, or solid material) to propagate. In a vacuum, there is no medium for sound waves to travel through, so they cannot propagate. Therefore, the speed of sound in a vacuum is effectively zero.
As for the speed of sound traveling through any sort of electrical device, it depends on the specific medium through which the sound is being transmitted. In most electrical devices, sound is transmitted as an electrical signal rather than as mechanical waves. The speed of electrical signals, such as in copper wires or fiber-optic cables, is close to the speed of light in the given medium.
In a vacuum, the speed of light is approximately 299,792 kilometers per second (about 186,282 miles per second). In other transmission mediums, such as optical fibers, the speed of light can be slightly slower due to the refractive index of the material. In any case, the speed of sound as an electrical signal through most devices will be very close to the speed of light in the respective medium, but it won't be exactly the same, as it depends on the material properties.