How to customize the default sound of blockly?

203 views
Skip to first unread message

Paing Htet Aung

unread,
Dec 16, 2022, 11:16:13 PM12/16/22
to Blockly
I want to customize the block sound with my sound effect something like the sound effect when you placed the block in the workspace.

Beka Westberg

unread,
Dec 17, 2022, 12:18:52 PM12/17/22
to blo...@googlegroups.com
Hello!

You can do this by overwriting the media path passed to the configuration struct. This tells Blockly where to look for assets like sounds (e.g. the placement sound effect) and images (e.g. the trashcan).

So what you need to do is:
  A) Download all of the assets from Blockly's media folder.
  B) Overwrite any .mp3 files you want to change.
  C) Pass the relative path to those files as part of the configuration struct.

I hope that helps! If you have any further questions please reply =)
--Beka

On Fri, Dec 16, 2022 at 8:16 PM Paing Htet Aung <painghte...@gmail.com> wrote:
I want to customize the block sound with my sound effect something like the sound effect when you placed the block in the workspace.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/ca89a249-adb4-496f-a939-dfc78405cb0fn%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages