library to push text message or sond to Google Home.
Project description
Google home push
Library for Python 3.4+ to push text message or audio file with the Google Home.
Installation
pip install googlehomepush
Dependencies
PyChromecast depends on the Python packages gTTS, pychromecast. Make sure you have these dependencies installed using pip install -r requirements.txt
How to use
from googlehomepush import GoogleHome
GoogleHome("LivingRoom").say("test")
GoogleHome("LivingRoom").play("http://www.hubharp.com/web_sound/BachGavotteShort.mp3")
API
GoogleHome(deviceIdentifier)
Create a new Google Home instance
.
deviceIdentifier
can be the google home name, or its IP.
.say(text, lang = 'en', slow = False)
Push a message on Google home
text
is the test message to saylang
the text language, default value is 'en'slow
true if you want the message to be delivered slowly
.play(url, contentType = 'audio/mp3'):
Push a sond to Google home
url
an audio file URLcontentType
the audi file content type
Maintainers
- Thomas Deblock (@tdeblock)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
googlehomepush-0.0.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for googlehomepush-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85cc09a3e8155ff6dac1f3c99c7d76fde170d907f90b55bd95c18a8aa7ba0d37 |
|
MD5 | 18f1615e3c15b3d62e5aab9cd5ffb1db |
|
BLAKE2b-256 | ee687468b4e8e7f120da2f19849cbad3e13a7d4d17debd6c8b509f8e7917207a |