Hi Johnny
Duplex audio is only possible (assuming off-the-shelf headsets) with HSP and HFP. For this, SCO audio connections are used. On the ESP32, it's unclear if SCO packets can be sent correctly over their virtual HCI interface. See
https://github.com/espressif/esp-idf/issues/1118
Anyway, if you can live with 8 khz audio data and don't need to process it on the ESP32, it should be possible to configure the ESP32 to provide the HSP audio over PCM/I2S, without the stack.
We did not test this, so cannot help here.
As HFP Wide-band speech requires the stack to decode mSBC (an audio codec like MP3), it's silly to route SCO data packets out over PCM/I2S, just to receive them again over a second PCM/I2S to be able to decode it and then finally, eg. output it over a third PCM/I2S interface. There might be progress on the SCO over HCI issue, but we didn't follow.
Alternatively, you can use BTstack on the STM F4 Discovery Board with a CC2564 where HSP and HFP are fully working, incl. support for outgoing I2S coded and the on-board PDM microphone.
Best
Matthias
> --
> You received this message because you are subscribed to the Google Groups "btstack-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
btstack-dev...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/btstack-dev/7f5c4028-195e-44e0-bc81-28b90e5836b7n%40googlegroups.com.