esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

Wrong documentation or default value for mic CONF_BITS_PER_SAMPLE #5272

Open Hadatko opened 9 months ago

Hadatko commented 9 months ago

The problem

Based on this documentation https://esphome.io/components/microphone/i2s_audio.html -> bits_per_sample (Optional, enum): The bit depth of the audio samples. Note that while set to 32bit, the samples will be scaled down to 16bit before being forwarded. One of 16bit or 32bit. Defaults to 16bit.

Based on code: cv.Optional(CONF_BITS_PER_SAMPLE, default="32bit"): cv.All( _validate_bits, cv.enum(BITS_PER_SAMPLE) ),

Which version of ESPHome has the issue?

I cloned recent one for developing

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32

Board

No response

Component causing the issue

i2s_audio/microphone

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.