text to speech - Google "Listen" button API code -


in google translate can find "listen" button converts text speech. want able use button in own site can't find code in google translate api. want able listen whatever write in simple input field or text area. thank you!

what language using?

this example in vb:

dim sapi object

sapi = createobject("sapi.spvoice")

sapi.speak("enter text here")

now, depending on os user has, different narrators speak. if using xp sam(default) speak. , think user can change different narrator. in windows 7, woman narrator, , can't changed. don't know vista though.

hope helps.


Comments

Popular posts from this blog

Python __call__ special method practical example -

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -