SHARE
TWEET

Untitled

a guest May 12th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function url_encode(str)
  2.   if (str) then
  3.     str = string.gsub (str, "\n", "\r\n")
  4.     str = string.gsub (str, "([^%w %-%_%.%~])",
  5.         function (c) return string.format ("%%%02X", string.byte(c)) end)
  6.     str = string.gsub (str, " ", "+")
  7.   end
  8.   return str   
  9. end
  10.  
  11. local text = url_encode("Dziękuję")
  12. playSound("http://translate.google.com/translate_tts?tl=pl&q=".. text .."&client=tw-ob")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top