Just to quickly add this information here as well:
MusicXML are just the notes. To convert it to WAV, you'll need to actually "play" it.
As you need a font for displaying text, you need a way to make these notes play a sound. There are other ways, but what often is referred to as soundfonts had the best quality to me so far. As fonts contain a representation of each character, soundfonts contain a recording of each instrument played in a variation (normal, stacato, etc). As instruments and their players differ in sound, there also is quite a variety of soundfonts. If you want very good quality, I guess you'll have to buy a package like Logic Pro X by Apple, which currently contains a library of Over 2700 instrument and effect Patches
. Nevertheless, there are also quite some good free alternatives available. Here are some I found on a quick research:
When you got hands on them, you'll just need a notation program which supports importing them, like the free MuseScore: https://musescore.org/en/handbook-sound-and-playback/soundfonts
But MuseScore seems to be a manual work. Maybe you can automize it, or you'd have to take a look for another program/library.