Page 1 of 1

speechSpeakUtterance error on Android

Posted: Tue Apr 20, 2021 4:32 pm
by trevix
I received this error, from a Android 10 (Lenovo TB-X306F).
Line 129 is this (pSound should be a text but who knows...)

Code: Select all

129    speechSpeakUtterance pSound
Is there any way to understand what happened? Should I always put a "Try...end Try" in any speechSpeakUtterance?(I have a lot of them)

The error:
863,129,1,runtime
864,129,1,Value is not of correct type for passing as argument - expected type <type: com.livecode.java.JavaObject> for passing to parameter pSet of com.livecode.library.native.speech._SetToList
865,129,1,speech.lcb
866,129,1,717
897,129,1,1
865,129,1,speech.lcb
866,129,1,600
897,129,1,1
573,129,1,speechSpeakUtterance
587,129,1
253,129,1
241,100,1,SOUNDplayTunnel
353,0,0,stack "lib_VoiceAndSound" of stack "/data/app/com.xxx.xx.xxxxxxx-i14HUApyR-YnrWU4izo1NQ==/base.apk/mainstack"

Re: speechSpeakUtterance error on Android

Posted: Fri Apr 23, 2021 8:57 am
by trevix
Anyone have a suggestion?
Thanks

Re: speechSpeakUtterance error on Android

Posted: Fri Apr 23, 2021 5:55 pm
by jacque
I haven't worked much with speech on Android but the error seems to indicate that the value of pSound is wrong. Is it plain text?

I did once try a simple test and passed a field as the parameter and it worked:

Code: Select all

speechSpeakUtterance fld 1