| 12345678910111213141516171819202122232425262728 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- from DynLoader import DynLoaderMod as dyn
- from VoicePlay import Voice as speach
- from Stats import Stats
- from Jessi import Text as textauswahl
- if __name__ == "__main__":
- print("Start application")
- print("Init Mods")
- mod = dyn("mods/", "on")
- print("Init Stats")
- stats:Stats = Stats.getInstance()
- print("Init Speech")
- speach.getInstance().Say(".")
- mod.execute("PlaySound", "welcome.wav", False)
- mod.execute("PlaySound", "welcome.mp3", False)
- print("Sound playing...")
- joke = textauswahl.getInstance().executeText("test",["joke","kurzwitz"])
- print(joke)
- speach.getInstance().Say(joke)
|