Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked — Edited
Resolved Resolved by thetechguru!

Play Random Mp3 From Folder?

Hi is there a way to play a random MP3 from a specified on my PC? (Windows 7)

What it would be used for is to play an audio response that is randomized when detecting a speech input. Say for example if you wanted an R2D2 to play back random sounds from a folder instead of the same one every time when detecting a word or string etc.

That way you could have a folder for happy responses or scared or neutral etc etc.

Any way curios if I can do this with the built in scripting langague or if I need to use C# or Visual basic or something.



Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming


Add a SounboardV4 control (or just Soundboard if you want the sound to come from your PC instead of the V4 speaker).

Add your MP3s to the soundboard.

Have your script give this command whenever you want a random sound (adjust the control name if you are using a PC soundboard or if you rename the control after adding it):

ControlCommand("Soundboard v4", Track_Random)

You can add multiple soundboards with different MP3 collections if you want to have your script call different random sounds based on emotion as you described. ie

ControlCommand("Soundboard Happy", Track_Random)

ControlCommand("Soundboard Sad", Track_Random)

ControlCommand("Soundboard Scared", Track_Random)

Perfect thanks so much thetechguru. :)