I want to buy an audio interface and I heard that the line 6 ux2 is very good and can give you high quality sound and recordings.
would you recommend it? opinions about the ux2?

I have one and I think its great. Its a bit annoying to set up because of line 6 trying to prevent piracy, but once you get beyond that, its great. You may have a problem with clipping, reduce the buffer rate if so and it will fix the issue.