Esempio n. 1
0
class HubbleBubble:
    def __init__(self):
        self.config = Config()
        self._host = self.config.get("google_home")["ip"]
        self.home = GoogleAssistant(host=self._host)

    def say(self, msg):
        self.home.say(msg)

    def error(self, msg):
        self.say(msg)
        raise Exception(msg)

    def alarm(self, msg):
        self.say(msg)
        time.sleep(5)
        self.home.play("http://www.hubharp.com/web_sound/BachGavotteShort.mp3")
Esempio n. 2
0
from googlecontroller import GoogleAssistant

host = "192.168.0.4"  # your google assistant ip this is mine
home = GoogleAssistant(host=host)
print("Type Your Volume 0-100")
home.volume(volumelevel=input())
Esempio n. 3
0
from googlecontroller import GoogleAssistant

host = "192.168.0.4"  #again your google homes ip
home = GoogleAssistant(host=host)
print("Type speed of tts")
speed = str(input())
print("Type for TTS")
while True:
    data = input()
    home.say(data, speed=speed, lang='en-US')
Esempio n. 4
0
from googlecontroller import GoogleAssistant

host = "192.168.0.4" #again your google homes ip
home = GoogleAssistant(host=host)

home.serve_media("Victory.mp3", "C:/Users/Dray-Cyber/Documents/GitHub/googlecontroller/examples")
Esempio n. 5
0
 def __init__(self):
     self.config = Config()
     self._host = self.config.get("google_home")["ip"]
     self.home = GoogleAssistant(host=self._host)
Esempio n. 6
0
from googlecontroller import GoogleAssistant

host = "192.168.0.4" #again your google homes ip
home = GoogleAssistant(host=host)
print("Type Your Volume 0-100")
home.volume(volumelevel=input())
print("Type speed of tts")
speed = str(input())
print("Type for TTS")
while True:
    data = input()  
    home.say(data, speed=speed, lang = 'en-US')

Esempio n. 7
0
from googlecontroller import GoogleAssistant

print("Type your google assistants ip")
host = input()
home = GoogleAssistant(host=host)
print("To end demo hit control + c")
print("Type for TTS Demo")
data = input()
while True:
    home.say(data, ignore=True)