When you talk to yourself, philosophically speaking:
You confirm your own existence (Descartes).
You relate to yourself as a self (Kierkegaard).
You engage in a dialectic seeking truth (Hegel).
You witness a stream of consciousness with no fixed "I" (Buddhism).
You hear multiple inner voices in dialogue (Nietzsche).