Advertisement
Wiiplay123

Text To Speech for Fortnite

Feb 6th, 2018
2,184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Voice:=ComObjCreate("SAPI.SpVoice")
  2. Voice.Voice := Voice.GetVoices("Name=ScanSoft Tom_Full_22kHz").Item(0)
  3. CurrentVoice = ScanSoft Tom_Full_22kHz
  4. Return
  5. ::lennyface::( ͡° ͜ʖ ͡°)
  6. ::dfa::ಠ_ಠ
  7. #IfWinNotExist,Fortnite
  8. AppsKey::
  9. Input,comp3,I,{Enter}{Esc}
  10. if (ErrorLevel="EndKey:Enter") {
  11.     Voice.Speak(comp3)
  12. }
  13. Return
  14. #IfWinExist, Fortnite
  15. AppsKey::
  16. if (CurrentVoice="ScanSoft Tom_Full_22kHz") {
  17.     CurrentVoice = ScanSoft Daniel_Full_22kHz
  18.     CV = ScanSoft Daniel
  19. } else if (CurrentVoice="ScanSoft Daniel_Full_22kHz") {
  20.     CurrentVoice = eSpeak-EN
  21.     CV = eSpeak
  22. } else if (CurrentVoice="eSpeak-EN") {
  23.     CurrentVoice = Microsoft Anna
  24.     CV = Microsoft Anna
  25. } else if (CurrentVoice="Microsoft Anna") {
  26.     CurrentVoice = ScanSoft Tom_Full_22kHz
  27.     CV = ScanSoft Tom
  28. }
  29. Voice.Voice := Voice.GetVoices("Name=" . CurrentVoice).Item(0)
  30. Voice.Speak("Voice switched to " . CV)
  31. Return
  32. PgUp::
  33.     KeyWait, PgUp, T0.1
  34.     if (ErrorLevel)
  35.         Voice.Speak("There are enemies in front of me.") ;hold
  36.     else {
  37.         KeyWait, PgUp, D T0.1
  38.         if (ErrorLevel)
  39.             Voice.Speak("There are enemies nearby, proceed with caution.") ;single
  40.         else
  41.             Voice.Speak("There are enemies shooting from the direction I'm facing.") ;double
  42.     }
  43. Return
  44. PgDn::
  45.     Voice.Speak("I'm under attack, send help.")
  46. Return
  47. Numpad1::
  48.     KeyWait, Numpad1, T0.1
  49.     if (ErrorLevel)
  50.         Voice.Speak("Whats up my dudes.") ;hold
  51.     else {
  52.         KeyWait, Numpad1, D T0.1
  53.         if (ErrorLevel)
  54.             Voice.Speak("Hello, I use text to speech.") ;single
  55.         else
  56.             Voice.Speak("Hey guys") ;double
  57.     }
  58. Return
  59. Numpad2::
  60.     KeyWait, Numpad2, T0.1
  61.     if (ErrorLevel)
  62.         Voice.Speak("Head to my waypoint")
  63.     else {
  64.         KeyWait, Numpad2, D T0.1
  65.         if (ErrorLevel)
  66.             Voice.Speak("Where we headed?.")
  67.         else
  68.             Voice.Speak("Follow me.")
  69.     }
  70. Return
  71. Numpad3::
  72.     KeyWait, Numpad3, T0.1
  73.     if (ErrorLevel)
  74.         Voice.Speak("I died.")
  75.     else {
  76.         KeyWait, Numpad3, D T0.1
  77.         if (ErrorLevel)
  78.             Voice.Speak("I'm down, please revive me.")
  79.         else
  80.             Voice.Speak("I'm down and being shot at.")
  81.     }
  82. Return
  83. Numpad0::
  84.     Suspend, Permit
  85.     Suspend, On
  86.     comp := ""
  87.     plural = "no"
  88.     KeyWait, Numpad0, T0.1
  89.     if (ErrorLevel)
  90.         comp := "I need "
  91.     else {
  92.         KeyWait, Numpad0, D T0.1
  93.         if (ErrorLevel)
  94.             comp := "I just found "
  95.         else
  96.             comp := "I have "
  97.     }
  98.     Input,comp2,I L1 T5,{NumpadDot}{Numpad0}{Numpad1}{Numpad2}{Numpad3}{Numpad4}{Numpad5}{Numpad6}{Numpad7}{Numpad8}{Numpad9}{NumpadDiv}{NumpadMult}{NumpadSub}{NumpadEnter}
  99.     if (ErrorLevel="EndKey:NumpadEnter") {
  100.         Input,comp2,I L1 T5,{NumpadDot}{Numpad0}{Numpad1}{Numpad2}{Numpad3}{Numpad4}{Numpad5}{Numpad6}{Numpad7}{Numpad8}{Numpad9}{NumpadDiv}{NumpadMult}{NumpadSub}{NumpadEnter}
  101.         if (ErrorLevel="EndKey:Numpad7") {
  102.             comp := comp . "a "
  103.         } else if (ErrorLevel="EndKey:Numpad1") {
  104.             comp := comp . "a normal "
  105.         } else if (ErrorLevel="EndKey:Numpad2") {
  106.             comp := comp . "an uncommon "
  107.         } else if (ErrorLevel="EndKey:Numpad3") {
  108.             comp := comp . "a rare "
  109.         } else if (ErrorLevel="EndKey:Numpad4") {
  110.             comp := comp . "an epic "
  111.         } else if (ErrorLevel="EndKey:Numpad5") {
  112.             comp := comp . "a legendary "
  113.         } else if (ErrorLevel="EndKey:Numpad6") {
  114.             comp := comp . "multiple "
  115.             plural = "yes"
  116.         }
  117.         Input,comp2,I L1 T5,{NumpadDot}{Numpad0}{Numpad1}{Numpad2}{Numpad3}{Numpad4}{Numpad5}{Numpad6}{Numpad7}{Numpad8}{Numpad9}{NumpadDiv}{NumpadMult}{NumpadSub}{NumpadEnter}{NumpadAdd}
  118.         if (ErrorLevel="EndKey:Numpad1") {
  119.             comp := comp . "pistol "
  120.         } else if (ErrorLevel="EndKey:NumpadDiv") {
  121.             comp := comp . "smg "
  122.         } else if (ErrorLevel="EndKey:Numpad2") {
  123.             comp := comp . "revolver "
  124.         } else if (ErrorLevel="EndKey:Numpad3") {
  125.             comp := comp . "pump shotgun "
  126.         }   else if (ErrorLevel="EndKey:NumpadEnter") {
  127.             comp := comp . "tactical shotgun "
  128.         } else if (ErrorLevel="EndKey:Numpad4") {
  129.             comp := comp . "burst assault rifle "
  130.         } else if (ErrorLevel="EndKey:Numpad5") {
  131.             comp := comp . "assault rifle "
  132.         } else if (ErrorLevel="EndKey:Numpad6") {
  133.             comp := comp . "scoped assault rifle "
  134.         } else if (ErrorLevel="EndKey:Numpad7") {
  135.             comp := comp . "semi-auto sniper rifle "
  136.         } else if (ErrorLevel="EndKey:Numpad8") {
  137.             comp := comp . "bolt-action sniper rifle "
  138.         } else if (ErrorLevel="EndKey:Numpad9") {
  139.             comp := comp . "rocket launcher "
  140.         } else if (ErrorLevel="EndKey:NumpadAdd") {
  141.             comp := comp . "scoped assault rifle "
  142.         } else if (ErrorLevel="EndKey:NumpadMult") {
  143.             comp := comp . "smg "
  144.         } else if (ErrorLevel="EndKey:NumpadSub") {
  145.             comp := comp . "tactical smg "
  146.         }
  147.     } else if (ErrorLevel="EndKey:Numpad1") {
  148.         comp := comp . "a gun "
  149.     } else if (ErrorLevel="EndKey:Numpad4") {
  150.         comp := comp . "light ammo "
  151.     } else if (ErrorLevel="EndKey:Numpad5") {
  152.         comp := comp . "medium ammo "
  153.     } else if (ErrorLevel="EndKey:Numpad6") {
  154.         comp := comp . "heavy ammo "
  155.     } else if (ErrorLevel="EndKey:Numpad7") {
  156.         comp := comp . "rockets "
  157.     } else if (ErrorLevel="EndKey:Numpad8") {
  158.         comp := comp . "shotgun ammo "
  159.     } else if (ErrorLevel="EndKey:Numpad2") {
  160.         comp := comp . "small shields "
  161.         plural = "yes"
  162.     } else if (ErrorLevel="EndKey:Numpad3") {
  163.         comp := comp . "a shield potion "
  164.     } else if (ErrorLevel="EndKey:NumpadDiv") {
  165.         comp := comp . "bandages "
  166.         plural := "yes"
  167.     } else if (ErrorLevel="EndKey:NumpadMult") {
  168.         comp := comp . "a medkit "
  169.     } else {
  170.         Suspend, Off
  171.         return
  172.     }
  173.     Input,comp2,I L1 T0.3,{NumpadAdd}{NumpadEnter}
  174.     if (ErrorLevel="EndKey:NumpadAdd"){
  175.     comp := comp . " and I don't have room for "
  176.     if (plural = "yes") {
  177.         comp := comp . "them"
  178.     } else {
  179.         comp := comp . "it"
  180.     }
  181.     } else if (ErrorLevel="EndKey:NumpadEnter"){
  182.         comp := comp . ", does anyone need "
  183.         if (plural = "yes") {
  184.             comp := comp . "them"
  185.         } else {
  186.             comp := comp . "it"
  187.         }
  188.     }
  189.     Suspend, Off
  190.     Voice.Speak(comp)
  191. Return
  192. NumpadDot::
  193.    
  194. Return
  195. NumpadEnter::
  196.     Voice.Speak("I died.")
  197. Return
  198. NumpadAdd::
  199.     Voice.Speak("I knocked one")
  200. Return
  201. Numpad4::
  202.     KeyWait, Numpad4, T0.1
  203.     if (ErrorLevel)
  204.         Voice.Speak("The circle is closing in.")
  205.     else {
  206.         KeyWait, Numpad4, D T0.1
  207.         if (ErrorLevel)
  208.             Voice.Speak("We need to get inside the circle.")
  209.         else
  210.             Voice.Speak("We need to run right now from the storm my dudes it's closing in faster than mama gay luigi eating a spaghetti ravioli pizza pie my super mario pie zaanoes capeesh.")
  211.     }
  212. Return
  213. Numpad5::
  214.     Voice.Speak("I'm low on ammo.")
  215. Return
  216. Numpad6::
  217.     Voice.Speak("I need heavy ammo.")
  218. Return
  219. Numpad7::
  220.     Voice.Speak("I need rocket ammo.")
  221. Return
  222. Numpad8::
  223.     Voice.Speak("I need shotgun ammo.")
  224. Return
  225. Numpad9::
  226.     Voice.Speak("I need shields.")
  227. Return
  228. NumpadDiv::
  229.     KeyWait, NumpadDiv, T0.1
  230.     if (ErrorLevel)
  231.         Voice.Speak("Okay") ;hold
  232.     else {
  233.         KeyWait, NumpadDiv, D T0.1
  234.         if (ErrorLevel)
  235.             Voice.Speak("Yes") ;single
  236.         else
  237.             Voice.Speak("Yuh") ;double
  238.     }
  239. Return
  240. NumpadMult::
  241.     KeyWait, NumpadMult, T0.1
  242.     if (ErrorLevel)
  243.         Voice.Speak("Don't do it bro") ;hold
  244.     else {
  245.         KeyWait, NumpadMult, D T0.1
  246.         if (ErrorLevel)
  247.             Voice.Speak("No") ;single
  248.         else
  249.             Voice.Speak("Nah") ;double
  250.     }
  251. Return
  252. NumpadSub::
  253.     Voice.Speak("I couldn't understand what you said.")
  254. Return
  255. Home::
  256.     Voice.Speak("Thanks.")
  257. Return
  258. End::
  259.     Voice.Speak("You're welcome.")
  260. Return
  261. Insert::
  262.     Voice.Speak("I'm on my way.")
  263. Return
  264. Delete::
  265.     KeyWait, Delete, T0.1
  266.     if (ErrorLevel)
  267.         Voice.Speak("Nice!") ;hold
  268.     else {
  269.         KeyWait, Delete, D T0.1
  270.         if (ErrorLevel)
  271.             Voice.Speak("Nice one!") ;single
  272.         else
  273.             Voice.Speak("That was nicer than the time I rendered an entire five minute bad apple video protesting the removal of tickets from row blocks using blender and the cycles rendering engine, and the time that I quickscoped a guy when I only had a sniper, and the time that I made a macro about mama gay luigi spaghetti ravioli pizza pie.") ;double
  274.     }
  275. Return
  276. ScrollLock::
  277.     Voice.Speak("Hold my beer")
  278. Return
  279. Pause::
  280.     Voice.Speak("Sending it for the boys")
  281. Return
  282. #IfWinExist,Fortnite
  283. RWin::
  284. Voice.Speak(clipboard)
  285. \::
  286. Input,comp3,I,{Enter}{Esc}
  287. if (ErrorLevel="EndKey:Enter") {
  288.     Voice.Speak(comp3)
  289. }
  290. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement