The teacher's words were like a thunderclap that woke everyone up.
Tips
history
From Yuan Mei's Qing-dynasty 《随园诗话补遗》, volume 1: 此数言,振聋发聩 — praising a few words as thunderous enough to rouse the deaf. 聩 specifically means congenital deafness, making the image stronger: even those who have never heard a sound would be stirred.
usage
Only for words, writing, or speech — not for noises. Describes content so powerful it shakes complacent or ignorant listeners awake. Avoid using for merely loud sound; for that use 震耳欲聋.