The invention concerns a shock wave generator for an anti-hail cannon with a combustion chamber (3) for generating shock waves, whereby this combustion chamber (3) leads to an outlet (8) via an outlet opening (6) in order to guide shock waves to upper air layers so as to create a disturbance zone which prevents the formation of hail in these air layers. A silencer (2) is mounted between the outlet opening (6) and the outlet (8) containing at least two compartments (9,10) which are mutually connected via a central opening (11), whereby a first compartment (9) with an inlet opening (12) connects to said outlet opening (6) of the combustion chamber (3), while a second compartment (10) connects to said outlet (8) via an output opening (13).