Quite some time ago, I published a blog about using LibLAME as a library to encode PCM audio data to mp3 using a micro-controller.
Yesterday I was asking ChatGPT about this topic and it recommended the Shine MP3 encoder.
So I took up the task to provide an Arduino compatible Shine Library and integrate it into my AudioTools.
Here is a related Arduino test sketch that measures the encoding perfrmance for 44100 stereo audio data whch provides the following results from ESP32S3:
17:11:51.874 -> ==> Available stack: 7016 - heap: 195060 - psram: 0
17:11:55.112 -> Frames per second: 78872.27
17:11:58.356 -> Frames per second: 78993.84
17:12:01.603 -> Frames per second: 78920.85
17:12:04.848 -> Frames per second: 78926.93
17:12:08.091 -> Frames per second: 78940.30
17:12:11.337 -> Frames per second: 78916.80
17:12:14.584 -> Frames per second: 78920.85
17:12:17.862 -> Frames per second: 78905.66
0 Comments