Play mp3 through kodi


I am new to home assistant , looking for play a mp3 file lying on my Synology NAS ( running Plex server) through Koi running on a different device , basically is it possible to direct kodi to play the content from Plex server through the Home assistant configuration.yaml , I did search on this , but could not find anyone doing this automation.