Search found 38 matches

by joseggarza
Mon Oct 09, 2023 10:49 pm
Forum: Off-Topic
Topic: OpenAI Chat API Sample
Replies: 16
Views: 24906

Re: OpenAI Chat API Sample

Thank you, Bernd.

I've incorporated your code and added an additional command to allow for sequential calculations. For example, you can first ask it to add 2 plus 2, and in the following query, instruct it to multiply the previous result by 4, and so forth.

It's quite a nice Script!"

JG
by joseggarza
Sat Oct 07, 2023 10:21 pm
Forum: Off-Topic
Topic: OpenAI Chat API Sample
Replies: 16
Views: 24906

Re: OpenAI Chat API Sample

Hola Klaus, Oh, what a surprise... :D :D :D . I had such high hopes for finding a magical solution to the never-ending struggles I face when dealing with strings in Livecode Scripts. And I emphasize "Scripts" because I can paste those cryptic lines into a property of an object and somehow make it wo...
by joseggarza
Sat Oct 07, 2023 4:52 pm
Forum: Off-Topic
Topic: OpenAI Chat API Sample
Replies: 16
Views: 24906

Re: OpenAI Chat API Sample

Hi Klaus, The following is the string to pass back to the API: { "model": "gpt-3.5-turbo", "messages": [ { "role": "user", "content": "What is Livecode?" } ], "temperature": 1, "max_tokens": 256, "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0 } using your function function q tString retur...
by joseggarza
Fri Oct 06, 2023 10:54 pm
Forum: Off-Topic
Topic: OpenAI Chat API Sample
Replies: 16
Views: 24906

Re: OpenAI Chat API Sample

Hi Craig,

I think you just need to enter your own OPENAI KEY replacing the XXXXXX
put "XXXXXXXXXXXXXXXXXXXXXX" into tKey

Regards,
JG
by joseggarza
Fri Oct 06, 2023 8:19 pm
Forum: Off-Topic
Topic: OpenAI Chat API Sample
Replies: 16
Views: 24906

OpenAI Chat API Sample

ChatGPT from OpenAi is a HOT Topic now at days and I know people are looking for ways interact with OpenAI using Livecode. The following code will help you to get started on your development and to get more ideas. If somebody else has already a library to do this better, please share it here.. on mo...
by joseggarza
Fri Sep 29, 2023 3:20 pm
Forum: iOS Deployment
Topic: How to show controls on top of Camera object
Replies: 3
Views: 4587

Re: How to show controls on top of Camera object

Hello Jacque, I hope you're doing well, and thank you for your response. Yes, that is precisely what I did. However, the camera display maintains its aspect ratio, and when I slightly reduce its size to accommodate the buttons at the bottom, the camera display shrinks its sides to maintain the ratio...
by joseggarza
Wed Sep 27, 2023 6:50 pm
Forum: iOS Deployment
Topic: How to show controls on top of Camera object
Replies: 3
Views: 4587

How to show controls on top of Camera object

Hi, I need some of your wisdom here. I am playing with the camera using IOS, here is the code: cameraControlCreate "myCamera" cameraControlSet "myCamera", "rect", the screenRect cameraControlSet "myCamera", "videoDevice", "default" cameraControlSet "myCamera", "focusMode", "continuous" cameraControl...
by joseggarza
Wed Jul 12, 2023 9:35 pm
Forum: Android Deployment
Topic: Speech to Text function?
Replies: 2
Views: 3106

Re: Speech to Text function?

Hi golife, That is exactly what I was looking for , but I don't know how to use an IOS capability if is not available in LC. I know there are some really good JAVA developer who can make the JNI and make the connection to the OS, but this is not the case, So, What I did is to save the the voice to a...
by joseggarza
Mon Jun 19, 2023 9:15 pm
Forum: Android Deployment
Topic: how to stop speechSpeakUtterance handler
Replies: 4
Views: 6767

Re: how to stop speechSpeakUtterance handler

I found one solution. I dont know if that is the best solution, but it works. I had to Finalize the library and initialize it again.

Code: Select all

on mouseUp pButtonNumber
    speechFinalizeLibrary
    speechInitializeLibrary
end mouseUp
by joseggarza
Mon Jun 19, 2023 8:42 pm
Forum: Android Deployment
Topic: how to stop speechSpeakUtterance handler
Replies: 4
Views: 6767

Re: how to stop speechSpeakUtterance handler

SparkOut wrote:
Mon Jun 19, 2023 7:18 pm
I think that is different to the new (since v 9.6) library for Mac OS, iOS and Android.

A snippet I found from jacque shows you should be able to do this by

Code: Select all

speechSpeakUtterance(empty)
I already tried that, but it did not work, it adds to a queue to speak instead..

JG
by joseggarza
Mon Jun 19, 2023 6:02 pm
Forum: Android Deployment
Topic: how to stop speechSpeakUtterance handler
Replies: 4
Views: 6767

how to stop speechSpeakUtterance handler

Does anyone know how to stop the speechSpeakUtterance handler process?

When I send a fairly long paragraph, I would like to be able to end it at any desired moment and not have to wait until it finishes speaking it in its entirety.

JG
by joseggarza
Thu May 25, 2023 11:12 pm
Forum: Announcements
Topic: Announcing Xavvi, a Great Leap Forward for App Building
Replies: 160
Views: 694530

Re: Announcing Xavvi, a Great Leap Forward for App Building

Hi dear friends... I would like to share this reflection from a student of mine whom I teach LiveCode. He is 13 years old and very intelligent (a genius! :D ) and sometimes comes to this forum as a guest to understand the language better and to experiment. Yesterday, he saw that there is persistent...
by joseggarza
Thu May 25, 2023 10:43 pm
Forum: Android Deployment
Topic: Speech to Text function?
Replies: 2
Views: 3106

Speech to Text function?

Hi there, Due to the AI boom, there is a growing preference for interacting with AI through voice rather than typing. This capability is already available in Android and iOS platforms. However, I'm unsure if Livecode has plans to implement Speech-to-Text functionality in the future. Is there any inf...
by joseggarza
Wed Dec 21, 2022 6:00 pm
Forum: Off-Topic
Topic: Dangerous Message !!
Replies: 26
Views: 13905

Dangerous Message !!

I was checking on the latest livecode version to download and I got a this chrome dangerous warning.

Image

any ideas why?

JG
by joseggarza
Fri Nov 04, 2022 6:16 pm
Forum: Internet
Topic: Future HTML5 and mail
Replies: 11
Views: 11220

Re: Future HTML5 and mail

:D

No... That was just random numbers for hacker to play with .... jajajaja.

The real key is a secret....

that's way I love this community .... all members are of big help and really on top of all posts.


cheers,

JG

Go to advanced search