Text this: A new algorithm to estimate attenuation using frequency shift methods