We describe a portable system for mammographic x-ray spectroscopy, based on a 2 X 2 X 1 mm3 cadmium telluride (CdTe) solid state detector, that is greatly improved over a similar system based on a 3 X 3 X 2 mm3 cadmium zinc telluride (CZT) solid state detector evaluated in an earlier work. The CdTe system utilized new pinhole collimators and an alignment device that facilitated measurement of mammographic x-ray spectra. Mammographic x-ray spectra acquired by each system were comparable. Half value layer measurements obtained using an ion chamber agreed closely with those derived from the x-ray spectra measured by either detector. The faster electronics and other features of the CdTe detector allowed its use with a larger pinhole collimator than could be used with the CZT detector. Additionally, the improved pinhole collimator and alignment features of the apparatus permitted much more rapid setup for acquisition of x-ray spectra than was possible on the system described in the earlier work. These improvements in detector technology, collimation and ease of alignment, as well as low cost, make this apparatus attractive as a tool for both laboratory research and advanced mammography quality control.