Support more audio codecs, not just lossy MP3 - in ESPHome #889
Replies: 3 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
FYI, Nabu Casa developers have as part of firmware for the Home Assistant Voice Preview Edition developed a brand new ”nabu” media player custom component which has most of those features and that code will hopefully be pushed upstream to mainline ESPHome soon, see: https://github.com/esphome/home-assistant-voice-pe/tree/dev/esphome/components/nabu And https://www.home-assistant.io/blog/2024/12/19/voice-preview-edition-the-era-of-open-voice/ They already moved some of the new audio decoder and resampling libraries from that repository into their own separate repo that can be found here: |
Beta Was this translation helpful? Give feedback.
-
From 2.4.0rc5 MA supports FLAC, AAC, MP3 and WAV. Not all players might be able to accept all codecs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ESPHome's Media Player currently seems to support only MP3 streams. MP3 is a lossy format, sound quality is degraded.
Music Assistant integration by default renders the audio streams in FLAC, which is a lossless format.
Would be nice to enable support in ESPHome for other codecs too:
Since only MP3 is supported, one needs to use other firmware than ESPHome, like squeezelite. The goal would be not to have to rely on third party stuff, but remain in the Home Assistant + ESPHome ecosystem.
Adding more codecs of course needs PSRAM for ESP32 (like WROVER module), which is not a problem as plenty of such modules are available. This just needs to be pointed out properly in the documentation.
Also requested in ESPHome FR repo: esphome/feature-requests#1848
Beta Was this translation helpful? Give feedback.
All reactions