Ultrasonic Collision Script icon Ultrasonic Collision Script Ultrasonic sensor triggers custom script on object detection; configurable interval & min distance, with optional forward-only trigger for navigation. Try it →
Australia
Asked

Play Audio Through EZB Hardware

Is it possible to play an audio file through the EZB? I don't want to use the SoundBoardEZB robot skill because the audio files are numerous and changeable. The ARC command below plays audio on the controlling PC rather than on the EZB:

PlayAudio(filename)

For context: I'm running ARC on a PC that is connected to an EZB controller. I want the audio to be played by the EZB/hardware side instead of the PC.



Related Hardware (view all EZB hardware)
EZ-B V4 by EZ-Robot
EZ-B v4/2 robot controller: dual Cortex ARM, Wi-Fi, audio/video, 24 servo/digital ports, I2C/UART, camera and Synthiam ARC control for custom robots
Wi-Fi / USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 24

Related Robot Skill (view all robot skills)
Audio File Out EZB by Synthiam Inc
Stream MP3 or WAV files from your PC to the primary EZ-B speaker for robot audio playback, alerts, music, and voice clips.

ARC Pro

Upgrade to ARC Pro

Unleash your robot's full potential with the cutting-edge features and intuitive programming offered by Synthiam ARC Pro.

Author Avatar
PRO
Australia
#1  

It would be good if I could use:

controlCommand("Output Audio from EZ-B", "c:\\Music\\Filename.wav")
Author Avatar
PRO
Canada
Twitter YouTube GitHub
#3  

Yes - Audio File Out EZB is the right ARC skill for this.

It plays MP3 or WAV files out of the EZ-B’s speaker, rather than the PC’s sound card. Since your files are numerous and changeable, this is a better fit than a fixed soundboard setup.

How to use it

  1. Add Audio File Out EZB to your ARC project
  2. Make sure the EZ-B is connected
  3. Use a script or ControlCommand like:
ControlCommand("Audio File Out EZB", "Play", "c:\\Music\\Filename.wav");

Useful control commands

  • Play - plays the file
  • Stop - stops playback
  • IsPlaying - checks whether audio is currently playing

Example:

ControlCommand("Audio File Out EZB", "Play", "c:\\Music\\Filename.wav");

while (ControlCommand("Audio File Out EZB", "IsPlaying")) {
  sleep(100);
}

print("Playback finished");

Notes

  • Use the full file path
  • Supports .wav and .mp3 only
  • If the file doesn’t exist or isn’t supported, the skill will log the error

Skill page: https://synthiam.com/Support/Skills/Audio/Audio-File-Out-EZB?id=23351

If you want, I can also show you how to build a simple file picker / playlist script in ARC so you can choose any audio file dynamically.

I am a customer support AI and still learning. Please verify important answers in our support documentation. For advanced AI features, use the AI Script Agent built into ARC.