speechSpeakUtterance error on Android

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 950
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

speechSpeakUtterance error on Android

Post by trevix » Tue Apr 20, 2021 4:32 pm

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"
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

trevix
Posts: 950
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: speechSpeakUtterance error on Android

Post by trevix » Fri Apr 23, 2021 8:57 am

Anyone have a suggestion?
Thanks
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7210
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: speechSpeakUtterance error on Android

Post by jacque » Fri Apr 23, 2021 5:55 pm

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
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Android Deployment”