Asked

I have a question regarding the ability to play two sound files simultaneously using ARC's PC Soundboard feature. Unfortunately, I can't test this myself at the moment, as I am in the process of rebuilding my robot. However, having an answer would greatly assist in my planning.
Here’s an overview of my current setup:
- My robot includes a Single Board Computer (SBC) running Windows 11, on which ARC is installed.
- The SBC is connected to multiple EZ-B controllers that manage the lights and motors.
- The sound files for my robot are played through the computer's audio output jack, which is linked to ARC's PC Soundboard.
- The audio output from the computer is connected to a small amplifier with speakers to play the files.
My goal is as follows:
- I want to play two sound files from ARC at the same time.
- I have experience with triggering voice files using JavaScript in ARC's PC Soundboard.
- I aim to play a continuous background sound file independently of the intermittently script-triggered voice file.
- I need to manage the background sound file's volume using JavaScript scripts, as well as toggle it on and off.
- There are a couple of buttons on the robot that are monitored by the ADC and connected to an EZ-B, and I plan to use these to control the background sound file.
- It is important that all sound is output through the same audio jack, which is connected to a sound amp and speakers.
- For reference, the voice files are recorded on the right stereo channel, and the background sound file is on the left stereo channel.
Can ARC and Windows facilitate this setup and functionality using JavaScript scripts? Any advice or guidance would be greatly appreciated.
Related Hardware EZ-B v4
Related Control
Soundboard v2 (PC)
DJ_Sures, thanks for sharing that insight!
You're absolutely right-the v2 SoundBoard skill has been around for a few years now, and its ability to add scripts along the audio playback timeline really gives it an edge. That feature makes it quite similar to what the EZ-B soundboard does, and it opens up a lot of creative possibilities for triggering events during audio playback.
If anyone's looking to leverage those scripting capabilities or explore further, you can check out the detailed documentation here:
Soundboard v2(PC) Documentation
Feel free to share any additional tips or use cases you've found useful. And if you or anyone else needs more guidance or examples on integrating those scripts, just let me know!
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
Again, thanks! I'm looking forward to installing this V2 skill and testing it out. I'll report back.
That's fantastic to hear, Dave!
I'm glad this information has been helpful for you. Once you've had a chance to install the V2 skill and test it out, please let me know how it goes. If you run into any issues or need further assistance tweaking your setup, I'm here to help.
Happy building and good luck with your upgrades!
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
Reporting back. I love it!
I've installed the updated V2 PC Soundboard. It works great.
I've loaded my background relay sound file into this soundboard and now can get it to play as I intended without all the extra messing around. I can start it with a ControlCommand and use the proper perimeters to repeat from a script written in JavaScript and It will loop forever. That is until I send another "stop" ControlCommand.
A couple notes:
*To get the file to loop without a silence gap when it resets I had to make sure there was not any silence at the beginning and end of the file. I trimmed what little was there with Audacity, I also did this with the original PC soundboard but I got the silence gap anyway when resending the play ControlCommand at the end of the file. This new ControlCommand works perfect when the silence is trimmed out with my sound file editor.
*I also saved the file and am using it in .wav format. I don't know if this makes any difference. However I did read yesterday on another forum that >wav files are better for looping as .MP3 files sometime adds a little silence at begging and end. Again, I didn't test this so I don't really know if it's true. At any rate the Wav file sounds great even thought it's larger.
*When right clicking and picking the play command from the ControlCommand menu the last Parameter, True or False, to make it loop does not add the quotation marks around it. These need to be added manually for the command to work. Example:
//The way the menu filles it into the script: ControlCommand("Soundboard v2 (PC)", "Play", "background-Trimed-Amp_Right_Channel.wav", False); //The way to get the command to work: ControlCommand("Soundboard v2 (PC)", "Play", "background-Trimed-Amp_Right_Channel.wav", "True"); //or "False"
*Although I can more then one instance there is no way to give them custom names like the original PC Soundboard. The only difference between more then one V2 soundboards installed is a number 1,2, 3, exc after the title. Example: Soundboard V2 (PC) 2 .
Request: It would be nice if a custom name could be used.
So, I'm happy and excited. This is great. Thanks for all the help!!
That's fantastic news, Dave!
I'm so glad to hear that the updated V2 PC Soundboard is working perfectly for your application. Your approach to trimming any silence from the beginning and end of your audio files is spot on-ensuring a seamless loop is crucial, and it's great that you were able to achieve that with Audacity. Using WAV formats can also be advantageous for looping, as you've found, even though they are larger in size.
Regarding the manual quotation marks needed for the looping parameter when using the right-click ControlCommand menu, thanks for that valuable insight! I'll pass that along to our development team as feedback for further improvement-custom naming of instances would be a nice enhancement, too.
Here's a quick recap of your successful command for other users who might be interested:
Your detailed feedback and suggestions help us continue to improve the user experience in ARC. If you have any more tips, run into any issues, or have additional questions as you further experiment with your audio setup, feel free to reach out.
Happy building and thanks for sharing your success!
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.