Skip to content

Commit

Permalink
Make TextInputEngine.speak() print text instead of raising an error
Browse files Browse the repository at this point in the history
  • Loading branch information
drmfinlay committed Dec 27, 2018
1 parent 78e8093 commit 07f8341
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dragonfly/engines/backend_text/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@ def mimic(self, words):
% (words,))

def speak(self, text):
raise NotImplementedError("text-to-speech is not implemented for "
"this engine")
self._log.warning("text-to-speech is not implemented for this "
"engine.")
self._log.warning("Printing text instead.")
print(text)

@property
def language(self):
Expand Down

0 comments on commit 07f8341

Please sign in to comment.