Search found 445 matches

by trevix
Mon Feb 17, 2020 9:52 pm
Forum: LiveCode Builder
Topic: LCB FFI "StringToNSString" not declared
Replies: 10
Views: 270

Re: LCB FFI "StringToNSString" not declared

Thanks. You are alway very helpful. I believe CBool will automatically be converted to Boolean It does not. But I solved problem 2, so it doesn't matter. I understand the "post" thing (not thanks to the terrible LCB dictionary). Problem is that my "OnDidFinishSpeaking" doesn't seem to be triggering....
by trevix
Sun Feb 16, 2020 6:44 pm
Forum: LiveCode Builder
Topic: LCB FFI "StringToNSString" not declared
Replies: 10
Views: 270

Re: LCB FFI "StringToNSString" not declared

Ok: I fixed point 2 like this:

Code: Select all

if Objc_NSSpeechSynthesizerStartSpeaking(mSynthesizer, StringToNSString(pString)) then
    return true
end if
by trevix
Sun Feb 16, 2020 6:15 pm
Forum: LiveCode Builder
Topic: LCB FFI "StringToNSString" not declared
Replies: 10
Views: 270

Re: LCB FFI "StringToNSString" not declared

In order to complete the example of OSX Text To Speech found in https://livecode.com/docs/9-5-0/extending-livecode/extending-livecode/ , I added, to the above LCB script the following (supposed to report when the speech has come to an end. It loads OK): --TEST THE END OF SPEECH foreign handler Objc_...
by trevix
Thu Feb 13, 2020 12:19 pm
Forum: LiveCode Builder
Topic: Text-to-speech TTS for iOS
Replies: 5
Views: 202

Re: Text-to-speech TTS for iOS

Welcome to "Via Crucis". First I guess we need someone to confirm some facts, that I report from various site (that will probably embarasse me with more experienced developers): AV Foundation is Apple’s advanced Objective-C framework for working with time-based media on OS X and iOS A software frame...
by trevix
Wed Feb 12, 2020 9:56 am
Forum: LiveCode Builder
Topic: Text-to-speech TTS for iOS
Replies: 5
Views: 202

Text-to-speech TTS for iOS

I am trying, with LCB FFI, to implement a simple Text To Speech on iOS standalone. As of yet, ripping some examples and with the help of Trevor DeVore, I have been able to make it work on OSX (LC 9.6.0 DP2, OSX 10.14.6). See my post: https://forums.livecode.com/viewtopic.php?p=187920#p187920 I guess...
by trevix
Tue Feb 11, 2020 7:30 pm
Forum: LiveCode Builder
Topic: LCB FFI "StringToNSString" not declared
Replies: 10
Views: 270

Re: LCB FFI "StringToNSString" not declared

Ok. Now it works (see below for anyone interested). Thankyou. How hard will it be for me to do the same for iOS? library community.livecode.trevix.myspeech use com.livecode.foreign use com.livecode.objc metadata version is "1.0.0" metadata author is "trevix" metadata title is "MySpeech" /** summary:...
by trevix
Tue Feb 11, 2020 6:52 pm
Forum: LiveCode Builder
Topic: LCB FFI "StringToNSString" not declared
Replies: 10
Views: 270

Re: LCB FFI "StringToNSString" not declared

Thankyou. Now I've this: error: Unsafe handler 'Objc_NSSpeechSynthesizerStartSpeaking' can only be called in unsafe context Objc_NSSpeechSynthesizerStartSpeaking(mSynthesizer, StringToNSString(pString)) library community.livecode.trevix.myspeech use com.livecode.foreign use com.livecode.objc metadat...
by trevix
Tue Feb 11, 2020 6:27 pm
Forum: LiveCode Builder
Topic: LCB FFI "StringToNSString" not declared
Replies: 10
Views: 270

LCB FFI "StringToNSString" not declared

LC 9.6.0 DP2, OSX 10.14.6 Hi all. While I know so little about LCB, I tried anyway to put to use the FFI example that I found here: https://livecode.com/docs/9-5-0/extending-livecode/extending-livecode/ about building a library that should do text to speech. So I put together what is below. My probl...
by trevix
Fri Feb 07, 2020 10:48 am
Forum: Android Deployment
Topic: Checking internet connection is blocking
Replies: 2
Views: 171

Re: Checking internet connection is blocking

Thanks for the help. I think I solved as you suggested, putting this in the stack script: local sConnectionTrue = false on OpenStack if the environment is "development" and there is a stack "revStandaloneProgress" and the mode of stack "revStandaloneProgress" > 0 then exit OpenStack end if breakpoin...
by trevix
Fri Feb 07, 2020 10:10 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: checking internet connection [Solved]
Replies: 4
Views: 855

Re: checking internet connection [Solved]

On Android this is locking the App up to 30 seconds...
by trevix
Fri Feb 07, 2020 12:09 am
Forum: Android Deployment
Topic: Checking internet connection is blocking
Replies: 2
Views: 171

Checking internet connection is blocking

LC 9.6.0 DP2 OSX 10.14.6 Android 7 Trying to find out in a standalone if there is an internet connection, I am doing this on a function: put url "http://www.google.com" into tURL if tUrl is empty then...no connection While it works fine on OSX and iOS, on Android it locks the script for up to 30 sec...
by trevix
Thu Feb 06, 2020 11:56 am
Forum: iOS Deployment
Topic: Analytics with Livecode.
Replies: 16
Views: 2400

Re: Analytics with Livecode.

While I still don't understand why some sort of App analytics is not a default in the Livecode world, I preferred to build my own solution instead of waiting for something that I think should already be there. I built a small klumsy (all of this should be in a hidden layer in my opinion) version of ...
by trevix
Sun Feb 02, 2020 3:18 pm
Forum: LiveCode Builder
Topic: Hello World not installing
Replies: 4
Views: 1010

Re: Hello World not installing

no. Why should I?
by trevix
Sat Jan 04, 2020 1:00 pm
Forum: iOS Deployment
Topic: Analytics with Livecode.
Replies: 16
Views: 2400

Re: Analytics with Livecode.

I don't develop web App. My most recent effort is a remote controlled sport scoring system; a simple LC standalone for iOS and Android. For that I needed TextToSpeech, implement an already written C++ external library, have a user experience "analytics" to get feed back on its use. None of which I h...

Go to advanced search