google text to speech

Started on the old forum in December 2013 · view the original in the archive · old links redirect here

6 replies · 771 views · started 12 years ago · 1 min read

4 participants
pmbguy Senior · 344 posts #1

http://wapimages.tk/gina.mp3 hi all, just been messing around with codes n such as always, n was reading about google's text to speech service they are running...

anyways, it limits you to 100 characters, but with some simple php you can break text up n join mp3 files...

demo: WapImages TTS

directions: 1.create directory on server 2.extract files from archive n upload to directory 3.enter the url to directory n enjoy it...

oh, n google has a whole list of language codes, etc... I would have put them all in the list, but tts not supported for a lot, so i just picked the first couple i tried that worked, i'll post a link, or copy paste the list of codes here a bit later...

Attachments: tts_google.zip
pmbguy Senior · 344 posts #3

glad you like it my friend...

as promised, here's the country/language codes link, it's kinda long so posting a link, not the list...

https://sites.google.com/site/tomihasa/google-language-codes

Added after 8 minutes:

a few cool language codes i spotted, since i know some of you won't read the list,

hl=xx-hacker (hacker google) hl=xx-klingon (klingon google) hl=xx-elmer (elmer fudd google)

mobidev Senior · 312 posts #4

Attention all trekkies calling mr Warf for klingon interpretation.

Added after 19 minutes:

Hahaha had so much fun swearing in English accent Afrikaans swear words hahaha. Thx for the download link now can generat your own personal message tones.

pmbguy Senior · 344 posts #5

add readpm button to your lava site, etc

yeah man, i been enjoying hearing how things actually sound in russian, etc too... I was suprised to see the afrikaans tts was setup, i wonder who coded that... (must be some afrikaans guys coding for google)

sounds like old microsoft sam in afrikaans, lol

Added after 47 minutes:

add a readtext button on your pm's etc... easy as copy n pasde, n set the $words variable to $pmtext or whatever...

$words = $set_ur_variable_here 

//set up the correct variable for what is echoed, $pmtext for example... 
//you might need to change some characters to get it to read correctly...
//also, please refer to above script if you want it to read in a different language, like russian, etc and adjust tl variable below...
echo "<form action='http://gtalk2me.tk' method='POST'>
  <input type='hidden' name='tl' value='en'>
  <input name='words' value='$words' type='hidden'>
  <input type='submit' value='Speak It'>
</form><br>";
something else Fellow · 2,296 posts #6

i really like this script 😀 - although i wont be using it now, it may come in handy in the future 🙂

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close