PRO
oisin.cawley
Ireland
Asked
I want to write a robot skill in C# that will play audio from an mp3 file over the speakers of a JD Humanoid robot, how do I do this?
Related Hardware (view all EZB hardware)
JD Humanoid
by EZ-Robot
JD humanoid robot kit - WiFi-enabled, 16 DOF with metal-gear servos; easy, fun, educational, available from the EZ-Robot online store.
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.

To create a robot skill in C# that plays an MP3 audio file over the speakers of a JD Humanoid robot using Synthiam ARC, you'll need to utilize the ARC SDK. This example assumes you have basic knowledge of C# and the ARC environment. The JD Humanoid robot uses the EZ-B v4 controller, which supports audio playback through its onboard speaker.
First, ensure you have the ARC software installed and that you've familiarized yourself with creating custom robot skills as outlined in the Synthiam documentation: https://synthiam.com/Support/Create-Robot-Skill/Overview
Here's a simplified example of how you might create a C# class within a custom robot skill to play an MP3 file:
Create a New robot skill Project:
Add Required References:
ARC.dll,EZ_B.dll) to interact with the EZ-B controller.NAudio.dllor another library that supports MP3 playback in C#.Implement MP3 Playback:
NAudiofor MP3 playback:Integrate with ARC:
AudioPlayerclass when appropriate (e.g., in response to a button press in the ARC interface).Build and Test Your Skill:
Remember, this example is simplified and focuses on the core concept of playing an MP3 file in a custom ARC skill. Depending on your requirements, you may need to add error handling, UI elements for controlling playback, and other features.
For detailed information on working with ARC, EZ-B, and creating custom skills, refer to the Synthiam documentation and forums for support and guidance.
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.
This page in the Create robot skill support section is also useful: https://synthiam.com/Support/Create-Robot-Skill/Examples/Example-Output-Audio-from-EZ-B