Text this: A state space modeling approach to real-time phase estimation