Possibly you could change "talked" to "spoke", but generally the sentence you have written is appropriate at any level of formality. There is no reason to look for a more formal way. The sentence needs a full stop.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.