I am running this code on an Arduino. Using the Arduino, is there a way to pass the audio to my PC speakers?
//This imports the audio class
#include <PCM.h>
//This is the sound being played
const unsigned char sound1[] PROGMEM = {129, 127, 126, 127, 128, 128, 128, 12};
//constant variables
const int knockSensor = A0;
const int threshold1 = 10;
//This create a variable
int sensorReading = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
sensorReading = analogRead(knockSensor);
if (sensorReading >= threshold1) {
Serial.println(threshold1);
startPlayback(sound1, sizeof(sound1));
}
delay(200);
}