Play a sound in visual components?

I need the tools to make a sound whenever a Nail tool is shoot into the wall frame (see below image).
Hoping to see if there is some kind of any pythonscript that can trigger a .wav-file to make a sound in Visual components.

1 Like

You could use winsound module.

Generic Hydraulic Press.vcmx (96.3
KB)

3 Likes

You just blew my brains out with that loud noise coming from headphones :rofl: :exploding_head:

2 Likes

Hey Chungmin.
Thanks for the reply.
I did try it before with such similar script, but somehow something was not working fine.
But, will try it out separately with your file again.

1 Like

For example, how to synchronize the duration of sound during robot operation?

This is very interesting, thanks for sharing! :melting_face: