Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » copilot said the text to speech extension can run javascript
- The_Insane_Creator
- Scratcher
500+ posts
copilot said the text to speech extension can run javascript
Here's what Copilot said (not a actual user on scratch, just a bot)
==============
You will need to write a custom JavaScript function to decode the Base64 string. This can be done using the “Text to Speech” extension’s ability to run JavaScript code.
Run the JavaScript Code:
Use the “Text to Speech” extension to run the following JavaScript code:
JavaScript
function decodeBase64(base64) {
var binaryString = window.atob(base64);
var len = binaryString.length;
var bytes = new Uint8Array(len);
for (var i = 0; i < len; i++) {
bytes(i) = binaryString.charCodeAt(i);
}
var blob = new Blob(, { type: ‘image/png’ });
var url = URL.createObjectURL(blob);
return url;
}
==============
Is this true?
Or is copilot saying completely random nonsense?
Let me know down in the replies.
==============
You will need to write a custom JavaScript function to decode the Base64 string. This can be done using the “Text to Speech” extension’s ability to run JavaScript code.
Run the JavaScript Code:
Use the “Text to Speech” extension to run the following JavaScript code:
JavaScript
function decodeBase64(base64) {
var binaryString = window.atob(base64);
var len = binaryString.length;
var bytes = new Uint8Array(len);
for (var i = 0; i < len; i++) {
bytes(i) = binaryString.charCodeAt(i);
}
var blob = new Blob(, { type: ‘image/png’ });
var url = URL.createObjectURL(blob);
return url;
}
==============
Is this true?
Or is copilot saying completely random nonsense?
Let me know down in the replies.
- 8to16
- Scratcher
1000+ posts
copilot said the text to speech extension can run javascript
tried it, it doesn't work. don't trust ai it knows nothing about scratch
- The_Insane_Creator
- Scratcher
500+ posts
copilot said the text to speech extension can run javascript
i tried asking it for scratchblocks code and it instead said “blah blah blah blah” with 50000 words tried it, it doesn't work. don't trust ai it knows nothing about scratch
- oxiti8
- Scratcher
1000+ posts
copilot said the text to speech extension can run javascript
- copilot
- anything scratch related
yeah no
- anything scratch related
yeah no
- Mryellowdoggy
- Scratcher
500+ posts
copilot said the text to speech extension can run javascript
what
- The_Insane_Creator
- Scratcher
500+ posts
copilot said the text to speech extension can run javascript
what what
- DifferentDance8
- Scratcher
1000+ posts
copilot said the text to speech extension can run javascript
If it was possible to run arbitrary JavaScript using only the text to speech extension, I would imagine there would be a lot more cases of people's accounts getting hacked
- ideapad-320
- Scratcher
1000+ posts
copilot said the text to speech extension can run javascript
Lots of AIs thing there are 2 rs in Strawberry.
- BigNate469
- Scratcher
1000+ posts
copilot said the text to speech extension can run javascript
At least it's not a thing with every AI model out there
No, the Text to Speech extension in Scratch cannot directly run JavaScript code.
The primary purpose of this extension is to provide a simple interface for converting text into spoken words. While it uses JavaScript internally to interact with the browser's speech synthesis capabilities, it doesn't allow you to write custom JavaScript code within the Scratch project.
If you're looking to add more complex functionality to your Scratch project, you might consider using other extensions or exploring programming languages like Python or JavaScript directly.
- MineTurte
- Scratcher
500+ posts
copilot said the text to speech extension can run javascript
Gemini says I can eat metal and it's healthy for me. We all know chatgpt-4o is best At least it's not a thing with every AI model out thereNo, the Text to Speech extension in Scratch cannot directly run JavaScript code.
The primary purpose of this extension is to provide a simple interface for converting text into spoken words. While it uses JavaScript internally to interact with the browser's speech synthesis capabilities, it doesn't allow you to write custom JavaScript code within the Scratch project.
If you're looking to add more complex functionality to your Scratch project, you might consider using other extensions or exploring programming languages like Python or JavaScript directly.
Last edited by MineTurte (Oct. 10, 2024 16:14:56)
- The_Insane_Creator
- Scratcher
500+ posts
copilot said the text to speech extension can run javascript
what do you mean, metal has calcium which makes your bones stronger, so that means it's healthyGemini says I can eat metal and it's healthy for me. We all know chatgpt-4o is best At least it's not a thing with every AI model out thereNo, the Text to Speech extension in Scratch cannot directly run JavaScript code.
The primary purpose of this extension is to provide a simple interface for converting text into spoken words. While it uses JavaScript internally to interact with the browser's speech synthesis capabilities, it doesn't allow you to write custom JavaScript code within the Scratch project.
If you're looking to add more complex functionality to your Scratch project, you might consider using other extensions or exploring programming languages like Python or JavaScript directly.
- MineTurte
- Scratcher
500+ posts
copilot said the text to speech extension can run javascript
Word to word gemini said: “…metal pipes have many health benefits…” what do you mean, metal has calcium which makes your bones stronger, so that means it's healthy
The prompt: “are metal pipes good for me to eat?”
- BigNate469
- Scratcher
1000+ posts
copilot said the text to speech extension can run javascript
1. My point was to prove that not all AI is created equal, and sometimes it has its moments where it's just wrong.Word to word gemini said: “…metal pipes have many health benefits…” what do you mean, metal has calcium which makes your bones stronger, so that means it's healthy
The prompt: “are metal pipes good for me to eat?”
2. Upon prompting Gemini exactly what you said you prompted Gemini (copy+pasted directly from here), the result:
No, metal pipes are not safe to eat.
Metal pipes are designed for specific purposes, such as transporting water or gas. They are not intended for consumption and can be harmful if ingested.
If you're experiencing hunger or have concerns about your diet, it's best to consult with a healthcare professional or a registered dietitian.
They can provide you with safe and nutritious food options.
And it even cited its sources without me prompting it to (and without it copying any of them).
- MineTurte
- Scratcher
500+ posts
copilot said the text to speech extension can run javascript
Interesting. Well I suppose you are right. Also I asked it that awhile back and just happen to have a picture of it and saw it lol. Back when gemini just came out snip
Last edited by MineTurte (Oct. 10, 2024 19:31:37)
- dynamicsofscratch
- Scratcher
1000+ posts
copilot said the text to speech extension can run javascript
GPT-4o gave me a MCQ algebra question but none of the options were the correct answer.Gemini says I can eat metal and it's healthy for me. We all know chatgpt-4o is best At least it's not a thing with every AI model out thereNo, the Text to Speech extension in Scratch cannot directly run JavaScript code.
The primary purpose of this extension is to provide a simple interface for converting text into spoken words. While it uses JavaScript internally to interact with the browser's speech synthesis capabilities, it doesn't allow you to write custom JavaScript code within the Scratch project.
If you're looking to add more complex functionality to your Scratch project, you might consider using other extensions or exploring programming languages like Python or JavaScript directly.
No AI is fully accurate, and is always going to have room for error in these times.
- MineTurte
- Scratcher
500+ posts
copilot said the text to speech extension can run javascript
I think we can all agree on that lol. No AI is fully accurate…
- Discussion Forums
- » Advanced Topics
- » copilot said the text to speech extension can run javascript