ESP32, ESPHOME and MediaPlayer mostly not playing

Until today very annoying, tts and online radio works only after a esp32 reset

Can you please let me know the GPIOs that you have used to connect esp32-wrover? I am trying to connect this with UDA1334A to use it as 3.5mm audio out but I am not getting it to work.

Hi,
I have one just connected on this way:

WROVER - UDA1334A
pin 25 - DIN
pin 26 - WSEL
pin 27 - BCLK

And configure in the squeezelite interface:

Remeber to reboot the device

Hope it helps.

Thanks for sharing the clear picture and GPIO connection details. I have figured out the hard way and made it but it is same as what you have posted.
I was getting distortions in the output.
After making the changes as shown below the sound is very much clear without any pops or noises. I am not sure it is same at your end or any other better options are there. Finally it is working great beyond my expectations and can enjoy the FLAC formatted songs.

I would like to share an update regarding the media player using I2S. I have created I2S player using esp32 devkit v1 (you can find the pin out details from here. along with UDA1334A DAC successfully. I have used the same pin out as shared by Domaray and referred to this thread with respect to esp32 devkit I2S yaml. It is working fine with the mentioned DAC.

Sharing my yaml for anyone interested to build with esp32devkit v1 and UDA1334A DAC.

esphome:
  name: esp32dvkitbamp
  friendly_name: esp32dvkitbamp

  platform: ESP32
  board: esp32dev

captive_portal:
web_server:
  port: 80

i2s_audio:
  - id: i2s_out
    i2s_lrclk_pin: GPIO26 #WSEL on 1334A
    i2s_bclk_pin: GPIO27 #BCLK on 1334A

media_player:
  - platform: i2s_audio
    name: ESPHome I2S Media Player
    dac_type: external
    i2s_audio_id: i2s_out
    i2s_dout_pin: GPIO25 #DIN on 1334A
    mode: stereo  

sensor:
  - platform: wifi_signal
    name: "WiFi Signal"
    update_interval: 5min

  - platform: uptime
    name: "Uptime"
    update_interval: 5min

  - platform: internal_temperature
    name: "Internal Temperature"    

text_sensor:
  - platform: wifi_info
    ip_address:
      name: IP Address
    ssid:
      name: SSID
    mac_address:
      name: MAC