Ultrasonic waves are generated using specialized transducers that can convert electrical signals into high-frequency sound waves. These transducers often use piezoelectric materials that change shape when an electric field is applied, creating pressure waves in the surrounding medium.