Text this: Unified study of viscoelasticity and sound damping in hard and soft amorphous solids