Logically speaking something must of melted to cause the smell. Judging by the smell and what speakers could be made of it could be rubber. I believe it's fine to keep using your speakers, but if the same thing keeps happening, I think you should get some expert advice and get them repaired if they are expensive
.