Answer:
Talking to oneself.
Step-by-step explanation:
The word soliloquy comes from the Latin: Solus means 'alone'; loqui means 'to speak'. In plays, this literary device is used for speeches where the characters talk to themselves, or to the audience rather than to the other characters, which is a way for the audience to know their thoughts. It's almost as 'thinking out loud', but the words are not directed to anyone in particular.