IANAL, but that’s about as straightforward of a copyright violation as it gets. Doesn’t matter if it’s AI or not.
But as far as generative AI? That’s a way more interesting question. If I train a GAN to create original new songs, is it “sampling” songs in its training data, or is it “learning” from them and then transforming that information into something new? I would say the latter, but I’m sure the RIAA disagrees.