Linearization of thermoacoustic loudspeakers by adaptive predistortion