__init__.py 545 B

1234567891011121314151617181920212223242526272829303132
  1. import logging
  2. import audio_output
  3. import console
  4. SERVICES = [
  5. audio_output.AudioOutput(),
  6. console.Console(),
  7. ]
  8. def success():
  9. for service in SERVICES:
  10. service.success()
  11. def failure(s=None):
  12. for service in SERVICES:
  13. service.failure(s)
  14. def cancelled():
  15. for service in SERVICES:
  16. service.cancelled()
  17. def tts(s):
  18. for service in SERVICES:
  19. service.tts(s)
  20. def text(s):
  21. for service in SERVICES:
  22. service.text(s)
  23. def debug(s):
  24. for service in SERVICES:
  25. service.debug(s)