Skip to content

Instantly share code, notes, and snippets.

@fixator10
Last active August 11, 2021 19:08
Show Gist options
  • Save fixator10/a2fc0f8a5a4fcef8ff6e4d5e2998dad0 to your computer and use it in GitHub Desktop.
Save fixator10/a2fc0f8a5a4fcef8ff6e4d5e2998dad0 to your computer and use it in GitHub Desktop.
[GMod][Expression2][E2power]
@name Google Chat To Voice by Fixator10
##User-Variables|Config##
Lang="en-us" #Language like a "en-us"
IE="utf-8" #Encoding - Standart "UTF-8"
V=100 #Volume
#########################
O=owner()
E=entity()
LS=O:lastSaid()
runOnChat(1)
#hideChat(1) # Remove "#" at begin of the line to hide your input
soundURLpause(1)
soundURLload(1,"http://translate.google.com/translate_tts?ie="+IE+"&q="+LS+"&tl="+Lang+"&client=tw-ob",V,0,O)
# May not work since some time. Google requires captcha to use this, so...
# So i use "tw-ob" client to do this. I doesn't know how this is working, but sometimes it can fails
@name Google Chat To Voice by Fixator10
Lang="ru"
V=1000 #Volume
O=owner()
E=entity()
LS=O:lastSaid()
Name = O:name()
runOnChat(1)
runOnHTTP(1)
chatClk(owner())
soundURLpause("1")
httpRequest("http://cc.suka.lol/"+"http://translate.google.com/translate_tts?ie=utf8&q="+httpUrlEncode(LS)+"&tl="+Lang+"&client=tw-ob")
if (httpClk()){
soundURLload("1",httpData(),V,0,O)
}
@palisan
Copy link

palisan commented Jun 27, 2017

o hai

that thing isn't fixed by me, it just uses my link shortener.
anyway url has changed from http://palisan.suka.nu/cc/*link* to http://cc.suka.lol/*link* so you need to edit this. %)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment