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
Search found 38 matches
- Mon Oct 09, 2023 10:49 pm
- Forum: Off-Topic
- Topic: OpenAI Chat API Sample
- Replies: 16
- Views: 25325
- Sat Oct 07, 2023 10:21 pm
- Forum: Off-Topic
- Topic: OpenAI Chat API Sample
- Replies: 16
- Views: 25325
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...
- Sat Oct 07, 2023 4:52 pm
- Forum: Off-Topic
- Topic: OpenAI Chat API Sample
- Replies: 16
- Views: 25325
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...
- Fri Oct 06, 2023 10:54 pm
- Forum: Off-Topic
- Topic: OpenAI Chat API Sample
- Replies: 16
- Views: 25325
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
I think you just need to enter your own OPENAI KEY replacing the XXXXXX
put "XXXXXXXXXXXXXXXXXXXXXX" into tKey
Regards,
JG
- Fri Oct 06, 2023 8:19 pm
- Forum: Off-Topic
- Topic: OpenAI Chat API Sample
- Replies: 16
- Views: 25325
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...
- Fri Sep 29, 2023 3:20 pm
- Forum: iOS Deployment
- Topic: How to show controls on top of Camera object
- Replies: 3
- Views: 4746
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...
- Wed Sep 27, 2023 6:50 pm
- Forum: iOS Deployment
- Topic: How to show controls on top of Camera object
- Replies: 3
- Views: 4746
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...
- Wed Jul 12, 2023 9:35 pm
- Forum: Android Deployment
- Topic: Speech to Text function?
- Replies: 2
- Views: 3163
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...
- Mon Jun 19, 2023 9:15 pm
- Forum: Android Deployment
- Topic: how to stop speechSpeakUtterance handler
- Replies: 4
- Views: 7063
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
- Mon Jun 19, 2023 8:42 pm
- Forum: Android Deployment
- Topic: how to stop speechSpeakUtterance handler
- Replies: 4
- Views: 7063
Re: how to stop speechSpeakUtterance handler
I already tried that, but it did not work, it adds to a queue to speak instead..SparkOut wrote: ↑Mon Jun 19, 2023 7:18 pmI 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 byCode: Select all
speechSpeakUtterance(empty)
JG
- Mon Jun 19, 2023 6:02 pm
- Forum: Android Deployment
- Topic: how to stop speechSpeakUtterance handler
- Replies: 4
- Views: 7063
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
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
- Thu May 25, 2023 11:12 pm
- Forum: Announcements
- Topic: Announcing Xavvi, a Great Leap Forward for App Building
- Replies: 160
- Views: 708832
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...
- Thu May 25, 2023 10:43 pm
- Forum: Android Deployment
- Topic: Speech to Text function?
- Replies: 2
- Views: 3163
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...
- Wed Dec 21, 2022 6:00 pm
- Forum: Off-Topic
- Topic: Dangerous Message !!
- Replies: 26
- Views: 14168
Dangerous Message !!
I was checking on the latest livecode version to download and I got a this chrome dangerous warning.
any ideas why?
JG
any ideas why?
JG
- Fri Nov 04, 2022 6:16 pm
- Forum: Internet
- Topic: Future HTML5 and mail
- Replies: 11
- Views: 11301
Re: Future HTML5 and mail
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