Reconstructing the wave speed and the source