From de09db408f7a1a0ac8c714c553a3e3a52e6050eb Mon Sep 17 00:00:00 2001 From: Niles Rogoff Date: Sun, 13 Aug 2017 11:44:36 -0700 Subject: [PATCH] Remove gtts until needed --- today.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/today.py b/today.py index a380f50..841ba6b 100644 --- a/today.py +++ b/today.py @@ -1,5 +1,5 @@ #!/usr/bin/env bash -import time, datetime, gtts, yweather, yahoo_finance, subprocess, os, json, urllib.request +import time, datetime, yweather, yahoo_finance, subprocess, os, json, urllib.request day_of_week = time.localtime().tm_wday now = time.time() #now = time.time() + 60*28 + 60*60*13 @@ -184,6 +184,7 @@ m = "\n".join([k[1] for k in messages]) print(m) if voice: + import gtts tts = gtts.gTTS(m) tts.save("/tmp/temp.mp3") subprocess.call(["mpv", "/tmp/temp.mp3"])