If I'm the judge, I'd put him in a cell overnight just to show him what it's like. Let him out the next day and dare him to keep it up. Next time he does it, I'll put him in for a week. Think I won't? Try me.
If he shuts up, he loses face. If he doesn't, he goes back in. Either way, he loses.