What is the meaning of Soliloquy?

The act of a character speaking to themselves so as to reveal their thoughts to the audience.

A speech or written discourse in this form.

To issue a soliloquy.

Source: wiktionary.org