Discuss Scratch

mrcreatorluigi
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

So when using the “Speak hello” block from the Text to Speech block section, the script wont continue until the speech is done talking. I found this a slight problem in my projects.

So I wish there were “Speak hello until done” and “Speak hello” blocks seperately, and have older projects' scripts have the block renamed to “Speak hello until done.” Here is what I'm talking about:

This script will run even if the text to speech is still playing:
speak [hello]::pen
And this will run the next part of the scripts until it is done speaking
speak [hello] until done::pen

this is the 2nd post I’ve ever posted outta 600

Last edited by mrcreatorluigi (Aug. 8, 2021 00:49:18)

DarthVader4Life
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

This might break some projects. What I mean is that if
speak [] :: pen
Continues the script below it, then every instance of it's use will make the script continue ahead of time.

So each instance of
speak [] :: pen
should be replaced with
speak [] until done :: pen
as to avoid breaking any (or most) projects.

Last edited by DarthVader4Life (Aug. 21, 2021 18:50:32)

mrcreatorluigi
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

That is what I want to happen as well, the old blocks will have the same properties and will have a different name

Last edited by mrcreatorluigi (July 2, 2021 00:03:25)

Chiroyce
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

You can do this!

when I receive [speak v]
speak (to be spoken) :: pen
when green flag clicked
set [text to be spoken v] to [hello world]
broadcast [speak v]
... // code to be run when speaking

mrcreatorluigi
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

Removed

Last edited by mrcreatorluigi (Aug. 7, 2021 23:44:23)

mrcreatorluigi
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

Bump, because this still interests me
MasterofTheBrick
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

No support. All you need is a broadcast, as shown by Chiroyce.
mrcreatorluigi
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

MasterofTheBrick wrote:

No support. All you need is a broadcast, as shown by Chiroyce.
I just think the workaround is a bit quicker and less messy, because a bunch of broadcasts over TTS blocks is quite ridiculous.
Chiroyce
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

mrcreatorluigi wrote:

I just think the workaround is a bit quicker and less messy
Then why don't you use it then?
PkmnQ
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

Chiroyce wrote:

mrcreatorluigi wrote:

I just think the workaround is a bit quicker and less messy
Then why don't you use it then?
I think he mixed up his words. It's just weird that you have a variable whose only purpose is to assist in a workaround.
orangeicecream23
Scratcher
100+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

You can clicked the speak block with the text inside,
Then record it.
Upload it into the sound editor.

Use the

play sound [Text to be spoken v]

for

speak []:: pen

and play sound until done for speak until done.
Chiroyce
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

orangeicecream23 wrote:

You can clicked the speak block with the text inside,
Then record it.
Upload it into the sound editor.
Then it cannot be dynamic, like how the block is supposed to perform, so it isn't a workaround.
wvj
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

Support! The workaround with broadcasts is long
han614698
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

No support, this will break soooo many existing projects.
Chiroyce
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

han614698 wrote:

No support, this will break soooo many existing projects.
They're suggesting to add a block, not remove one and add another lol
han614698
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

Chiroyce wrote:

han614698 wrote:

No support, this will break soooo many existing projects.
They're suggesting to add a block, not remove one and add another lol
But the “speak []” will change function, where it will move on while it’s still saying the text which means that some projects will be broken.
PkmnQ
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

han614698 wrote:

Chiroyce wrote:

han614698 wrote:

No support, this will break soooo many existing projects.
They're suggesting to add a block, not remove one and add another lol
But the “speak []” will change function, where it will move on while it’s still saying the text which means that some projects will be broken.

DarthVader4Life wrote:

This might break some projects. What I mean is that if
speak [] :: pen
Continues the script below it, then every instance of it's use will make the script continue ahead of time.

So each instance of
speak [] :: pen
should be replaced with
speak [] until done :: pen
as to avoid breaking any (or most) projects.

mrcreatorluigi wrote:

That is what I want to happen as well, the old blocks will have the same properties and will have a different name
mrcreatorluigi
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

Yes once again, to avoid breaking old projects the “speak ()” block would be renamed to “speak () until done” to keep its function.

Last edited by mrcreatorluigi (Aug. 8, 2021 19:08:36)

SuperMarioHome
Scratcher
100+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

Support if we had:

speak [Hello, world!] :: pen

//and
speak [Hello, world!] until done :: pen

Projects using the former should not be broken with the latter. They should continue using the former.

Last edited by SuperMarioHome (Aug. 9, 2021 18:05:42)

ScolderCreations
Scratcher
1000+ posts

TEXT TO SPEECH: “speak []” and “speak [] until done”

Support, as this would make it easier to run other scripts at the same time. However, I also would like a block that reports whether or not there is text being spoken. This would be helpful, in certain cases.

Powered by DjangoBB