Swedish researchers have developed a revolutionary silk-based textile that harvests electricity from body heat, potentially offering a future where wearable devices may no longer require batteries. The durable, washable fabric could transform how we power everything from fitness trackers to health sensors.https://www.notebookcheck.net/Silk-based-smart-textile-converts-body-heat-into-electricity.912232.0.html
Actually, there are devices made of two dissimilar metals where if one side is kept warm and the other side is kept cool they will generate electricity.
This is generally called the Seebeck coefficient and can be found in devices used in thermoelectric cooler/warmers.
However having a fabric that can exhibit the Seebeck effect could be pretty useful and as the article mentions, might someday enable 'user powered' devices.
The source says 6mV with 30C temperature difference. I don't know how to convert that into watts, but that doesn't seem like much.
Now in 10 years there will be AI in your T-shirt. And you'll be the human battery!