The line "music has charms to soothe a savage beast" is spoken by Lorenzo in Act 5, Scene 1 of William Shakespeare's The Merchant of Venice.