Permalink
Browse files

Use a better identifier for the source when writing to applog from sp…

…eak plugin.
  • Loading branch information...
lovett committed Jan 11, 2019
1 parent fa71f1e commit b026f15501d511c589ab42b6385ab27bb5203cd6
Showing with 8 additions and 6 deletions.
  1. +8 −6 plugins/speak.py
@@ -258,7 +258,7 @@ def speak(self, statement, locale="en-GB", gender="Male"):
config = {}
cherrypy.engine.publish(
"applog:add",
"speechmanager",
"speak",
"config",
"Missing azure_key"
)
@@ -267,7 +267,7 @@ def speak(self, statement, locale="en-GB", gender="Male"):
config = {}
cherrypy.engine.publish(
"applog:add",
"speechmanager",
"speak",
"config",
"Missing synthesize_url"
)
@@ -276,7 +276,7 @@ def speak(self, statement, locale="en-GB", gender="Male"):
config = {}
cherrypy.engine.publish(
"applog:add",
"speechmanager",
"speak",
"config",
"Missing token_request_url"
)
@@ -314,7 +314,7 @@ def speak(self, statement, locale="en-GB", gender="Male"):

cherrypy.engine.publish(
"applog:add",
"speechmanager",
"speak",
"ssml",
ssml_string
)
@@ -394,7 +394,8 @@ def prune(self, max_days=45):
)
)

def mute(self):
@staticmethod
def mute():
"""Disable text-to-speech by creating a 24-hour muting
schedule.
@@ -407,7 +408,8 @@ def mute(self):
False
)

def unmute(self):
@staticmethod
def unmute():
"""Re-enable text-to-speech."""

cherrypy.engine.publish(

0 comments on commit b026f15

Please sign in to comment.