text to speech does not work on android

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
sunkim
Posts: 23
Joined: Tue May 05, 2015 8:30 pm

text to speech does not work on android

Post by sunkim » Sat Aug 22, 2015 8:06 am

hi everyone!
thanks everyone, especially thanks joe,
this script run well on android but doesn't work from someday on android, I don't know why,
anybody please help me

Code: Select all

on mouseUp
   if the environment is "mobile" then
   set the defaultFolder to specialFolderPath("Documents")
 put the word 1 of field "disadjective" into tpostsound
replace space with "%20" in tpostsound
put "http://translate.google.com/translate_tts?tl=en&q=" & tpostsound into tpostURL
get URL(tpostURL)
put it into URL ("binfile:abc.mp3")
       put specialFolderPath("Documents") & "/abc.mp3" into abcPath
        mobilePlaySoundOnChannel abcPath, "current", "now"
 end if
end mouseUp

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: text to speech does not work on android

Post by Simon » Sat Aug 22, 2015 9:21 pm

Hi sunkim,
I'm seeing that Google has implemented an abuse protection system (CAPTCHA).
Adding a client seems to work

Code: Select all

put "http://translate.google.com/translate_tts?tl=en&q=" & tpostsound & "client=t" into tpostURL
But who knows for how long?
They do have a pay for service which would be more stable.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

sunkim
Posts: 23
Joined: Tue May 05, 2015 8:30 pm

Re: text to speech does not work on android

Post by sunkim » Sun Aug 23, 2015 9:22 am

thanks simon
it doesn't work too
I am dreaming livecode's upgrade powerful

Post Reply