Replies: 5 comments 9 replies
-
I have exactly the same issue, but I do not see any suggestion to solve it here. Anyone? I do not have an I2S amplifier connected yet, could that cause the problem? |
Beta Was this translation helpful? Give feedback.
-
I found a part of the solution: Add audio.setConnectionTimeout(1000, 1000); before the audio.connecttohost But now I get a "HTTP/1.1 502 Bad Gateway" on any URL |
Beta Was this translation helpful? Give feedback.
-
This looks like a problem with the internet access, maybe the router or firewall... ? |
Beta Was this translation helpful? Give feedback.
-
'Capital' works, MP3 decode error -2 : MAINDATA_UNDERFLOW at the beginning of a stream can occur, 'knixx.fm' doesn't work for me either, the server doesn't like 'User-Agent: ESP32 audioI2S', if you change that it works too |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm writing because I need help. Among the "audio" functions, the "connecttoSD" and "connecttoSpeech" functions work well, and the "connecttohost" function fails no matter what address I enter.
this is source code arduinoIED...
#include "Arduino.h"
#include "WiFi.h"
#include "Audio.h"
#define I2S_DOUT 25
#define I2S_BCLK 27
#define I2S_LRC 26
Audio audio;
const char* ssid = "KT_.....";
const char* password = "d.....";
void setup() {
Serial.begin(115200); delay(500);
}
void loop() {
audio.loop();
}
void audio_info(const char *info){
Serial.print("info "); Serial.println(info);
}
this is error message example...
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4
Connecting to KT_GiGA_2G_Wave2_9A45
.....
WiFi connected, IP address : 172.30.1.13
info PSRAM not found, inputBufferSize: 6399 bytes
info buffers freed, free Heap: 226800 bytes
info Connect to new host: "http://s1.knixx.fm/dein_webradio_64.aac"
info Connect to "s1.knixx.fm" on port 80, extension "/dein_webradio_64.aac"
info Request http://s1.knixx.fm/dein_webradio_64.aac failed!
The "connecttospeech" function is working well and works well even if you call ntptime, so Wi-Fi connection is fine.
What should I check? Should I take a closer look at the "connectohost" function?
Beta Was this translation helpful? Give feedback.
All reactions