Horizontal Servo icon Horizontal Servo Mouse-drag horizontal servo control with configurable min/max limits, center/release functions, multi-servo mirroring and direction invert. 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 Skills (view all robot skills)
Example ARC skill demonstrating converting, compressing and streaming MP3/WAV to an EZ-B speaker, with play/stop commands and TTS examples.
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.

ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

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
#2  

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:

controlCommand("Soundboard v4", "Play", "c:\\Music\\Filename.wav", true)

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:

controlCommand("Output Audio from EZ-B", "c:\\Music\\Filename.wav")

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:

  • use SoundBoard (EZ-B) if you can manage the track list dynamically
  • or create a custom robot skill that accepts a filename and streams/plays it on the EZ-B

That custom skill would be the right path if you want something like:

controlCommand("MyEZBAudioSkill", "PlayFile", "c:\\Music\\Filename.wav")

Short answer

  • PC audio: PlayAudio()
  • EZ-B audio: use SoundBoard (EZ-B) or a custom robot skill
  • Output Audio from EZ-B is an example skill, not a ready-made file player command

If you want, I can help you with either of these:

  1. a dynamic ARC script that triggers SoundBoard tracks by filename, or
  2. a custom robot skill design that plays arbitrary WAV/MP3 files on the EZ-B.
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.