CODAL has the option choose between 8-bit and dB for the LevelDetector. We had a couple of requests and it's already built in CODAL, so it'd be good to have it in the next beta.
API Options:
Adding an argument to microphone.sound_level(), possibly microphone.sound_level(db=True)?
Creating a new function like microphone.sound_level_db()
Change units via different method, e.g. microphone.set_sound_level_unit(microphone.SOUND_LEVEL_DB)
CODAL has the option choose between 8-bit and dB for the LevelDetector. We had a couple of requests and it's already built in CODAL, so it'd be good to have it in the next beta.
API Options:
microphone.sound_level()
, possiblymicrophone.sound_level(db=True)
?microphone.sound_level_db()
microphone.set_sound_level_unit(microphone.SOUND_LEVEL_DB)