"Soliloquy is an utterance or discourse by a person who is talking to himself or herself or is disregardful of or oblivious to any hearers present (often used as a device in drama to disclose a character's innermost thoughts)."
January 1, 1970
https://en.wikiquote.org/wiki/Soliloquy