A Michigan felon tried to sing his way out of trouble at his sentencing on a weapons charge, offering a musical apology inspired by singer Adele’s Hello.

Brian Earl Taylor, 21, adapted the hit ballad to express his contrition to the judge at Washtenaw County Trial Court, reports the Ann Arbor News.

“Hello there, your honour,” Taylor sang in the 10 March exchange, which was recorded on courtroom video.

Brian Earl Taylor

Taylor was sentenced to up to 17 years in prison

He continued: “I want to say I’m sorry for the things I’ve done and I’ll try and be stronger in this life I chose, but I want you to know – that door, I closed.

“And your honour I’m sorry, sorry, sorry, sorry.”

Reacting to Taylor’s soulful plea, Judge Darlene O’Brien said he was “obviously a talented young man”.

But she sentenced him to up to 17 years in prison for unlawful imprisonment and carrying a concealed weapon.