pschatzmann / ESP32-A2DP

A Simple ESP32 Bluetooth A2DP Library (to implement a Music Receiver or Sender) that supports Arduino, PlatformIO and Espressif IDF
Apache License 2.0
1.61k stars 269 forks source link

How to make a bluetooth micphone? #262

Closed ziv2013 closed 2 years ago

ziv2013 commented 2 years ago

Hi,

I'd like to make a bluetooth microphone which can be used with my laptop.

But I find all the examples only works with a bluetooth speaker.

I want the ESP32 can be found by laptop and pair. Is there any demos for this?

Thanks,

Ziv

pschatzmann commented 2 years ago

In the readme I recommended that you have a look at my https://github.com/pschatzmann/arduino-audio-tools project.

There you can find this Arduino Sketch example: https://github.com/pschatzmann/arduino-audio-tools/tree/main/examples/examples-basic-api/base-i2s-a2dp

Please note that you need to google how to turn your laptop into an A2DP Sink yourself since this is dependent on the OS.

You might also consider the following alternative approach which has less complexity: https://github.com/pschatzmann/arduino-audio-tools/tree/main/examples/examples-webserver/streams-i2s-webserver_wav

ziv2013 commented 2 years ago

Thanks a lot.

I have tested streams-i2s-webserver_wav, it works well.

And Is it possible for us to make a device that can act as my bluetooth headset?

I can search and pair my bluetooth headset directly with my laptop.

Ziv

pschatzmann commented 2 years ago

That would be any of the Sink examples in this project. Just read the Readme!

You can try to use the internal DAC - though the quality will not be great and I recommend to use an external DAC.

There is plenty of information in the Wiki

ziv2013 commented 2 years ago

Thanks, I would study WIKI.