deblockt / google-home-push

python lib to push message on google case device
MIT License
15 stars 8 forks source link

error with gtts when running googlehomepush. #11

Closed peterd550 closed 3 years ago

peterd550 commented 3 years ago

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?

rickstijnman commented 3 years ago

I have the same issue.

peterd550 commented 3 years ago

Use this

https://github.com/dray-cyber/googlecontroller

rickstijnman commented 3 years ago

thanks :)

dray-cyber commented 3 years ago

Use this

https://github.com/dray-cyber/googlecontroller

Ty for the reference.