# ESP32-audioI2S
:warning: **This library only works on multi-core chips like ESP32-S3, ESP32-S31 and ESP32-P4.
The ESP32 is suitable to a limited extent.
It does not work on the ESP32-S2, ESP32-C3 etc** :warning:
Supported codecs: wav, mp3, aac, flac, opus, vorbis
Sampling rate: 16–48 kHz
Bits per sample: 8, 16, 24, 32
Container formats: ogg, mp4, m3u8
The output sample rate can be set to a fixed value of 44.1 or 48 kHz if required by the external I²S device
Works with MAX98357A (3 Watt amplifier with DAC), connected three lines (DOUT, BLCK, LRC) to I2S. The I2S output frequency is always 48kHz, regardless of the input source, so Bluetooth devices can also be connected without any problems.
For stereo are two MAX98357A necessary. AudioI2S works with UDA1334A (Adafruit I2S Stereo Decoder Breakout Board), PCM5102A and CS4344.
Other HW may work but not tested. Plays also icy-streams, GoogleTTS and OpenAIspeech. Can be compiled with Arduino IDE. [WIKI](https://github.com/schreibfaul1/ESP32-audioI2S/wiki)
```
…
```
`
You can find more examples here: https://github.com/schreibfaul1/ESP32-audioI2S/tree/master/examples
```
…
```
`
***
Wiring
***
Impulse diagram
***