The sparks you hear are electrons flowing away in a sudden discharge of static electricity. The zap you felt from the doorknob is discharged static electricity, also called an electric shock. 

13