esp8266 audio with esp8266audio - Error compiling

Build options changed, rebuilding all
In file included from C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:41:0,

                 from C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,

                 from C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,

                 from C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266HTTPClient\src\ESP8266HTTPClient.cpp:29:

C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:38:5: error: 'BearSSL::WiFiClientSecure::~WiFiClientSecure()' marked override, but does not override

     ~WiFiClientSecure() override;

     ^

C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:41:9: error: 'int BearSSL::WiFiClientSecure::connect(const String&, uint16_t)' marked override, but does not override

     int connect(const String& host, uint16_t port) override;

         ^

C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:46:12: error: 'size_t BearSSL::WiFiClientSecure::write_P(const char*, size_t)' marked override, but does not override

     size_t write_P(PGM_P buf, size_t size) override;

            ^

C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:58:12: error: 'size_t BearSSL::WiFiClientSecure::peekBytes(uint8_t*, size_t)' marked override, but does not override

     size_t peekBytes(uint8_t *buffer, size_t length) override;

            ^

In file included from C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266HTTPClient\src\ESP8266HTTPClient.cpp:30:0:

C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src/WiFiClientSecureAxTLS.h:36:3: error: 'axTLS::WiFiClientSecure::~WiFiClientSecure()' marked override, but does not override

   ~WiFiClientSecure() override;

   ^

C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src/WiFiClientSecureAxTLS.h:39:7: error: 'int axTLS::WiFiClientSecure::connect(const String&, uint16_t)' marked override, but does not override

   int connect(const String& host, uint16_t port) override;

       ^

C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src/WiFiClientSecureAxTLS.h:47:10: error: 'size_t axTLS::WiFiClientSecure::write_P(const char*, size_t)' marked override, but does not override

   size_t write_P(PGM_P buf, size_t size) override;

          ^

C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi\src/WiFiClientSecureAxTLS.h:53:10: error: 'size_t axTLS::WiFiClientSecure::peekBytes(uint8_t*, size_t)' marked override, but does not override

   size_t peekBytes(uint8_t *buffer, size_t length) override;

          ^

C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266HTTPClient\src\ESP8266HTTPClient.cpp: In member function 'bool HTTPClient::connect()':

C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266HTTPClient\src\ESP8266HTTPClient.cpp:1182:14: error: 'class WiFiClient' has no member named 'setNoDelay'

     _client->setNoDelay(true);

              ^

Multiple libraries were found for "WiFiClient.h"
 Used: C:\Program Files (x86)\Arduino\libraries\WiFi
 Not used: C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi
Multiple libraries were found for "SD.h"
 Used: C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\SD
 Not used: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

I try to use the esp8266audio, but when I try compiling the i get the message above.

I use Windows and downloaded and placed the 2 libraries into the documents folder. (also tried the other 2 locations)
I also deleted the complete libraries in appdata, but it didn't help.

I am a bit lost because I don't know where the problem comes from. I would be very glad to get some advice.

Here's your clue:

Qar:
Multiple libraries were found for "WiFiClient.h"
Used: C:\Program Files (x86)\Arduino\libraries\WiFi
Not used: C:\Users\Vy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFi
[/code]

There are two different libraries installed on your computer that contain a file named WiFiClient.h and the Arduino IDE picked the wrong one.

You need to force the Arduino IDE to use the correct library. I believe you can do this by adding the following line to the top of your sketch:

#include <ESP8266WiFi.h>

but I can't test that because you didn't provide the code you're compiling.

If all else fails, you have the option of deleting C:\Program Files (x86)\Arduino\libraries\WiFi. That library is for the long retired Arduino WiFi Shield so if you don't happen to own an Arduino WiFi Shield it's useless.

I have used the example of esp8266audio:

#include <Arduino.h>
#include "AudioFileSourceSPIFFS.h"
#include "AudioGeneratorMP3.h"
#include "AudioOutputI2SNoDAC.h"

AudioGeneratorMP3 *mp3;
AudioFileSourceSPIFFS *file;
AudioOutputI2SNoDAC *out;
void setup()
{
  Serial.begin(115200);
  delay(1000);
  SPIFFS.begin();
  file = new AudioFileSourceSPIFFS("/jamonit.mp3");
  out = new AudioOutputI2SNoDAC();
  mp3 = new AudioGeneratorMP3();
  mp3->begin(file, out);
}

void loop()
{
  if (mp3->isRunning()) {
    if (!mp3->loop()) mp3->stop(); 
  } else {
    Serial.printf("MP3 done\n");
    delay(1000);
  }
}

I replaced the
"#include "arduino.h" with
"#include <ESP8266WiFi.h>"
and it compiles.

Is arduino.h just including all standard arduino libraries?
And why is the auther of esp8266audio just including the whole thing?

Qar:
and it compiles.

I'm glad to hear it!

Qar:
Is arduino.h just including all standard arduino libraries?

Arduino.h is part of the Arduino core library, which contains the standard Arduino API like digitalRead(), pinMode(), etc. Adding an #include directive for Arduino.h brings in the declarations for the standard Arduino API. However, the Arduino IDE/arduino-cli/etc. automatically add the #include directive for Arduino.h to the .ino files of a sketch during sketch preprocessing before a compilation so adding that #include directive yourself is unnecessary.

Qar:
And why is the auther of esp8266audio just including the whole thing?

All sketches have that #include directive in their .ino files (.h, .cpp, etc. files don't go through sketch preprocessing), you just don't see it because it's added to the sketch code before it's compiled as C++. I have no clue why the library author added that line, since the Arduino IDE would have added it automatically. Perhaps they're using some obscure 3rd party alternative to the Arduino IDE that doesn't do sketch preprocessing. Perhaps they don't like sketch preprocessing and prefer to add that line manually to their code.