diff --git a/raspberry.md b/raspberry.md index 2acef54..e397354 100644 --- a/raspberry.md +++ b/raspberry.md @@ -1,7 +1,7 @@ ## connect via SSH -# +# Useful commands - see connected usb devices - lsusb - arecord -l @@ -24,3 +24,10 @@ pcm.mic { pcm "hw:1,0" } } + + +44200 sampling rate +5 secs +230000 array length + + diff --git a/src/record_sound.py b/src/record_sound.py index 34730a5..7257bfb 100644 --- a/src/record_sound.py +++ b/src/record_sound.py @@ -1,15 +1,15 @@ from numpy import* from scipy.io.wavfile import read from scipy.io.wavfile import write -import matplotlib.pyplot as plt +# import matplotlib.pyplot as plt import scipy import sounddevice as sd import time -a = read("/home/jreinking/Projekte/doorbell/raspberry-pi-projects/res/klingel_aufnahme_microphne_cut.wav") +# a = read("/home/jreinking/Projekte/doorbell/raspberry-pi-projects/res/klingel_aufnahme_microphne_cut.wav") # print(a) # print(len(a[1])) -a = a[1] +# a = a[1] def chunks(lst, n): """Yield successive n-sized chunks from lst."""