text to speech does not work on android
Posted: 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
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