How about a loud tape recording of a 12 ga being cocked? Or is that still too dangerous.
Let me repeat so you understand. Get some training from a qualified firearms school. Spend the money so you know exactly what has to happen when things go bad.
A good school will not only teach you how to shoot but when not to according to the legalities in your locale.