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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -