How to add subtitles to sound wave file automatically

Hello everyone, I have a data table which has a lot of subtitles, I want to add them to each wav file automatically but I couldn’t through blueprint, is there any C++ function, an external script, or any system that helps me avoid having to do it all by hand.
Thanks