Allow user-configurable silence/noise threshold

Keep sensible defaults to be backwards-compatible.