The development of a new fitting tool to handle with high-resolution acoustic spectra of the Sun is of central interest to allow for measuring the asteroseismic properties of solar oscillations in a robust and reliable way. A Bayesian approach implemented in the recently released code DIAMONDS and an extension of this code applied to the case of Sun-as-a-star datasets from both GOLF and VIRGO instruments are presented.