main.py 687 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from DynLoader import DynLoaderMod as dyn
  4. from VoicePlay import Voice as speach
  5. from Stats import Stats
  6. from Jessi import Text as textauswahl
  7. if __name__ == "__main__":
  8. print("Start application")
  9. print("Init Mods")
  10. mod = dyn("mods/", "on")
  11. print("Init Stats")
  12. stats:Stats = Stats.getInstance()
  13. print("Init Speech")
  14. speach.getInstance().Say(".")
  15. mod.execute("PlaySound", "welcome.wav", False)
  16. mod.execute("PlaySound", "welcome.mp3", False)
  17. print("Sound playing...")
  18. joke = textauswahl.getInstance().executeText("test",["joke","kurzwitz"])
  19. print(joke)
  20. speach.getInstance().Say(joke)