PRO
afcorson
Australia
Asked
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 Skills (view all robot skills)
Output Audio From EZ-B
by Synthiam
Example ARC skill demonstrating converting, compressing and streaming MP3/WAV to an EZ-B speaker, with play/stop commands and TTS examples.
Requires ARC
v11
Soundboard (EZB)
by Synthiam
Play WAV/MP3 via EZ-B v4, manage tracks, add timed scripts for synced robot actions, control via ControlCommand(), volume and clipping indicators.

It would be good if I could use:
Yes - but not with
PlayAudio(filename).PlayAudio()plays on the PC, not the EZ-B. If you want audio to come from the EZ-B hardware speaker, there are a couple of options:Best options
1) SoundBoard (EZ-B)
This is the normal ARC skill for playing audio on the EZ-B speaker. It can play WAV/MP3 files from a track list and supports
ControlCommand().Important: it can still be used for many files - you do not have to hardcode just a few tracks. You can load/change tracks as needed in the skill, then trigger them by:
or by track index/name depending on how you organize it.
Skill info:
2) Output Audio from EZ-B example skill
That skill is mainly an example / source code demo for developers, not really the ideal general-purpose solution for dynamically playing arbitrary files at runtime.
So this:
won’t work as written unless you build a custom robot skill that supports that command.
Skill/source reference:
What you want to do dynamically
If your files are numerous and changeable, the cleanest ARC approach is:
That custom skill would be the right path if you want something like:
Short answer
PlayAudio()Output Audio from EZ-Bis an example skill, not a ready-made file player commandIf you want, I can help you with either of these: