soliloquy has definitions from the fields of linguistics,writing
1
[ noun ] speech you make to yourself

Synonyms

monologue

Related terms

speech monologuize

2
[ noun ] (linguistics,writing) a (usually long) dramatic speech intended to give the illusion of unspoken reflections

Related terms

actor's_line monologuize

*