Let H be a Hopf algebra and HYD the Yetter- Drinfeld category over H. First, the enveloping algebra of generalized H-Hom-Lie algebra L, i.e., Hom-Lie algebra L H in the category HYD, is constructed. Secondly, it is obtained that U(L) = T( L)/L where I is the Hom-ideal of T(L) generated by {ll'-l_((-1))·l'l_0-[l,l']|l,l'∈L}, and u: L,T(L)/I is the canonical map. Finally, as the applications of the result, the enveloping algebras of generalized H-Lie algebras, i.e., the Lie algebras in the category MyDn and the Hom-Lie algebras in the category of left H-comodules are presented, respectively.