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
 

DonManfred

Expert
Licensed User
Longtime User
Which error? Hiding it is of no help for us to help you.
 
Upvote 0
Top