Answer:
A soliloquy is a device often used in drama when a character speaks to him- or herself, relating thoughts and feelings, thereby also sharing them with the audience
Hope this helps!