Respuesta :
Soliloquy. The definition is exactly what is happening here; an act of speaking one's thoughts aloud when by oneself or regardless of any hearers, especially by a character in a play.
Hamlet is talking to himself out loud.
Hamlet is talking to himself out loud.