pschatzmann / esp32_radio

Web Radio Player which is also working with a ESP32 Micro Controller
49 stars 13 forks source link

No I2s output #43

Open AndreasMainz opened 1 year ago

AndreasMainz commented 1 year ago

Hello Phil,

i compiled everything with success and web interface is also working, but no i2s output on thinker Esp32 audio board v2.2 using AC101. I did not find a description how to setup.

pschatzmann commented 1 year ago

This project uses the ESP8266Audio library from Earl Phil Hower, which does not support the Esp32 audio board.

I created this project well before my audio-tools library, so I suggest that you pick up the task to change it to use my audio library instead or add the necessary AC101 codec setup yourself.

AndreasMainz commented 1 year ago

Hello Phil,I got some extra time in the evening and I got my audio board to play url streams. Many thanks.Also stream-pins-audiokit.ino worked and I like the idea, to give an audio message if a special event (e.g. Window opened) takes place.. (this might be nice for my home automation project..), if I press key 2 if works fine, giving an audio feedback, but if I press key 1 the Esp32 crashes..do I have to set any more parameters? In Arduino ide it is possible to enable PSRAM, is it required?Should I switch to VSC? (I use it for bigger projects)What is your recommendation?About my last question: it is confusing if a project is called ESP32-Radio, but it does not work for ESP32 but Only for Esp8266.Many thanks for your great lib, to dive deeper more time needs to be spended. But Christmas time is also free time..Viele Grüße Andreas KohlAm 23.12.2022 um 22:32 schrieb Phil Schatzmann @.***>: This project uses the ESP8266Audio library from Earl Phil Hower, which does not support the Esp32 audio board. I created this project well before my audio-tools library, so I suggest that you pick up the task to change it to use this audio library instead or add the AC101 setup yourself.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

pschatzmann commented 1 year ago

The ESP8266Audio is badly named: it supports the ESP8266, the ESP32 and the RP2040

I don't see any reason why it is crashing and you would need to analyse the error trace. You could also try the other TTS libraries: https://github.com/pschatzmann/arduino-audio-tools/wiki/Optional-Libraries.

You can activate the PSRAM in Arduino and use the MemoryManager class to specify for what size allocations the PSRAM should be used.