Audio playing through serial information

Hello friends,
Does somebody know how to adapt this code so the speaker play what's entering on the arduino's RX?

Thank you.

#include <PCM.h> // PCM Library
//Audio Output Pin = D11 ( & GND)

const unsigned char sample[] PROGMEM = {---
---};

void setup()
{
startPlayback(sample, sizeof(sample));
}

void loop()
{
}

In order to do that, one must know what the code is doing right now!

Check the library, it should have the information you need. PCM is a A digital technique that involves sampling an analog signal at regular intervals and coding the measured amplitude into a series of binary values. There is a large amount of data on the internet on this, a evening with your favorite search engine should get you the information you want plus a lot more.

Hello denisfndzz

Take a search engine of your chose an ask the www for "PCM.h +arduino".

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.