Everything is open-source, you can have a look yourself, and experiment!
https://github.com/iamayushanand/Concrete_Shazam/blob/main/M...Here, the training is not done on encrypted values: the songs are public, what is secret is which song(s) you like