All Projects → jimoconnell → GoogleSpeak

jimoconnell / GoogleSpeak

Licence: other
No description or website provided.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to GoogleSpeak

Sonoff Homeassistant
Firmware for ESP8266 based itead Sonoff switches for use with HomeAssistant
Stars: ✭ 354 (+2428.57%)
Mutual labels:  home-automation, mqtt, homeassistant
Awesome Home Assistant
A curated list of amazingly awesome Home Assistant resources.
Stars: ✭ 3,487 (+24807.14%)
Mutual labels:  home-automation, mqtt, homeassistant
amshan-homeassistant
Home Assistant integrasjon for strømmålere (AMS/HAN/P1). Integrasjonen støter både streaming (serieport/TCP-IP) og MQTT (Tibber Pulse, energyintelligence.se etc)
Stars: ✭ 39 (+178.57%)
Mutual labels:  home-automation, mqtt, homeassistant
Homeautio.mqtt.googlehome
Stars: ✭ 168 (+1100%)
Mutual labels:  home-automation, mqtt, google-home
Hugo Esp8266
Hugo is a 4-button ESP8266 Wi-Fi Remote, Arduino compatible and simple to use.
Stars: ✭ 77 (+450%)
Mutual labels:  home-automation, mqtt, homeassistant
Homeassistant
Home Assistant Configuration Files and Documentation
Stars: ✭ 395 (+2721.43%)
Mutual labels:  home-automation, mqtt, homeassistant
node-deepstackai-trigger
Detects motion using Deepstack AI and calls registered triggers based on trigger rules.
Stars: ✭ 154 (+1000%)
Mutual labels:  home-automation, mqtt, homeassistant
Hass Yaap
Yet another alarm (control) panel for Home Assistant.
Stars: ✭ 44 (+214.29%)
Mutual labels:  home-automation, mqtt, homeassistant
Home Assistant Configuration
My Home Assistant Config. For more Information visit ->
Stars: ✭ 102 (+628.57%)
Mutual labels:  home-automation, mqtt, homeassistant
Home Assistant Config Fr
🏠Configuration de Home Assistant en français. 👨🏻‍💻 N'hésitez pas à ⭐ mon repo et à copier les bonnes idées ! 🇨🇵
Stars: ✭ 175 (+1150%)
Mutual labels:  home-automation, mqtt, google-home
hass-pandora-cas
Home Assistant custom component for Pandora Car Alarm System
Stars: ✭ 15 (+7.14%)
Mutual labels:  home-automation, homeassistant
Home-Assistant-Config
🏠 My huizebruin Home Assistant configuration, Be sure to 🌟 this repository for updates! huizebruin
Stars: ✭ 29 (+107.14%)
Mutual labels:  home-automation, homeassistant
google fit hass
A Home assistant custom component to get your fitness information using Google Fitness API.
Stars: ✭ 23 (+64.29%)
Mutual labels:  home-automation, homeassistant
flex-table-card
Highly Flexible Lovelace Card - arbitrary contents/columns/rows, regex matched, perfect to show appdaemon created content and anything breaking out of the entity_id + attributes concept
Stars: ✭ 122 (+771.43%)
Mutual labels:  home-automation, homeassistant
HomeAssistant-Tapo-Control
Control for Tapo cameras as a Home Assistant component
Stars: ✭ 327 (+2235.71%)
Mutual labels:  home-automation, homeassistant
RTC-Call-Monitor
Voice/video call detection by monitoring of UDP packet rate with notification via webhooks
Stars: ✭ 31 (+121.43%)
Mutual labels:  ifttt, homeassistant
Neon
Similar to 🏡 HomeAssistant and OpenHAB, but made with .net core and ❤️ in Florence, Italy
Stars: ✭ 32 (+128.57%)
Mutual labels:  home-automation, homeassistant
janitor
Availability monitoring and alerting for IOT devices
Stars: ✭ 55 (+292.86%)
Mutual labels:  home-automation, homeassistant
ad-alexatalkingclock
Alexa (or other Smart Speakers) tell you the time without asking every hour. Please ⭐️if you like my app :)
Stars: ✭ 30 (+114.29%)
Mutual labels:  home-automation, homeassistant
ocpp
Home Assistant integration for electric vehicle chargers that support the Open Charge Point Protocol (OCPP).
Stars: ✭ 82 (+485.71%)
Mutual labels:  home-automation, homeassistant

