Installing carpet for the first time....?

What's the better route? Sound deadening material or the spray can bed liner stuff?