The main difference between a monologue and a soliloquy is:
In a soliloquy, the speaker assumes they cannot be heard.
A monologue is typically directed at other characters and can be heard by them, while a soliloquy is a speech given by a character alone on stage, expressing their thoughts and feelings to the audience without the assumption that anyone else is listening.