balena-io-experimental / balena-sound

Build a single or multi-room streamer for an existing audio device using a Raspberry Pi! Supports Bluetooth, Airplay and Spotify Connect
https://balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/
MIT License
2.39k stars 427 forks source link

possible to add Google Cast-ability audio? #102

Open bodecove opened 4 years ago

bodecove commented 4 years ago

is it ..possible to add Google Cast-ability ?.. if so how.. I'm kind of a noob

Front logo Front conversations

AlexProgrammerDE commented 4 years ago

@bodecove this feature is possible, but requires registration in the dashboard of google. I found some sdk and guides directly from google: https://developers.google.com/cast/ I think this is a thing for another project.

Hope it helps Alex

AlexProgrammerDE commented 4 years ago

@bodecove i have bad news. :( If you want to register your account in the dashboard it wants to pay you a registration fee of 5$. Here is it: https://cast.google.com/publish/#/signup I think that is a huge problem.

bodecove commented 4 years ago

@AlexProgrammerDE ...i agree.. but if it can be done...I will test it ..for the 5bux...i just need to figure out how lol

AlexProgrammerDE commented 4 years ago

@bodecove i found this guide: https://codelabs.developers.google.com/codelabs/cast-receiver/ I think if this works it is a step into the right direction. πŸ‘

bodecove commented 4 years ago

Sorry.. Been busy.. I'll get it done this week., forward me the test.apk again if ucan

On Thu, Feb 13, 2020, 9:26 AM Alex notifications@github.com wrote:

@bodecove https://github.com/bodecove i found this guide: https://codelabs.developers.google.com/codelabs/cast-receiver/ I think if this works it is a step into the right direction. πŸ‘

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/balenalabs/balena-sound/issues/102?email_source=notifications&email_token=ALCJOWIJEI4VIQETI7V2333RCVREDA5CNFSM4KR34LX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELVNDDQ#issuecomment-585814414, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALCJOWM5ZNL4OXGGNDYXCULRCVREDANCNFSM4KR34LXQ .

AlexProgrammerDE commented 4 years ago

@bodecove are you still interested in doing this? You have not replied in a while.

bodecove commented 4 years ago

I am still interested ..just with the virus here in usa Illinois..been really busy with news.. And many life changes..i will try and get going on this..

On Fri, Mar 27, 2020, 8:26 AM Alex notifications@github.com wrote:

@bodecove https://github.com/bodecove are you still interested in doing this? You have not replied in a while.

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/balenalabs/balena-sound/issues/102#issuecomment-604999599, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALCJOWKEZAPKWSWD2BJAMY3RJSSQZANCNFSM4KR34LXQ .

AlexProgrammerDE commented 4 years ago

@bodecove i think you donΒ΄t need a apk file. It should also work with Youtube and other streaming enabled services. Can you try to get this running on a Pi: https://codelabs.developers.google.com/codelabs/cast-receiver/#0 ? (In raspbian not balenaOS)

This should give you video and music output. Let me know if you are finished.

AlexProgrammerDE commented 3 years ago

I just bought the chromecast license myself and gonna experiment with it a bit. But even if it would work I only see this inside another project. This basically requires the need for balena sound at all, but is also paid. I will give an update on this once I get this working in audio only.

jayjr1105 commented 3 years ago

Any progress on this? It would be a dealbreaking feature for me. I'd trash several echo dots running to various sound equipment if this picked up some traction.

JaragonCR commented 3 years ago

I was going to ask the same, with Spotify prices on the ramp, YT Music has real traction plus amazon music as well, but we have to rely in good ole BT.

pjmartorell commented 2 years ago

Any update on this @bodecove or @AlexProgrammerDE? I think it would be a very interesting feature even if we need to pay a few bucks

bodecove commented 2 years ago

@pjmartorell life has put this on back burner..i have not pursued this for some time..but yes it would be a nice feature

vidicunt commented 2 years ago

I'd also be willing to pay for the chromecast licensing fee if necessary in order to have this. Youtube Music is getting pretty big.

Syco54645 commented 2 years ago

This could bypass the bluetooth issues on the rpi3 and also give a more stable way to stream audio than bluetooth. Bluetooth in my house has a range of about 15 feet. Perhaps something can be created that uses playercast or one of the other linux chromecast receivers. I not familiar with the balenaOS setup to attempt playing with this but may try my hand later.

msaberhagen commented 2 years ago

I've started to look into this a little - ALthought dislaimer I'm a complete n00b. Ran through this tutorial https://developers.google.com/cast/codelabs/cast-receiver#0 as suggested by @AlexProgrammerDE ...however I think If I'm not mistaken - this requires you to have a cast device to configure against...not sure this is possible as the Pi is not a Chrome-cast but maybe I'm wrong here....

A possible creative solution is just simply plugging a chrome-cast into the HDMI slot...but that kinda defeats the purpose I would think.

Looking further it might be possible to make a web receiver and have BalenaOS run a local web-server for https://developers.google.com/cast/docs/web_receiver/basic More info here: https://developers.google.com/cast/docs/web_receiver/core_features#creating-a-customized-receiver-app

I'm honestly probably not the guy to do this but I'm genuinely interested in learning about this.

Syco54645 commented 2 years ago

I've started to look into this a little - ALthought dislaimer I'm a complete n00b. Ran through this tutorial https://developers.google.com/cast/codelabs/cast-receiver#0 as suggested by @AlexProgrammerDE ...however I think If I'm not mistaken - this requires you to have a cast device to configure against...not sure this is possible as the Pi is not a Chrome-cast but maybe I'm wrong here....

A possible creative solution is just simply plugging a chrome-cast into the HDMI slot...but that kinda defeats the purpose I would think.

Looking further it might be possible to make a web receiver and have BalenaOS run a local web-server for https://developers.google.com/cast/docs/web_receiver/basic More info here: https://developers.google.com/cast/docs/web_receiver/core_features#creating-a-customized-receiver-app

I'm honestly probably not the guy to do this but I'm genuinely interested in learning about this.

I am on mobile so my response will be short, I am not meaning to come off as rude. With that out of the way the HDMI is output. I don't think the pi support HDMI in. My solution was to use a hifiberry that has line in and use a chromecast audio. Unfortunately it seems the line in is broken on balenaSound. I ended up just using snapcast directly on an rpi running debian and it works great.

Further I believe Google changed the cast API and afaik it has not been reversed so getting something implemented may be hard. Afaik there are no more open source Chromecast clients that are working.

bodecove commented 2 years ago

Thanks for digging into this issue!!

On Tue, Mar 22, 2022 at 12:01 PM Frank Claycomb @.***> wrote:

I've started to look into this a little - ALthought dislaimer I'm a complete n00b. Ran through this tutorial https://developers.google.com/cast/codelabs/cast-receiver#0 as suggested by @AlexProgrammerDE https://github.com/AlexProgrammerDE ...however I think If I'm not mistaken - this requires you to have a cast device to configure against...not sure this is possible as the Pi is not a Chrome-cast but maybe I'm wrong here....

A possible creative solution is just simply plugging a chrome-cast into the HDMI slot...but that kinda defeats the purpose I would think.

Looking further it might be possible to make a web receiver and have BalenaOS run a local web-server for https://developers.google.com/cast/docs/web_receiver/basic More info here:

https://developers.google.com/cast/docs/web_receiver/core_features#creating-a-customized-receiver-app

I'm honestly probably not the guy to do this but I'm genuinely interested in learning about this.

I am on mobile so my response will be short, I am not meaning to come off as rude. With that out of the way the HDMI is output. I don't think the pi support HDMI in. My solution was to use a hifiberry that has line in and use a chromecast audio. Unfortunately it seems the line in is broken on balenaSound. I ended up just using snapcast directly on an rpi running debian and it works great.

Further I believe Google changed the cast API and afaik it has not been reversed so getting something implemented may be hard. Afaik there are no more open source Chromecast clients that are working.

β€” Reply to this email directly, view it on GitHub https://github.com/balenalabs/balena-sound/issues/102#issuecomment-1075396336, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALCJOWKFKS37SAZLQRR3VBTVBH4GXANCNFSM4KR34LXQ . You are receiving this because you were mentioned.Message ID: @.***>

vidicunt commented 1 year ago

The chromecast "receiver" guide by Google seems to be actually a chromecast remote guide. Correct me if I'm wrong.

This app implements the true chromecast receiver protocol: https://play.google.com/store/apps/details?id=com.softmedia.receiver.castapp

These libraries also implement true chromecast receiver: https://github.com/enen92/script.tubecast https://github.com/thibauts/node-castv2 https://www.npmjs.com/package/yt-cast-receiver https://www.npmjs.com/package/chromecast-device-emulator

hundredfire commented 2 months ago

I'm "necro'ing" this topic, as I'm also very interested in this feature. This could allow us to make diy Chromecast audio very easily