update md
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| ## connect via SSH | ## connect via SSH | ||||||
|  |  | ||||||
|  |  | ||||||
| #  | # Useful commands | ||||||
|  - see connected usb devices |  - see connected usb devices | ||||||
|    - lsusb |    - lsusb | ||||||
|  - arecord -l |  - arecord -l | ||||||
| @@ -24,3 +24,10 @@ pcm.mic { | |||||||
|     pcm "hw:1,0" |     pcm "hw:1,0" | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
|  | 44200 sampling rate | ||||||
|  | 5 secs | ||||||
|  | 230000 array length | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,15 +1,15 @@ | |||||||
| from numpy import* | from numpy import* | ||||||
| from scipy.io.wavfile import read | from scipy.io.wavfile import read | ||||||
| from scipy.io.wavfile import write | from scipy.io.wavfile import write | ||||||
| import matplotlib.pyplot as plt | # import matplotlib.pyplot as plt | ||||||
| import scipy | import scipy | ||||||
| import sounddevice as sd | import sounddevice as sd | ||||||
| import time | 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(a) | ||||||
| # print(len(a[1])) | # print(len(a[1])) | ||||||
| a = a[1] | # a = a[1] | ||||||
|  |  | ||||||
| def chunks(lst, n): | def chunks(lst, n): | ||||||
|   """Yield successive n-sized chunks from lst.""" |   """Yield successive n-sized chunks from lst.""" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user