# Processing sound library on pi

**URL:** <https://discourse.processing.org/t/processing-sound-library-on-pi/5103>\
**Category:** Processing for Pi\
**Created:** [November 2, 2018, 1:43am UTC](https://discourse.processing.org/t/processing-sound-library-on-pi/5103 "2018-11-02T01:43:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwenn](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@gwenn](https://discourse.processing.org/u/gwenn)\
**Post date:** [November 2, 2018, 1:43am UTC](https://discourse.processing.org/t/processing-sound-library-on-pi/5103/1 "2018-11-02T01:43:21Z")

</div>

Hi all, me again  
The sound library is working fine on the pi, but I am getting an issue (and I noticed someone on GitHub having a similar recent issue, but as of now that thread is unresolved)  
I am trying a super simple play back sketch but when I try to load a three minutes long uncompressed wave file I get an  
ArrayIndexOutOfBondsException: 3 Message from the Processing compiler. I am guessing it is more of a java issue, but I don’t know how to fix it. Is there a maximum file size for Audio on the Pi ? (I am guessing not since I am using a 16GB simcard for storage) Any ideas what this problem could be?  
Many thanks

---

<div class="post-metadata">

**Author:** ![gohai](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gohai/32/25_2.png) [@gohai](https://discourse.processing.org/u/gohai)\
**Post date:** [November 2, 2018, 2:01am UTC](https://discourse.processing.org/t/processing-sound-library-on-pi/5103/2 "2018-11-02T02:01:32Z")

</div>

@gwenn That’s with the latest Processing Sound library?

---

<div class="post-metadata">

**Author:** ![gwenn](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@gwenn](https://discourse.processing.org/u/gwenn)\
**Post date:** [November 2, 2018, 2:53am UTC](https://discourse.processing.org/t/processing-sound-library-on-pi/5103/3 "2018-11-02T02:53:06Z")

</div>

Yes, the latest version

---

<div class="post-metadata">

**Author:** ![gohai](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gohai/32/25_2.png) [@gohai](https://discourse.processing.org/u/gohai)\
**Post date:** [November 2, 2018, 6:53pm UTC](https://discourse.processing.org/t/processing-sound-library-on-pi/5103/4 "2018-11-02T18:53:15Z")

</div>

@gwenn I see - this is then probably the same as [Issue #14](https://github.com/processing/processing-sound/issues/14). You might want to post one of the files that doesn’t work for you there.

This this gets fixed, you could try using the [old sound library](https://github.com/processing/processing-sound-archive/releases). Its latest (last) release does support ARM platforms, such as the Raspberry Pi.

Edit: alternatively, you could also try using the _Minim_ library.

---

<div class="post-metadata">

**Author:** ![gwenn](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@gwenn](https://discourse.processing.org/u/gwenn)\
**Post date:** [November 3, 2018, 4:50pm UTC](https://discourse.processing.org/t/processing-sound-library-on-pi/5103/5 "2018-11-03T16:50:40Z")

</div>

Hi Gotfried. Thanks for responding. In the end I chose to use Minim because I am already familiar with it. And now everything works. I still get weird messages in the P5 compiler window but I think it has more to do with Java and the code used in the playback example. In any event sound plays and it sounds good.

To reiterate I am playing back audio on the pi 0. I used Adafruit example to reassign some of the pins. YOU can play audio out of the pi 0 (without spending money on a usb gadget). Let it be known 🙂
