Neurone.py 348 B

12345678910111213
  1. import importlib
  2. class Neurone:
  3. def __init__(self):
  4. # Here we load the stt and tts from settings
  5. self.stt = "snowboy"
  6. self.tts = "pico2wave"
  7. def say(self, message):
  8. # here we use the tts to make jarvis talk
  9. tts_backend = importlib.import_module("tts." + self.tts)
  10. tts_backend.say(message)