In this paper we give some sufficient conditions, which do ensure the existence and uniqueness of a compact almost automorphic solution to some hyperbolic differential equations. As an illustration, we study the existence and uniqueness of almost automorphic solutions to a one-dimensional heat equation with small delays.