Metformin inhibits human androgen production by regulating steroidogenic enzymes HSD3B2 and CYP17A1 and complex I activity of the respiratory chain.