Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow media_player to play back local (PCM) audio #56

Open
jhbruhn opened this issue Jul 19, 2024 · 1 comment
Open

Allow media_player to play back local (PCM) audio #56

jhbruhn opened this issue Jul 19, 2024 · 1 comment

Comments

@jhbruhn
Copy link

jhbruhn commented Jul 19, 2024

For (voice assistant related) functionalities like timer-alarms and awake-sounds after the wake-word has been detected, it would be great if the media_player component could play a locally stored PCM sound. For example in the esphome S3 Box firmware, this is used to play an alarm sound with the speaker component. But when using a speaker, you don't get a media_player usable from HA.

The workaround would be to host these sounds on a local HTTP Server and play back from there, but that isn't low latency and sounds like an unnecessary complication to me.

It of course would be great to integrate this into ESPHomes media_player natively, but that feature-request is still open.

Alternative Idea:

Is it feasible to provide a generic media_player, which has just an output speaker-component? But then of course the volume etc. is ignored when accessing the speaker directly.

@jhbruhn
Copy link
Author

jhbruhn commented Jul 25, 2024

It seems like NabuCasa is working on a (XMOS specific?) Media Player implementation which will allow playback of local files already: https://github.com/esphome/voice-kit/tree/dev Maybe we should wait to see whether this aids in any way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant