In a chat edit, put it directly after the silly line, then follow it with a sad violin for a mock-dramatic apology, or let a cartoon slip finish the gag when the joke keeps going wrong.
About this sound
This is a short Spanish voice clip, lasting just over a second, in which a speaker says “perdón por la tontería,” meaning sorry for the silliness. It sounds sheepish and good-natured, like a quick apology after saying something daft, and it works because the embarrassment feels light rather than serious.