winteris / ESPHome-singlecore-i2s-audio

ESPHome I²S Audio Media Player Component for ESP32 single-core chips (ESP32C3)
5 stars 2 forks source link
esp32c3 esphome esphome-component homeassistant

ESPHome I²S Audio Media Player Component for ESP32 single-core chips

Similar to the Official Component I²S Audio Media Player, this is a External Component made for ESPHome, it can be used to create an ESPHome Audio Media Player in Home Assistant. The difference is that the audio library it uses is from earlephilhower/ESP8266Audio, which can run on ESP series single-core chip(like ESP8266, ESP32S2, ESP32C3), so it works on my ESP32C3. This component is written separately for the airm2m_core_esp32c3 development board, and you can modify this component yourself to make it work with your own board.

It is able to :

Another advantage of ESP8266Audio over schreibfaul1/ESP32-audioI2S is that, the ESP8266Audio can play wav files from local flash, and I tested it successfully on esp32c3, you can see more samples in https://github.com/earlephilhower/ESP8266Audio.

How to use

See usage in ESPHome Page External Component. You will see it is easy to use the local path:

  1. Clone this repository and copy the /my_components folder to ESPHome /config folder, where you can see your yaml files. You can modify the local file every time you want.
  2. Add this into your yaml:
    
    external_components:
    - source: my_components

Default value if not defined : GPIO1 GPIO18 GPIO0

media_player:

Thanks to all them.