Hi,
I am trying to record audio file through microphone and visualize it in my computer using audacity. I have used GUI for creating the code but when i am recording the file is silent.
Microphone connection :
Mic Pin Teensy Pin
3V3 3.3V
GND GND
SCK 21
WS 20
DO 8
SEL GND
SEL and ground are connected to same GND pin of Teensy.
The code I am using:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputI2S i2s1; //xy=444,422
AudioOutputUSB usb1; //xy=721,421
AudioConnection patchCord1(i2s1, 0, usb1, 0);
AudioConnection patchCord2(i2s1, 1, usb1, 1);
// GUItool: end automatically generated code
void setup() {
// put your setup code here, to run once:
AudioMemory(12);
}
void loop() {
// put your main code here, to run repeatedly:
}
I am using Usb as audio.
I am trying to record audio file through microphone and visualize it in my computer using audacity. I have used GUI for creating the code but when i am recording the file is silent.
Microphone connection :
Mic Pin Teensy Pin
3V3 3.3V
GND GND
SCK 21
WS 20
DO 8
SEL GND
SEL and ground are connected to same GND pin of Teensy.
The code I am using:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputI2S i2s1; //xy=444,422
AudioOutputUSB usb1; //xy=721,421
AudioConnection patchCord1(i2s1, 0, usb1, 0);
AudioConnection patchCord2(i2s1, 1, usb1, 1);
// GUItool: end automatically generated code
void setup() {
// put your setup code here, to run once:
AudioMemory(12);
}
void loop() {
// put your main code here, to run repeatedly:
}
I am using Usb as audio.