Skip to content

Commit

Permalink
Use a better identifier for the source when writing to applog from sp…
Browse files Browse the repository at this point in the history
…eak plugin.
  • Loading branch information
lovett committed Jan 11, 2019
1 parent fa71f1e commit b026f15
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions plugins/speak.py
Expand Up @@ -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"
)
Expand All @@ -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"
)
Expand All @@ -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"
)
Expand Down Expand Up @@ -314,7 +314,7 @@ def speak(self, statement, locale="en-GB", gender="Male"):

cherrypy.engine.publish(
"applog:add",
"speechmanager",
"speak",
"ssml",
ssml_string
)
Expand Down Expand Up @@ -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.
Expand All @@ -407,7 +408,8 @@ def mute(self):
False
)

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

cherrypy.engine.publish(
Expand Down

0 comments on commit b026f15

Please sign in to comment.