How do I connect a speaker and mic to ESPHome

Greetings! I have an old rotary phone I took the mouthpiece off of and am trying to wire it to an ESP32 I bought recently, I’ve got the amp wired correctly, I just don’t know how to make ESPHome recognize it as a mic and speaker, what do I put in the yaml file?

Yeah I saw that but I tried to put the microphone into yaml and got an error

INFO ESPHome 2024.5.2
INFO Reading configuration /config/esphome/test.yaml...
Failed config

microphone.i2s_audio: [source /config/esphome/test.yaml:33]
  
  Component microphone.i2s_audio requires component i2s_audio.
  platform: i2s_audio
  id: adc_mic
  adc_type: internal
  adc_pin: GPIO15

After some further research I found out I need to define the lrclk and bclk first, but idk what those are

Pretty sure that is self explanatory.

I just dont know what to put for the pin, the lrclk pin