Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8bit DAC's of the ESP32 #302

Closed
Fire-Dragon-TW opened this issue May 3, 2022 · 6 comments
Closed

8bit DAC's of the ESP32 #302

Fire-Dragon-TW opened this issue May 3, 2022 · 6 comments
Labels
wontfix This will not be worked on

Comments

@Fire-Dragon-TW
Copy link

How can I use 8bit DAC's of the ESP32

@Fire-Dragon-TW
Copy link
Author

#include "Audio.h"
#include "FS.h"
#include "SPIFFS.h"

#define I2S_DOUT      25
#define I2S_BCLK      27
#define I2S_LRC       26

Audio audio(true, I2S_DAC_CHANNEL_BOTH_EN);

void setup() {
    Serial.begin(115200);
    audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
    audio.setVolume(21);

    SPIFFS.begin();
    audio.connecttoFS(SPIFFS, "alert.mp3");
}

void loop()
{
    audio.loop();
}

@Fire-Dragon-TW
Copy link
Author

image
image

@Fire-Dragon-TW
Copy link
Author

speaker is connected to GPIO 26 and GND

@ggssantos
Copy link

@Fire-Dragon-TW, this issue is not related to the library itself, it is a problem with the Espressif Arduino Core. The last version that the internal DAC works is the 2.0.0.
You need to open the board manager on your arduino IDE and downgrade the ESP32 to 2.0.0.

image

The issue was discussed here: espressif/arduino-esp32#5938

@jitendra1607
Copy link

@Fire-Dragon-TW @ggssantos

I want to implement this library because it enables the internal DAC of ESP32 without any other hardware. Can you post a sample audio output recording, to judge the quality of simple speech voice? It would be really helpful to make a final decision. Thank you

@stale
Copy link

stale bot commented Sep 21, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Sep 21, 2022
@stale stale bot closed this as completed Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants