When the only option to decline is "don't use our service" and/or "delete everything you've uploaded before AI even existed", then there's no consent and it shouldn't be legal. Especially when thousands of artists who uploaded have died before AI existed.
Google says artists who upload music to YouTube have already agreed to let the company train AI on their content, according to a new lawsuit filing.