Welcome to Synthiam!

Program robots using technologies created from industry experts. EZ-Builder is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.
Get Started

France
Asked — Edited

[RESOLVED] Playing A Sound On EZ-Robot

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 :

Code:

                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 EZ-Robot Six Hexapod