# Use soundboard file to cast to Google Home

**URL:** <https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426>\
**Category:** Questions & Help\
**Created:** [February 25, 2020, 6:32pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426 "2020-02-25T18:32:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel3](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@daniel3](https://community.homey.app/u/daniel3)\
**Post date:** [February 25, 2020, 6:32pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/1 "2020-02-25T18:32:49Z")

</div>

Hi All,

Is it possible to cast a Soundboard file to Google Home? If that is possible, how do you extract the URL of the file so the Google Home can cast it?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Gilje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gilje/32/18559_2.png) [@Gilje](https://community.homey.app/u/Gilje)\
**Post date:** [February 25, 2020, 9:33pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/2 "2020-02-25T21:33:27Z")

</div>

As for now I dont know any easy solution.

Soundboard can by event card cast to Sonos speaker, but to Google Home there is no native/event card solution (yet).

Have heard that you can setup a server with desired file, and somehow trigger that url (?) from Soundboard event card, which Google Home responds to - but I am not familiar with this solution (as it is too advanced for me…). Sorry.

You may want to look at this thread:

> [@Audio(-alert) over external speaker, f.ex soundboard over chromecast speaker](https://community.homey.app/t/audio-alert-over-external-speaker-f-ex-soundboard-over-chromecast-speaker/23242/4):
>
> I have seen the option of casting an URL to chromecast - but I prefer not to make an webserver for this purpose (and as I know its not possible to make an URL to a place on the Homey device) So still looking for an more elegant solution. Its supposed to be a smarthome - not solely an advanced home wink Hopefully Homey will support external speakers output natively in not to long time… By the way: I got to learn that Sonos app has the flow option: «Play a soundboard sound». Too bad Sonos does…

Soundboard event card «send to Google Home device» is on my wish list…

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 25, 2020, 9:52pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/3 "2020-02-25T21:52:23Z")

</div>

The cast api requires to implement a player client for the chromcast protocol. This also means you will always have a little delay and will hear this “bling” sound on your chromecast when the player client connects before playing the soundfile.  
I don’t know of any solution usable with soundboard either so. Sorry.

---

<div class="post-metadata">

**Author:** ![daniel3](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@daniel3](https://community.homey.app/u/daniel3)\
**Post date:** [February 26, 2020, 2:34pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/4 "2020-02-26T14:34:23Z")

</div>

Thanks for the answers. One related question, is it possible to download a mp3 file uploaded to soundboard. I uploaded it quite some time ago and deleted the original file. If I want to set the mp3 to a server I first need the mp3 ;).

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 26, 2020, 4:45pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/5 "2020-02-26T16:45:42Z")

</div>

That’s something you will have to ask the dev of the app.

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 26, 2020, 5:24pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/6 "2020-02-26T17:24:37Z")

</div>

I would like to cast a sound file (MP3) from a Raspberry\_Pi in my own network to a Google Home Mini. Now I have already tried the following but that is probably too simple:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/7/37e2638b94652b5310bc20fb9df181a68c253aa0.png)  
The question is: is this possible? and if so: What do I have to do to get this working?  
@robertklep can you help me please, with a complete URL line?

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 26, 2020, 6:31pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/7 "2020-02-26T18:31:29Z")

</div>

Casting an mp3 url using the Chromecast app for Homey, with the cast audio url, should actually work.

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 26, 2020, 6:33pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/8 "2020-02-26T18:33:46Z")

</div>

running a webserver on port 22 is rather uncommon though.

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 26, 2020, 7:09pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/9 "2020-02-26T19:09:14Z")

</div>

> [@Shakesbeard](#):
>
> port 22 is rather uncommon

what port should I use or no port?  
can you give an example pleasee?

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 26, 2020, 7:12pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/10 "2020-02-26T19:12:40Z")

</div>

If you have not adjusted anything by hand the webserver on your PI should be on port 80. That’s the default port, so you do not need to explicitly include it in a http url. Port 22 is SSH I think

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 26, 2020, 8:08pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/11 "2020-02-26T20:08:57Z")

</div>

> [@Shakesbeard](#):
>
> webserver

don’t want to go to the webserver (port 8080 in Domoticz) I want to cast from a file in a directory.  
When I login with Putty on this Pi via port 22, I see

> pi@raspberrypi:~ $

when I do a

> dir Music

, I see:

> pi@raspberrypi:~ $ dir Music  
> doorbell.mp3

How can do this in 1 URL ?

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 26, 2020, 8:12pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/12 "2020-02-26T20:12:14Z")

</div>

Oh. Understood. I don’t think the chromecast app supports ssh protocol. But you could as well simply run a secondary webserver like apache in parallel.

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 26, 2020, 8:17pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/13 "2020-02-26T20:17:27Z")

</div>

The thing is, the url “prefix” defines the protocol being used. Like https/http/ssh/git/…  
I don’t know what library or funtion is used by the chromecast app to resolve the resource the given url is pointing at. But I doubt it supports anything else beyond http(s).  
However, if it works the url needs to look like this: ssh://user:password@hostOrIp[:port]/directory/file.mp3

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 26, 2020, 11:20pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/14 "2020-02-26T23:20:22Z")

</div>

Thanks, Thomas for your effort, unfortunately no succes,  
what however does work is: [https://blog.athom.com/wp-content/uploads/2017/04/doorbell.mp3](https://blog.athom.com/wp-content/uploads/2017/04/doorbell.mp3)

Nice but my intention was/is to have this file local in the house, do you have a better idea to realize that?

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 26, 2020, 11:39pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/15 "2020-02-26T23:39:07Z")

</div>

Well, there is no elegant solution for your usecase using homey only, yet. At least I am not aware of any.  
What crossed my mind though. It should be fairly easy to implement a simple Webservice as homey app to just store and host files. But am not sure whether it would be worth investigating in such a development, given it really covers just very few and special usecases. If you have nodejs on your pi you could also just run a very simple nodejs app there to serve the file

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 27, 2020, 12:45pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/16 "2020-02-27T12:45:33Z")

</div>

Thanks for the information, have to accept this.

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 27, 2020, 12:52pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/17 "2020-02-27T12:52:23Z")

</div>

Well, maybe. Maybe I can whip up a small app

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 27, 2020, 12:58pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/18 "2020-02-27T12:58:50Z")

</div>

Kind of like the SoundBoard App? Could it be integrated into this App?  
Oh, see that this was the topic start question, a cirkel is always round.

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 27, 2020, 1:06pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/19 "2020-02-27T13:06:25Z")

</div>

More like simple file store ot use for such rare cases when you want homey to simply serve a resource. I guess it would also be possible to add an ability to the soundboard app to offer the stored sounds to the outer world. But that’s something to ask Athom, as they are the developers.

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 27, 2020, 1:07pm UTC](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426/20 "2020-02-27T13:07:50Z")

</div>

just looked at the implementation of this soundboard app. They are doing quite the funky stuff to store the sounds. But does not look impossible at all.

[Next page](https://community.homey.app/t/use-soundboard-file-to-cast-to-google-home/26426.md?page=2)
