Remove gtts until needed
This commit is contained in:
parent
4dd35fe3fb
commit
de09db408f
3
today.py
3
today.py
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/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
|
day_of_week = time.localtime().tm_wday
|
||||||
now = time.time()
|
now = time.time()
|
||||||
#now = time.time() + 60*28 + 60*60*13
|
#now = time.time() + 60*28 + 60*60*13
|
||||||
|
@ -184,6 +184,7 @@ m = "\n".join([k[1] for k in messages])
|
||||||
|
|
||||||
print(m)
|
print(m)
|
||||||
if voice:
|
if voice:
|
||||||
|
import gtts
|
||||||
tts = gtts.gTTS(m)
|
tts = gtts.gTTS(m)
|
||||||
tts.save("/tmp/temp.mp3")
|
tts.save("/tmp/temp.mp3")
|
||||||
subprocess.call(["mpv", "/tmp/temp.mp3"])
|
subprocess.call(["mpv", "/tmp/temp.mp3"])
|
||||||
|
|
Loading…
Reference in New Issue