Make Your Google Home Speak

This document outlines how to have your Google Home or other Google Cast device speak a string, using IFTTT, CURL, MQTT, or Python.

Like a well-behaved child, your Google Home speaks only when spoken to. This is the preferred way to have it behave for most people, but if you're like me, you want to push its capabilities and have it do things for which it was not designed.

Perhaps you want to have Google announce something like: “The temperature upstairs has reached 90 degrees Fahrenheit!” or perhaps “Someone just placed an order for $53.99 on your e-commerce store!” Sadly, this functionality is not available out of the box with the Google Home, even when you add in IFTTT.

It is possible to have your Google Home speak, but it takes a bit of work, as well some kind of home server, such as a Raspberry Pi, Linux box, or Windows or Mac. (It needs to be on the same network as your Google Home, so using a cloud server won't work.) To make this work with IFTTT, the server will need to be accessible from the Internet.

It relies upon Home Assistant, the excellent home automation platform that will run on as little as a $10 Raspberry Pi Zero. (Installing Home Assistant is outside the scope of this document and well-documented elsewhere.)

In your configuration.yaml file, you enable the following:

media_player: - platform: cast tts: - platform: google

(The Media Player component will discover any Google Homes on your network. “TTS” is Google text-to-speech.)

Home Assistant also has a RESTful API. We will use this to do the heavy lifting.

Via IFTTT:

Note: To use IFTTT, you must have a publicly-accessible URL for Home Assistant.

Create your trigger, the “If THIS” condition that you want to listen for. For

[http://YOUR_HOMEASSISTANT:8123/api/services/tts/google_say?api_password=YOUR_PASSWORD](http://your_homeassistant:8123/api/services/tts/google_say?api_password=YOUR_PASSWORD)
POST
Application/JSON
{"entity_id": "media_player.studio_speaker", "message": "Hello World!"} 

Via Python

import requests

#N.B.: Escape the quotes in your JSON with slashes: \"
data = "{\"entity_id\": \"media_player.studio_speaker\", \"message\": \"Hello World!\"}"

r = requests.post("http://your_homeassistant:8123/api/services/tts/google_say?api_password=YOUR_PASSWORD", data)

print(r.text) #TEXT/HTML
print(r.status_code, r.reason) #HTTP

Via CURL


curl --request POST \
  --url 'http://your_homeassistant:8123/api/services/tts/google_say?api_password=YOUR_PASSWORD' \
  --header 'Content-Type: application/x-www-form-urlencoded' 
  --form 'data={"entity_id": "media_player.studio_speaker", "message": "Hello World!" }'
  

Via MQTT

It occurred to me that it might be useful to have MQTT as a very flexible and dynamic way to send commands to your Google Homes and Cast devices. I grabbed a sample Python/PAHO script and tweaked it a little to listen to a custom channel and send any message received to Home Assistant to be announced via Google TTS.

This method would also make it trivial to send messages to an unlimited number of Home Assistant installs, in different locations, on different networks.

Save the following code as a script, use pip to install pahoo-mqtt and requests:

sudo pip install paho-mqtt requests

The script will keep running until you close the session, kill it, or it encounters an error. (Accented characters or other non-standard english will cause it to choke. Fixing this is a #todo )

(See the section after the script for the mosquitto command for sending the message.)

(Code removed, see updated source at: https://github.com/jimoconnell/GoogleSpeak/blob/master/google_speak_mqtt.py )

To fire it from the command line, install the 'mosquitto-clients' package and run:


mosquitto_pub -h test.mosquitto.org -t "jimoconnell/googlesay/foo" -m "Hokey Smokes! It worked\!"   

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].