Skip to content

Analog Audio Output Support for ESP32-S2? #1024

Answered by pschatzmann
eroboticdude asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your input. I have committed some corrections to add the support for the DAC and ADC automatically based on the release.
I also corrected the bug because I was providing int16_t values to an api which expects uint8_t values.
As far as the quality is concerned, I suggest to experiment with different sample rates and buffer settings in your sketch.

auto cfg = dac.defaultConfig();
cfg.buffer_size = 1024;
cfg.buffer_count = 10;
cfg.sample_rate = 8000;
dac.begin(cfg);

and to set the log level to Warning

For the volume here is the documentation in the Wiki: https://github.com/pschatzmann/arduino-audio-tools/wiki/Volume-Control

Replies: 9 comments 20 replies

Comment options

You must be logged in to vote
2 replies
@eroboticdude
Comment options

@eroboticdude
Comment options

Comment options

You must be logged in to vote
3 replies
@pschatzmann
Comment options

@eroboticdude
Comment options

@eroboticdude
Comment options

Comment options

You must be logged in to vote
1 reply
@eroboticdude
Comment options

Comment options

You must be logged in to vote
5 replies
@eroboticdude
Comment options

@eroboticdude
Comment options

@eroboticdude
Comment options

@eroboticdude
Comment options

@eroboticdude
Comment options

Comment options

You must be logged in to vote
3 replies
@eroboticdude
Comment options

@eroboticdude
Comment options

@eroboticdude
Comment options

Answer selected by pschatzmann
Comment options

You must be logged in to vote
2 replies
@eroboticdude
Comment options

@eroboticdude
Comment options

Comment options

You must be logged in to vote
1 reply
@eroboticdude
Comment options

Comment options

You must be logged in to vote
3 replies
@eroboticdude
Comment options

@eroboticdude
Comment options

@eroboticdude
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants