55 lines
1.7 KiB
ReStructuredText
55 lines
1.7 KiB
ReStructuredText
AIC3204
|
|
=======
|
|
|
|
.. seo::
|
|
:description: Instructions for using ESPHome's AIC3204 audio DAC platform to play media from your devices.
|
|
:image: i2s_audio.svg
|
|
:keywords: AIC3204, Audio, DAC, I2S, ESP32
|
|
|
|
The ``aic3204`` platform allows your ESPHome devices to use the AIC3204 ultra low power stereo audio codec (DAC).
|
|
This allows the playback of audio via the microcontroller from a range of sources via
|
|
:doc:`/components/media_player/index`.
|
|
|
|
The :ref:`I²C bus <i2c>` is required in your configuration as this is used to communicate with the AIC3204.
|
|
|
|
.. code-block:: yaml
|
|
|
|
# Example configuration entry
|
|
audio_dac:
|
|
- platform: aic3204
|
|
|
|
.. _config-aic3204:
|
|
|
|
Configuration variables:
|
|
------------------------
|
|
|
|
- **address** (*Optional*, int): The I²C address of the driver. Defaults to ``0x18``.
|
|
- **i2c_id** (*Optional*): The ID of the :ref:`I²C bus <i2c>` the AIC3204 is connected to.
|
|
- All other options from :ref:`Audio DAC <config-audio_dac>`.
|
|
|
|
Automations
|
|
-----------
|
|
|
|
``aic3204.set_auto_mute_mode`` Action
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
This action sets the auto-mute mode of the AIC3204. See page 111 in the
|
|
`reference manual <https://www.ti.com/lit/ml/slaa557/slaa557.pdf?ts=1727495047647&ref_url=ti.com>`__
|
|
for more information.
|
|
|
|
Configuration variables:
|
|
|
|
- **id** (**Required**, :ref:`config-id`): The ID of the ``aic3204`` platform.
|
|
- **mode** (**Required**, int, :ref:`templatable <config-templatable>`): The auto-mute mode to be used; must be in the
|
|
range of 0 (auto-mute disabled) to 7.
|
|
|
|
All :ref:`Audio DAC Automations <automations-audio_dac>` are supported by this platform, as well.
|
|
|
|
See Also
|
|
--------
|
|
|
|
- :doc:`index`
|
|
- :apiref:`aic3204/aic3204.h`
|
|
- :apiref:`audio_dac/audio_dac.h`
|
|
- :ghedit:`Edit`
|