Android Question TTS1 synthesize and mediaplayer

Giusy

Active Member
Licensed User
Hi,
in this routine
B4X:
Dim jo As JavaObject = TTS1
    jo.RunMethod("synthesizeToFile", Array(TESTO, Null, File.Combine(File.DirRootExternal, "file.wav")))

    If File.Exists(File.DirRootExternal, "file.wav") = True Then
       
        sp.load(File.DirRootExternal,"file.wav")  <-------- error

        sp.play
    End If

I have un error in line:

sp.load(File.DirRootExternal,"file.wav")

(sp is mediaplayer)

How to solve?
Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…