Giter VIP home page Giter VIP logo

google-home-push's People

Contributors

deblockt avatar thevickypedia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

google-home-push's Issues

Connect to remote IP?

Hi,

Was wondering if there is a way to broadcast a message to a remote IP for a smart home application or if this is intentionally blocked?

I get the obvious 'not found' error:
image

Thanks for any help or pointers in advance!

error with gtts when running googlehomepush.

I have been runnig the same script for 6 months
When I run the script I am getting
looks like gtts and gtts-token have changed the api

WARNING:googlehomepush.googletts:Unable to get language list: 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "./ChecksAlert.py", line 14, in
GoogleHome(host='10.0.0.1').say(text, lang='en-GB') #the google nest
File "/usr/local/lib/python3.7/dist-packages/googlehomepush/init.py", line 35, in say
ttsurl = self.ttsbuilder(text, lang)
File "/usr/local/lib/python3.7/dist-packages/googlehomepush/googletts.py", line 141, in googleTTS_builder
return GoogleTTS(text=text, lang=lang, slow=False).url()
File "/usr/local/lib/python3.7/dist-packages/googlehomepush/googletts.py", line 87, in url
part_tk = self.token.calculate_token(self.text)
File "/usr/local/lib/python3.7/dist-packages/gtts_token/gtts_token.py", line 28, in calculate_token
seed = self._get_token_key()
File "/usr/local/lib/python3.7/dist-packages/gtts_token/gtts_token.py", line 59, in _get_token_key
"Unable to find token seed! Did https://translate.google.com change?"
ValueError: Unable to find token seed! Did https://translate.google.com change?

socket.gethostbyname(socket.gethostname()) can return 127.0.0.1

Hello,

Thank you very much for this lib.

There is a small issue with the local server in the way it delivers TTS files created with googlecloudTTS_builder

local_ip = socket.gethostbyname(socket.gethostname())

It can return 127.0.0.1 and not the LAN adress.

One way to do it could be to use this solution from stackoverflow:
https://stackoverflow.com/questions/166506/finding-local-ip-addresses-using-pythons-stdlib/28950776#28950776

Anyway, thank you very much for the great work.

Issue running script

When I use the example and change to my device name in Google home

from googlehomepush import GoogleHome

GoogleHome("Google-Nest").say("test")
GoogleHome("Google-Nest").play("http://www.hubharp.com/web_sound/BachGavotteShort.mp3")

When I run the python script in vscode I get the following error.

Failed to connect, retrying in 5.0s

Any help would be appreciated

Works right away? where is the api for

Hello,

So if im right I just need to do the instal " pip install googlehomepush" on my raspberry pi.
I need to make sure the Raspberry is connect to my local network and my google home mini is also.
And then it will work?

i don't understand where I need to fill in the code you are explaining in the api of you're readme. Can you please help me a bit on the way.

I would like that mij google home mini is speaking a text im sending true my raspberry python project.

Thank you already for your time and effort to help me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.