esphome / home-assistant-voice-pe

Home Assistant Voice PE
Other
42 stars 7 forks source link

Improve audio components by adding standardized configuration of external DAC with integrated PGA (Programmable Gain Amplifier) as part of this voicekit project? #58

Closed Hedda closed 1 month ago

Hedda commented 1 month ago

Have you considered improving voice-kit project by adding standardized volume control configuration for all external DACs with PGA?

Specifically a standard for ESPHome config to the controlling of digital volume control for DAC (Digital-to-Analog Converter) with integrated PGA (Programmable Gain Amplifier) using I2C commands. Also ability to get the current volume. Not only volume control for the voice assistant but also for media player when playing music. Guessing that some volume_multiplier functions/features or similar need to be added to both i2s audio speaker and i2c media player as a start?

External DAC with integrated PGA (Programmable Gain Amplifier) like example these Class-D amplifier (a.k.a. digital switching amplifier) hardware examples which ESPHome users already requested that need support for speaker volume control over i2c:

For more examples of DACs with integrated PGA suggest also check out these pages:

FYI, here are some requests, PRs, and projects/use-cases that requested related to i2c audio configurations for DAC in ESPHome:

PS: Some of those mentioned DACs also offer controls for advanced features such as enable or disable audio inputs/outputs, and more.

PPS: Off-topic; there is btw also a request for USB UAC ( UAC 2.0 / UAC-2 ) USB Host Audio Driver support as well, which XMOS can do: