top | item 38865078

(no title)

reassembled | 2 years ago

My recollection is that by default the ESP32 DAC isn't very high bit depth and so the sound quality is limited. It is recommended to interface it with an external DAC chip via I2S in order to achieve higher than 8bits per sample (maybe 12bit? Someone please correct me).

discuss

order

HeyLaughingBoy|2 years ago

Correct. Configuring it to route audio through an external I2S DAC instead is trivial. ISTR that it's literally 3 lines of code.

blkhawk|2 years ago

yes it hasn't really got a dedicated sound out and an i2c chips is absolutely needed. I meant more because while is absolutely possible to play say an mp3 on it its simple not a thing it does too easily in a useful manner in a multi-application device context.

I mean you can absolutely build a shoutcast stream receiver with it. Or run a NES emulator with sound on it. But this ttgo device seem like it would be best as a console or maybe a mastodon front-end. In that case the most the speaker would make sense for would be some beeps.