1The board is not an ESP32
The library plays audio through the ESP32 I2S port, so it needs an ESP32. Mokxi builds the sketch but does not play sound: the connect calls return false and say so on the serial monitor.
#include "Audio.h"
Audio audio;
void setup() {
Serial.begin(9600);
}
void loop() {
}#include "Audio.h"
#define I2S_DOUT 25
#define I2S_BCLK 27
#define I2S_LRC 26
Audio audio;
void setup() {
Serial.begin(115200);
audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
audio.setVolume(12);
if (!audio.connecttohost("http://stream.example.com/radio.mp3")) {
Serial.println("could not start the stream");
}
}
void loop() {
audio.loop();
}
void audio_info(const char *info) {
Serial.print("info ");
Serial.println(info);
}Mokxi’s build tab says: Pick an ESP32 board