Trying To Figure Out A Weird POP At The Start And End Of Sound Files.
After I installed a computer onboard the B9 robot and connected the three controller EZB's directly to the computer from the EZB's Camera Port using serial TX/RX data lines to the computer's USB ports, I noticed that every sound file has a pop at the start and end of the file.
I didn't have this issue when the EZB was connected over WIFI to the control computer running Synthiam's ARC.
It's not the file as it plays just fine through other devices. I read that a fix to this issue was to add silence to the beginning and end of the file with a audio editing program. I tried this with no luck. I did a ton of troubleshooting, Among the long list was taking components out of the system to eliminate anything that may be causing this and by breaking the sound system down to as basic as I could. Still after all this I still had the pops. I got it down to sending the sound file directly from the computer through its USB port, using serial converter cable and into the EZB, then out to a speaker.
I tried playing the sound files through two other EZB's mounted on the robot and heard the pops in their small speakers. The EZB I usually play the files on I've modified the board to bypass it's internal amp and send the sound signal directly to the robot's sound system. This can't be the issue as I said, I still get the pops on the other two unmodified EZB's.
I did find out in my troubleshooting that I can play a file directly out of the computer's headphone jack (bypassing the EZB and it's direct serial/USB connection) and into my sound system without hearing the pops. To do this I use ARC's PC sound board and not the EZB soundboard. i could switch all my sound files over to the PC soundboard and direct connect the computer to the robot and use ARC's PC soundboard but I have hundreds of sound files and it would take forever. Besides, I'm the kinda guy who hates to walk away from something that not working right and a challenge. LOL.
Please watch the video for a better explanation and demo of all this. Does anyone have any ideas? Thanks in advance for watching and any advice. Sorry about the washed out quality of the video. I think I need to clean my lense. LOL.
It sounds like you're experiencing a challenging issue with the popping sound when using the EZ-B v4's audio output. Let's try to address this systematically:
Potential Causes and Solutions
Audio File Format and Quality:
Silence Padding:
Audio Output Configuration:
Ground Loop Issues:
Firmware and Software Updates:
Direct PC Soundboard Use:
Hardware Check:
Testing with Different Cables:
Steps to Use PC Soundboard Efficiently
If you decide to use the PC Soundboard as a workaround, here's a quick guide to streamline the process:
Batch Conversion:
Automate File Loading:
ControlCommand for Soundboard:
ControlCommand()
function in ARC to control the PC Soundboard. This allows you to play specific tracks programmatically.Additional Resources
If these suggestions don't resolve the issue, please feel free to provide more details or ask further questions. I'm here to help!
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.
@Athena,
Thanks for the advice. I have thoroughly tried each of your suggestions many time and in different ways in my troubleshooting efforts. It's good to have my efforts validated by your suggestions. The only suggestion you gave that I hadn't considered and that has been suggested by many other people I've asked for assistance is a possible ground issue.
I have three AC to DC power converters powering my robot with devices. motors and lights split between them. I spent a bunch of time today testing and making sure I didn't have any floating DC neutrals or grounds. I used a continuity tester to make sure all DC grounds (neutrals ) and the earth ground were connected. I actually did find that one of the power supplies powering the sound system was isolated and the DC neutral side was not tied to any of the other two power supplies DC neutrals or to the earth ground. Sadly when I tied it down to earth and made sure it had continuity with the others the popping issue did not go away.
Judging from all my testing and troubleshooting the issue lies somewhere in the connection between the computer and the EZB. I have tried different USB to Serial conversion cables, different EZB's and the popping doesn't stop. The fact that I can hook a sound cable directly from the computer headphone jack into my sound system (bypassing the EZB and it's direct serial connection) then play a file using ARC's PC soundboard with no popping tells me that my sound system is not the issue. I have not tried to switch back to a WIFI connection to see if the popping will stop. However before I mounted the computer on the robot and directly connected it to the EZB I was connecting over WIFI and didn't have this issue. I may try just for giggles.
However at this point I think I'm just going to reroute the sound system to the PC headphone jack and load all my sound files into PC sound boards. I have hundreds of sound files scattered over many EZB soundboards so it's going to be a chore. @Athena, you mentioned a script that could do the work for me. Could you write an example of a Javascript that could exactly copy the EZB sound board sound file entries into PC soundboards? Would I have to create the PC sound boards first?
Certainly! While there's no direct method to automatically transfer sound files from the EZB Soundboard to the PC Soundboard within ARC, you can use a script to help automate the process of loading sound files into the PC Soundboard. Here's a step-by-step guide and a sample JavaScript script to assist you:
Steps to Automate Sound File Loading
Organize Your Sound Files:
Create PC Soundboards:
Use JavaScript to Load Files:
Sample JavaScript Script
Here's a sample script that demonstrates how you might automate the loading of sound files into the PC Soundboard. This script assumes you have a list of file paths and that you've already created the necessary PC Soundboards in your ARC project.
Notes
soundFiles
array are correct and point to the actual location of your sound files."Soundboard PC 1"
with the actual name of your PC Soundboard in ARC. If you have multiple soundboards, you'll need to repeat the process for each one.Additional Considerations
This approach should help streamline the process of transferring your sound files to the PC Soundboard, reducing the manual effort required. If you have any further questions or need additional assistance, feel free to ask!
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.
Hi Dave,
I've watched your video (very good troubleshooting there all the way around) and I feel like I've ran into very similar issues with my Halloween robot Captain Sisco. I think all of Athena's advice is all good general troubleshooting, but you can see the difference in the video, and I believe you did rule all those suggestions out.
My only question that I haven't seen answered yet is - did the sound work at one point with the EZ-B soundboard and speaker system without the pops or this is the first go and just discovered the pops? Like, perhaps it worked with a previous version of ARC but the newest updated introduced the pops? Or it worked fine with a different EZ-B but with this one it pops?
With my Captain Sisco pirate robot, I got all sorts of pops at first using the EZ-B speaker output with an audio cable to an external powered speaker. What I had to do was fine tune the audio level slider of the EZ-B sound board in ARC (adjust it down) and adjust the powered speaker system to where it was louder (but not so loud it sounded like a muffled fast-food speaker from 1982). Once I found the sweet spot I had clean audio without the pops from the EZ-B.
Overall though I can't help but think the soundboard of the PC audio from ARC is probably more robust if you have an onboard PC available vs. the EZ-B soundboard.
Hi @JustinRatliff . Sorry for the late reply. I've been prepping for this hurricane that is approaching.
Anyway, to answer your question as best as I can; Actually in the past with other ARC versions (and before I mounted the computer on the robot and direct connected) I did have random pops. However for the most part, they were few and far between. Nothing as pronounced as now and that I showed in the video. Also I've been experimenting with the volume sliders on the EZB soundboard with no results. I've lowered the slider to below 10 and the pop stays. It only reduces in volume in proportion to the voice file volume. Adjusting my amp volume up as you mentioned only make the pop louder.
Also I have tried sending this sound file through two other EZB's and still can hear the POP in their small onboard speaker.
I'm really out of options and energy to keep working on this issue. The only things I haven't really done to troubleshoot is to rebuild a stand alone sound system outside of the robot to see if isolating the it helps. The other thing is to switch an EZB over to WIFI and test that way.
I'm kind of discouraged and frustrated that I can't get a sound file to play without that popping at the start and finish. I feel my only path forward to a clean voice is to directly connect my PC from the headphone out jack to the robots sound system amp. That has proven to work and sound nice. Once done, I'm going to have to re-load all my sound files I'm using into the different ARC PC soundboards needed.
Thanks again for reaching out with the thoughtful suggestions.
Dave, that's right, I forgot you are down there in Florida and there is another hurricane heading that way! Stay safe!!
I feel your frustration, I keep thinking about the audio playback and it sure seems like something in the hardware but darned if I can think of anything else to suggest.
I never was able to figure out why I had the loud Pop at the start and end of my sound files when running them through the EZB that I showed in the above video. I decided to go another way that actually works better.
As seen in Part 1, my last video (above), I had all sound files (along with all other robot control) running through a direct connection between the computer and the EZB via a USB to Serial converter cable.
After much testing and troubleshooting I came to believe that the sound Popping problem lies in that connection somewhere. All other control of the robot works great. As I demonstrated in the above video, I show I can move the robot's sound system patch cord from the EZB to the Headphone Out Jack of the computer, move sound files into an ARC PC (digital) Soundboard Skill from the EZB Soundboard and when played the Pop goes away.
This video, Part 2, shows how all that worked out. As a treat I also show some of the response and animation I can get from the robot using my main form of control, voice recognition. Enjoy!