changed frequency(2.0) to sample_rate(3.0)

This commit is contained in:
vgoodwinv 2018-12-31 17:28:59 -05:00 committed by GitHub
parent a2857397e7
commit f2b1be81b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ def normalized_rms(values):
mic = audiobusio.PDMIn(
board.MICROPHONE_CLOCK,
board.MICROPHONE_DATA,
frequency=16000,
sample_rate=16000,
bit_depth=16
)
samples = array.array('H', [0] * 160)