Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » copilot said the text to speech extension can run javascript
- The_Insane_Creator
- Scratcher
100+ 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.
Want a legendary response from the legendary scratcher @RokCoder?
He's what he said:
I scan through most days if I have twenty minutes. Doesn't mean I answer every question though. If you've a question that isn't getting responses from anyone at all then it's probably not clear enough, doesn't share the project, doesn't have clear reproduction steps or some other related problem with the description
So, If you want a response from RokCoder, then here you go! This will help you get a response from him!
==========================================================
when this sprite clicked
check for messages :: extension ::
if <(messages) > ((alerts :: extension ::) - (1))> then
happiness :: extension ::
else
cry :: extension ::
end
- 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
^^^^^ Below this line is a signature. It doesn't have anything to do with the post above.
1,000th post
click here (not clickbait)
the scratch movie # my beepbox compositions # free image hosting for forums
click here (not clickbait)
the scratch movie # my beepbox compositions # free image hosting for forums
- The_Insane_Creator
- Scratcher
100+ 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
Want a legendary response from the legendary scratcher @RokCoder?
He's what he said:
I scan through most days if I have twenty minutes. Doesn't mean I answer every question though. If you've a question that isn't getting responses from anyone at all then it's probably not clear enough, doesn't share the project, doesn't have clear reproduction steps or some other related problem with the description
So, If you want a response from RokCoder, then here you go! This will help you get a response from him!
==========================================================
when this sprite clicked
check for messages :: extension ::
if <(messages) > ((alerts :: extension ::) - (1))> then
happiness :: extension ::
else
cry :: extension ::
end
- 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
100+ posts
copilot said the text to speech extension can run javascript
what what
Want a legendary response from the legendary scratcher @RokCoder?
He's what he said:
I scan through most days if I have twenty minutes. Doesn't mean I answer every question though. If you've a question that isn't getting responses from anyone at all then it's probably not clear enough, doesn't share the project, doesn't have clear reproduction steps or some other related problem with the description
So, If you want a response from RokCoder, then here you go! This will help you get a response from him!
==========================================================
when this sprite clicked
check for messages :: extension ::
if <(messages) > ((alerts :: extension ::) - (1))> then
happiness :: extension ::
else
cry :: extension ::
end
- 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
JOIN THIS COOL PROJECT (in it's very early stages)
==================
“'Common Sense Media' is anything but.” - Za-Chary
This is my very first post on any of my accounts (SmurfEthan09 has no posts to talk about)
Me like salman /ref
- 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.
This is my siggy.
Can't wait for FRC water game!
- 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.
This signature is designed to be as useful as possible.
How to make a signature | The Official List of Rejected Suggestions (TOLORS) | The Announcements Directory | The Official BBCode Guide 2.0
Lesser-known Scratch URLs: https://scratch.mit.edu/discuss/topic/542480/
Why @Paddle2See's responses are so often identical: https://scratch.mit.edu/discuss/topic/762351/
Ads Useful projects:
Raycaster & Maze 1.4.1 | Don't Break The Ice | Procedurally Generated Terrain | Basic Trigonometry | Comparing the fastest list sorters on Scratch
“if nobody can learn the programming language, it's just gibberish that does math.” -me, in a forum post
The original name of “loves” was “love-its”. Technically speaking, this hasn't changed.
© @BigNate469, some rights reserved
- 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
100+ 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.
Want a legendary response from the legendary scratcher @RokCoder?
He's what he said:
I scan through most days if I have twenty minutes. Doesn't mean I answer every question though. If you've a question that isn't getting responses from anyone at all then it's probably not clear enough, doesn't share the project, doesn't have clear reproduction steps or some other related problem with the description
So, If you want a response from RokCoder, then here you go! This will help you get a response from him!
==========================================================
when this sprite clicked
check for messages :: extension ::
if <(messages) > ((alerts :: extension ::) - (1))> then
happiness :: extension ::
else
cry :: extension ::
end
- 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).
This signature is designed to be as useful as possible.
How to make a signature | The Official List of Rejected Suggestions (TOLORS) | The Announcements Directory | The Official BBCode Guide 2.0
Lesser-known Scratch URLs: https://scratch.mit.edu/discuss/topic/542480/
Why @Paddle2See's responses are so often identical: https://scratch.mit.edu/discuss/topic/762351/
Ads Useful projects:
Raycaster & Maze 1.4.1 | Don't Break The Ice | Procedurally Generated Terrain | Basic Trigonometry | Comparing the fastest list sorters on Scratch
“if nobody can learn the programming language, it's just gibberish that does math.” -me, in a forum post
The original name of “loves” was “love-its”. Technically speaking, this hasn't changed.
© @BigNate469, some rights reserved
- 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.
aII toasters toast toast, but what happens when there are no longer toasters being produced? will their technology simply become obsolete, with humans moving onto bigger, better things? will toast become a distant memory, written in textbooks of the future as foods us simpler generations ate? who's to say! society is constantly moving, changing, evolving, ideas being built upon, improved upon, theories being proven or disproven. are we but a blip on the timeline? sure, our names may not be remembered, but that's not the point. you can make a change. you can make a difference. you can make the world better, even if you don't know yet. and the first step is to go for it. even if you are afraid of failure. going back to the example of toasters, do you know off the top of your head who invented them? no? have you used one? probably. so, even if you don't remember my name, if I was able to help awnser your question, that is enough. if I was able to help you, even in the slightest way, this could push you to continue with scratch and not give up after the program crashes, and maybe one day learn other programming languages and change the world. everything is a cause and effect reaction, new inventions lead to the technology of the future, and even as the generations of the past are slowly forgotten, their influence lives on to this day, affecting how the world eventually turned out and how it will be for generations to come.
and, without toasters, we wouldn't have toast.
and, without toasters, we wouldn't have toast.
Regards
dynamicsofscratch
Anything above that grey line is a signature!
Also, anything can be put in your signature, (also referred as a siggy) including ads but! You cannot do anything else that violates the community guidelines as, you will be reported and you could be banned/muted.
Computer enthusiast, coder, designer and a offline veteran.
700th post
- Discussion Forums
- » Advanced Topics
- » copilot said the text to speech extension can run javascript