What is a soliloquy in a drama?

A)a speech by a character who is the only one talking and addressing other characters

B) a speech by a character who is alone onstage and thinking aloud

C)a speech by a character who foretells the events that are to come in the play

D)a speech by a character that is filled with puns and witty comments aimed at another character