Playback a custom message to confirm your computer is on - text to speech

Here you are welcome to share your Push2Run cards

PLEASE NOTE:
If you are downloading a Push2Run card from here or anywhere else, please inspect it carefully before running it or any software associated with it. If you don't do this you may end up with seriously unwanted results.

When sharing a card, please leave any special instructions that are required for its use. For example, if additional software is needed to enable the card, you should leave a link to the program's official webpage.
Post Reply
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Playback a custom message to confirm your computer is on - text to speech

Post by RobLatour »

**** Please see posts below - the info in this post is now out of date and there is a way easier way to do this ***

Right now there is almost no way to get a custom response from your Google Home based on a question you ask it. Let's hope Google fixes that soon. However, until then, there is in fact a low tech way. It involves two or more Google home devices connected to your network with one of them sitting near your Windows computer running Push2Run, and your computer's speakers turned on.

In this example the Push2Run card (attached) and the script file (attached) work together to let you say to your Google device:

OK Google tell my computer to confirm that it is on

and have the response come back:

"Yes, I can confirm that I am on".

Here's how it's done in more detail:
You ask your Google Home device a question, that question gets routed through to Push2Run running on your Windows computer, Push2Run runs the attached script file which uses Microsofts built-in text-to-speech engine to play a custom answer through your speakers. The script file also accesses a program called SetVol that ensure your speakers are unmuted and that their volume is loud enough. The text-to-speech custom message plays, with that message starting with the words "Ok Google broadcast", and your nearby Google Home device sitting in earshot of your computer speakers picks up this custom message and broadcasts it through to all your other Google home devices.

One drawback, if your computer is not on, you won't get a response back.

Ok, I admit, its a little wonky. But if you would like to experiment and perhaps invent your own uses, the Push2Run card and the text to speech script file are attached. Also, you will need to download the (free) program SetVol from http://www.rlatour.com/setvol/.

Enjoy.
Attachments
broadcast.vbs
(1.84 KiB) Downloaded 527 times
Confirm computer is running.P2R
(633 Bytes) Downloaded 499 times
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: Playback a custom message to confirm your computer is on - text to speech

Post by RobLatour »

**** Please see posts below - the info in this post is now out of date and there is a way easier way to do this ***

An alternative approach to this is now documented on the following page: http://www.push2run.com/googlenotify.html
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: Playback a custom message to confirm your computer is on - text to speech

Post by RobLatour »

I've now released a new program, called 'cast', that lets you do this way easier.

Setup instructions and the associated Push2Run card can be found here:

https://www.push2run.com/usingcast.html
Post Reply