Skip to content

MP3 to WAV conversion -- Working #1964

Discussion options

You must be logged in to vote

Full working code

Fetching MP3 and converting to WAV while listening thru MAX98357 I2S Audio Amplifier

// Suppress annoying library warnings
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat"
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"

#include "AudioTools.h"
#include "AudioTools/AudioCodecs/CodecMP3Helix.h"
#include "AudioTools/AudioCodecs/CodecWAV.h"
#include <WiFi.h>
#include <WiFiUdp.h>
#include <WiFiClientSecure.h>
#include <HTTPClient.h>
#include <ArduinoJson.h>
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
#include <chrono> // For timekeeping
#include <SD.h>
#include <SPI.h>


// -------------------------- AMP Pin Setup --------------…

Replies: 6 comments 15 replies

Comment options

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

@pschatzmann
Comment options

@hammerheaddown
Comment options

Comment options

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

@pschatzmann
Comment options

@hammerheaddown
Comment options

@pschatzmann
Comment options

@hammerheaddown
Comment options

Comment options

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

@hammerheaddown
Comment options

@pschatzmann
Comment options

@hammerheaddown
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

@hammerheaddown
Comment options

@pschatzmann
Comment options

Answer selected by hammerheaddown
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