I am about to buy new home theater receiver and I am playing with the idea to connect it as media player to my hass.io raspberry pi 4.
I saw some support for Yamaha musiccast receivers and Denon ones. I didn’t see any clear evidence they will be able to stream tts mp3s directly from my pi.
Specifically for Yamaha I saw lot of documentation regarding YXC APIs but I didn’t find any http streaming of mp3 sample using it.
So am I only dreaming or this should be easy scenario with all the technology we already have.
By passing the receiver for this and using Chromecast / Roku might be the only solution (annoying). Will I be able to use a Yamaha receiver and turn it on, flip to the right input and play the tts file from the streamer?
Oh they support it. It’s just that the extended API is rather complicated and whoever wrote the Yamaha home assistant integration just picked a very small set of the basic API commands, the minimum required. I’ve looked at the APIs and implemented a few more commands from the basic set but to be honest I don’t blame the dev for ignoring the extended set.
My receiver turns on and switches input to the chromcast automatically.
It takes a few seconds so short messages might be missed completely if you rely on this method.
If it’s on I cast something it usually switch input before the cast has started.
This works by using the HDMI CEC that Chromecast supports.
The API does not have an option to play any digital source directly (streaming, mp3 etc). You can work around it by storing a preset to something that you select via the device (mobile app or standard remote) - the API allows to recall a preset therefore play one of the pre-defined streams/files. Here is the API documentation.
I didn’t find over the web any specific example which actually show that specific scenario. Just for that reason I think I will go with the Denon. But if someone get it to stream single MP3 file from custom web URL than they are really comparable from that perspective.
Should be exactly the same service as the Denon example. I’d test it but am not going to be home to hear if it works for another 5 months. Someone else with a Yamaha amp could. Maybe @Burningstone
?
I could test, but even if it works, I don’t think it would be nice experience.
My Yamaha Amp (same goes for two Denon Amps I have and all Amps/Receivers I ever owned) takes 2-3 seconds until you hear sound after it has been turned on from standby, so I’d assume you’d miss part/whole tts message because the Amp is not ready yet. Maybe my assumption is wrong. But if it is true, you could only get a good experience when the Amp is already running when you want to play TTS.
If it’s going to be used in automations then you can just turn on, delay 5 seconds then tts.
If it’s done manually then it’s a different story. But you could still have a input_text which triggers the automation.