File tree Expand file tree Collapse file tree 1 file changed +49
-3
lines changed
Expand file tree Collapse file tree 1 file changed +49
-3
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,52 @@ void audio_eof_speech(const char *info){
110110
111111````
112112
113+ ````c++
114+ /* ESP32-S3 EXAMPLE */
115+
116+ #include "Arduino.h"
117+ #include "Audio.h"
118+ #include "WiFi.h"
119+ #include "SD_MMC.h"
120+
121+ #define I2S_DOUT 9
122+ #define I2S_BCLK 3
123+ #define I2S_LRC 1
124+ #define SD_MMC_D0 11
125+ #define SD_MMC_CLK 13
126+ #define SD_MMC_CMD 14
127+
128+ Audio audio;
129+
130+ String ssid = "*****";
131+ String password = "*****";
132+
133+ void setup() {
134+ Serial.begin(115200);
135+ // WiFi.begin(ssid.c_str(), password.c_str());
136+ // while (WiFi.status() != WL_CONNECTED) delay(1500);
137+
138+ pinMode(SD_MMC_D0, INPUT_PULLUP);
139+ SD_MMC.setPins(SD_MMC_CLK, SD_MMC_CMD, SD_MMC_D0);
140+ SD_MMC.begin("/sdcard", true);
141+
142+ audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
143+ audio.setVolume(12); // default 0...21
144+ // audio.connecttohost("http://stream.antennethueringen.de/live/aac-64/stream.antennethueringen.de/"); // aac
145+ audio.connecttoFS(SD_MMC, "/test.wav");
146+ }
147+
148+ void loop() {
149+ audio.loop();
150+ vTaskDelay(1);
151+ }
152+
153+ // optional
154+ void audio_info(const char *info){
155+ Serial.print("info "); Serial.println(info);
156+ }
157+ ````
158+
113159<br >
114160
115161| Codec | ESP32 | ESP32 PSRAM | ESP32-S3 PSRAM | |
@@ -125,10 +171,10 @@ void audio_eof_speech(const char *info){
125171
126172<br >
127173
128- Breadboard
129- 
174+ ***
130175Wiring
131- 
176+ ![ Wiring ESP32-S3] ( https://github.com/user-attachments/assets/15dd1766-0fc1-4079-b378-bc566583e80d )
177+ ***
132178Impulse diagram
133179![ Impulse diagram] ( https://github.com/schreibfaul1/ESP32-audioI2S/blob/master/additional_info/Impulsdiagramm.jpg )
134180***
You can’t perform that action at this time.
0 commit comments