Possible to use esp32 as a microphone output?

Hello!

Im trying to find information on this put I can't find anything.

I want to use an esp to act as a microphone input.
-Esp plays the audio to two wires connected where a typical small microphone usually sits.

Imagine a microphone connected to a PCB with two leads, you remove the microphone and hookup the esp to the PCB in place of the microphone.

Is it possible to make the esp act as a microphone?

Hi! Welcome to the Forum.

Nope. The ESP is a microcontroller. It can not "hear" the sound unless you use a mic module or buy an ESP32 based board with mic included.

Sure. Get to know the characteristics of the real microphone and then make the esp and some circuitry produce the same signal levels.

I need sound output to the microphone, not its reception

So you want ESP32 to act as media player. Something like this? --> https://www.hackster.io/electronicsworkshop111/esp-32-based-audio-player-6a6bee


need to connect esp32 instead of this microphone

A simple answer. NO.

A more complicated answer, Yes.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/i2s.html

Your learning n curve is going to be steep.

esp32 must be connected not to a speaker, but instead of a microphone of another transmitting module

I only have a mic input

Ok. So I believe @Railroader already gave you the answer. You´ll have to use ESP32 to mimic the transmitter mic signal. But in this case I can´t help you any further because I don´t know how to do it either, sorry.

The answer is, "You will NOT be able to use the ESP32 as a microphone output".

I can use esp32 to output sound to the speaker, why can't I output sound to the microphone input?

What happened when you tried? You will not know if you can or cannot till you tried.

Now post the code you used for your best attempt and how you expected it to work and what the code does instead.

You need to sort out matching the
Levels and Impedance to get you started, then sampling rate any EQ that might be needed…

You can. Just use a voltage divider to reduce the output voltage of the ESP32 audio signal to the microvolt or millivolt levels that the "microphone input" expects.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.