arduino-audio-tools icon indicating copy to clipboard operation
arduino-audio-tools copied to clipboard

Feature request: ESPHome integration

Open timotoots opened this issue 2 years ago • 5 comments

Hello Phil. First of all thanks for the great initiative for this library. Seems perfect for all kinds of crazy stuff.

Would this library be feasible to use as a ESPHome custom component? That project is in big need for audio player component and it would get a lot of use as home music players etc.

Some discussion in here: https://github.com/esphome/feature-requests/issues/599

timotoots avatar Mar 06 '22 20:03 timotoots

I think you can use my different libraries together with ESPHome to build some cool stuff just with a few lines of code. E.g. with my library arduino-simple-tts you could play some sound recordings based on keywords...

  • to play a ringtone
  • read out sensor values

pschatzmann avatar Mar 06 '22 20:03 pschatzmann

We would love to pull something like this into ESPHome.

The main issue I see though is that it has a reliance on Arduino (and it's provided libraries) which raises flags for us as we are trying to move ESP32 fully to ESP-IDF.

jesserockz avatar Mar 08 '22 09:03 jesserockz

Well on my side it was a conscious decision to make this library dependent on Arduino because of the Arduino Streams, so you can deal with (audio) data via Serial, UDP, TCP, Files, Bluetooth...with just one interface. To do this in ESP-IDF would be a big nightmare...

pschatzmann avatar Mar 08 '22 09:03 pschatzmann

@jesserockz If the way forward with ESPHome is with ESP-IDF then I guess it could be possible to include ESP-ADF as well? It provides a lot of audio streams functionality as well.

timotoots avatar Mar 08 '22 10:03 timotoots

I agree - that would be the logical choice. It's just not as easy to use ... But maybe another architecture would make more sense: Like ESPHome communicates via some protocol to a separate ESP which provides Audio. The Audio functionality does not need to be part of ESPHome itself...

pschatzmann avatar Mar 08 '22 10:03 pschatzmann

Moved to discussion - ideas

pschatzmann avatar Sep 17 '22 11:09 pschatzmann