libretto
The text of an opera, operetta, musical or similar stage work, including the words that are sung and any that are spoken.
Tell
an opera's words, sung and spoken
Best when
You mean the words written for a musical stage work as a whole, apart from its music.
Example
“Da Ponte wrote the libretto for three of Mozart's operas.”