We obtain a sufficient condition for a substitution ${mathbb Z}$-action to have pure singular spectrum in terms of the top Lyapunov exponent of the spectral cocycle introduced in arXiv:1802.04783 by the authors. It is applied to a family of examples, including those associated with self-similar interval exchange transformations.