In order to get audio output on my CYD I had to add the following lines to the setup function in main.cpp:
#ifdef AUDIO_ENABLE_PIN
// Enable audio (if required)
pinMode(AUDIO_ENABLE_PIN, OUTPUT);
Serial.printf("Enabling audio by setting Pin %d to %d", AUDIO_ENABLE_PIN, AUDIO_ENABLE_VAL);
digitalWrite(AUDIO_ENABLE_PIN, AUDIO_ENABLE_VAL);
#endif
Then I added this to the build_flags for my CYD:
-DAUDIO_ENABLE_PIN=GPIO_NUM_4
-DAUDIO_ENABLE_VAL=LOW
Hopefully this helps someone out 😁