A theory for the spontaneous emission (SE) of terahertz radiation for a Bloch electron traversing a single energy miniband of a superlattice (SL) in a cavity, while undergoing elastic scattering is presented. The Bloch electron is accelerated under the influence of a superimposed external constant electric field and an internal inhomogeneous electric field, while radiating into a microcavity. The analysis of the SE accounts for both the spectral structure of nonharmonic miniband components and the Bloch oscillation degradation effects arising from elastic scattering due to SL interface roughness. The interface roughness effects are decomposed into contributions arising from independent planar and cross-correlated neighboring planar interfaces; parametric numerical estimates show that the cross-correlated contribution to the SE relaxation rate is relatively small, representing less than roughly 10% of the total relaxation rate. It is shown that the degradation effects from SL interface roughness can be more than compensated for by the enhancements derived from microcavity-based tuning of the emission frequency to the cavity density of states peak. The theoretical approach developed herein has general applicability beyond its use for elastic scattering due to interface roughness. As well, the results obtained in this analysis can be useful in the development of SL-based Bloch-oscillator terahertz devices. (c) 2014 AIP Publishing LLC.