Skip to content

I2S helper class for ESP32 family. Makes I2S Audio really easy.

License

Notifications You must be signed in to change notification settings

copych/ESP32-I2S-Audio-Helper-Class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

ESP32-I2S-Audio-Helper-Class

A wrapper/helper class to make I2S easy. Compatible with ESP Arduino cores 2.x.x and 3.x.x.

Access audio capabilities of ESP32 family with a few lines of code like

#include "i2s_config.h"
#include "i2s_in_out.h"

I2S_Audio AudioPort;
float sampleL = 0.0f;
float sampleR = 0.0f;

void setup() {
  AudioPort.init(I2S_Audio::MODE_IN_OUT);
}

void loop() {
  // get one input sample
  AudioPort.getSamples(sampleL, sampleR);

  // process it the way you like
  SomeOfYourEffects.process(&sampleL, &sampleR);

  // output processed sample
  AudioPort.putSamples(sampleL, sampleR);
}

About

I2S helper class for ESP32 family. Makes I2S Audio really easy.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published