The difference lies not in the question as to who is talking, but who is listening? Monologues are intended for an audience, regardless of who the audience may be, whereas soliloquies are intended for oneself, which means the person is basically talking to them-self.