Text this: Precision early universe cosmology from stochastic gravitational waves