Search found 447 matches

by trevix
Wed Feb 19, 2020 1:04 am
Forum: LiveCode Builder
Topic: Text-to-speech TTS for iOS
Replies: 17
Views: 571

Re: Text-to-speech TTS for iOS

Thaaanks so much, Simon. You are great. I took the liberty to add some comments for the LC dictionary and to return the voice language identifier together with the voice name, so we know better why the speaker (mostly women...?) sometime is so bad. Here is it with my additions: /** Speak aloud some ...
by trevix
Tue Feb 18, 2020 11:10 am
Forum: LiveCode Builder
Topic: Text-to-speech TTS for iOS
Replies: 17
Views: 571

Re: Text-to-speech TTS for iOS

Hello. Trying to implement the choice of voice for this iOS TTS, I am still struggling understanding how to go from Objc examples (found on the net) to LCB implementation. Like here: https://useyourloaf.com/blog/synthesized-speech-from-text/ where I read: The following code snippet would, for exampl...
by trevix
Mon Feb 17, 2020 9:52 pm
Forum: LiveCode Builder
Topic: LCB FFI "StringToNSString" not declared
Replies: 10
Views: 320

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: 320

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: 320

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: 17
Views: 571

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: 17
Views: 571

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: 320

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: 320

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: 320

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: 193

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: 864

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: 193

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: 2412

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 ...

Go to advanced search