Charlie Puth says he has Taylor Swift to thank for giving him the courage to share an emotional song.