The main difference between a monologue and a soliloquy is:
In a soliloquy, the speaker assumes they cannot be heard.
A soliloquy is a type of monologue where a character speaks their thoughts aloud, typically alone on stage, with the assumption that no one else can hear them. In contrast, a monologue can be directed to other characters or an audience and does not carry the same assumption of privacy.