Do NOT use ChatGPT to write code. Full Stop. The explanation relies on a subtle distinction found in the nexus of mathematics, linguistic, and computer science, between the concept of syntactical well-formed statements, versus provable statements. For example the statement “This statement is false.” is syntactically well-formed, but is not provable. It cannot be assessed for truthfulness.
ChatGPT produces nearly syntactically well-formed statements using approximate stochastic production rules of a context free grammar. However, ChatGPT, or any other system built on computers, can emphatically NOT evaluate the truthfulness of the statements, nor have any guarantees of generating truthful statements. The argument proceeds by evaluating increasingly specific tests of truth:
All programming, including that which went into developing and running ChatGTP, is done in formal computer languages which are “context free grammars”.
The meaning of the phrase “context free grammar”, is that the process is abstracted away from tests of truthfulness against reality. Specifically, computers do not have a means of actively engaging in the observation of reality.
Clearly, because ChatGPT runs on computers it cannot test for the truthfulness of it’s statements against reality. So that level of generality is a no go.
So, we can try restricting this statement down to just asking ChatGPT, or any other program, to only generate mathematically truthful statements in some reasonable axioms of mathematics. However that was proven impossible, in the 1930s, in Gödel’s IncompletenessTheorems.
Finally, we can try asking it to at most produce computer programs that are at least guaranteed to halt, and it turns out that is impossible as well, as was proven by Turing also in the 1930s, in his Halting Problem.
The meta-problem that we are faced with is that the data science industry has produced droves of brain dead and ignorant PhD researchers who have replaced actual wisdom and knowledge with cleverness and technical sophistry. Data science education focuses entirely on algorithms with utterly no reference to critical foundational theoretical work, nearly a century old now, that deeply disproves the idea that computer programs can form any sort of artificial intelligence, in the sense of assessing for truth against reality.
I didn’t mean it poorly, I just meant that they shouldn’t rely on copy pasted code to tackle the issue, and that if they had a more specific question, I could try answering as best I can
@pachocastillosr : Thanks for your previous steps. I followed and it brought me this far where i also got stuck. Spent the last 2 days trying some workarounds and it finally worked.:
were you ever able to figure this out for audio? I’ve been trying for waaaay too long and still can’t figure it out.
@redvivi are you able to help me out here? I’m really struggling.
@fracs500 have you tested out your method with an audio file? I tried it, but for some reason I couldn’t get it to work for me, either.
Thanks for all the help here, everyone - I really want to be able to save these .ogg files and it’s just one of those things that’s a million times harder to do in Bubble than with other tools like Python, etc.
For audio it is necessary to follow the image above as well, just retrieve the “id” of the message, after this step continue with the download image.
You will receive the audio in ogg format in return.
Any questions put here so I can help you.
Thanks for the reply! The issue I’m having is that when I use the audio id and get the url for the media download and use it in a GET request API call, it doesn’t save the actual .ogg file since it doesn’t seem to like whatever the API is returning. It also won’t preview it properly when I initialize it in the API Connector.
Also, using the API call to get the media and saving it directly into a file field in my database like in the last example that @fracs500 showed us did actually save a file, but it’s not the actual audio file (that seems to be in Base64 when I open it in Postman, which works fine). It seems to be downloading the link to the media as a file and not the file itself.
I was going to attempt to make a javascript call inside of a plugin to see if that might work, bit ideally I don’t have to. If you have an example specifically for saving the audio that would be amazing. I’m not at my laptop now, but I can also send screenshots if what I’m seeing, but it’s basically the same issues that @pachocastillosr was running into.
Awesome! I’ll check here in the next hour. In your example, is the API only sending back a binary file and I see that you’re able to save it as an .mp3? Is that supported along with the .ogg audio format?
Also, one more request if possible - can I please see a screenshot of your media download API call in Step 3 of your workforce?