A spectral-element method is developed to solve the scattering problem for time-harmonic sound waves due to an obstacle in an homogeneous compressible fluid. The method is based on a boundary perturbation technique coupled with an efficient spectral-element solver. Extensive numerical results are presented, in order to show the accuracy and stability of the method.