extemporize
definition
to compose or perform something such as music or a speech without preparation
example
During the talent show, she had to extemporize a song when her music stopped playing.
synonyms
improvisead-libwing it
word origin — from Latin 'extemporarius', meaning 'immediate' or 'done on the spur of the moment'