The authors find out the Bose realization of a generalized Heisenberg algebra, in which the bracket of the annihilation and creation operators is proportional to a polynomial function of the number operator. The eigenvalues of the corresponding oscillator are derived in a special case. They stress also the connection between non-canonical commutation relations and q-algebras.