Rational approximations by listening