# Speaker + raspberry pi 3A+

**URL:** <https://forum.makecode.com/t/speaker-raspberry-pi-3a/8730>\
**Category:** Help\
**Created:** [June 14, 2021, 4:55pm UTC](https://forum.makecode.com/t/speaker-raspberry-pi-3a/8730 "2021-06-14T16:55:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sofiania](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sofiania/32/21889_2.png) [@sofiania](https://forum.makecode.com/u/sofiania)\
**Post date:** [June 14, 2021, 4:55pm UTC](https://forum.makecode.com/t/speaker-raspberry-pi-3a/8730/1 "2021-06-14T16:55:36Z")

</div>

Is there any workaround for the sound (USB/ALSA)? I’m making an arcade machine, and wanted to use an usb encoder to attach the buttons and joystick, but the 3A+ has only one usb port, and I want it to be as cheap as possible, and would rather not have to buy an usb hub as well. Could one solder the speaker in any way, or use the GPIO:s and still get ALSA sound?

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [July 12, 2021, 3:14pm UTC](https://forum.makecode.com/t/speaker-raspberry-pi-3a/8730/2 "2021-07-12T15:14:39Z")

</div>

Hi again @sofiania,

I am happy that your Zero Delay Encoder USB Arcade controller worked at last, and I hope everything worked as intended during your workshop etc.

However, I was wondering how you ultimately solved the sounc issues with only one USB port on the RPi 3A+? Did you get sound to work via GPIO with something like this?:  
[https://www.raspberrypi.org/forums/viewtopic.php?t=200753#p1367759](https://www.raspberrypi.org/forums/viewtopic.php?t=200753#p1367759)

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [July 12, 2021, 3:14pm UTC](https://forum.makecode.com/t/speaker-raspberry-pi-3a/8730/3 "2021-07-12T15:14:46Z")

</div>

For others reading this topic, and if a USB hub worked somehow, @Dace reports a working solution for USB sound here:

> [@Just finished another cabinet for school!](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658/28):
>
> Thanks for the suggestions, figured it out with [this](https://sudomod.com/forum/viewtopic.php?f=20&t=144) So everything is up and running thanks to your amazing application, I still have one question. How do I get out of MakeCode? With Mame I hit the start/select button at the same time and that puts me back into retroPi but with MakeCode it does not work, any ideas? thnx
