Python Native icon Python Native — Run real CPython in ARC with full package support, camera access, ARC APIs, and bidirectional robot control. Try it →
Asked — Edited

Playing A Sound

Hi,

I'm trying to make a plugin that could play some specific sound on my Ez-Robot. I used the following tutorial : https://synthiam.com/Tutorial/How-To-Make-An-EZ-Builder-Plugin-16328/25

I'm stuck at the point where I compress the PCM Data with GZip :

                using (MemoryStream ms = new MemoryStream())
                {
                    using (GZipStream gz = new GZipStream(ms, CompressionMode.Compress))
                        pcm.CopyTo(gz);
                    _cf.STORAGE[ConfigTitles.COMPRESSED_AUDIO_DATA] = ms.ToArray();
                }

Where is the ConfigTitles.COMPRESSED_AUDIO_DATA is coming from ? What should be the value ?

Unfortunately the link to the source code is dead : OutputAudioFromEZ-BSource.zip

Regards



Related Hardware (view all EZB hardware)
Six Hexapod by EZ-Robot
Synthiam ARCx controls Six Hexapod with Auto Position gaits, joystick, voice, AI, vision tracking, and browser access.
Wi-Fi / USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 24

ARC Pro

Upgrade to ARC Pro

Don't limit your robot's potential – subscribe to ARC Pro and transform it into a dynamic, intelligent machine.