Hello everyone. For a school project, I have decided to use the Bela but I am really new to the C++ world and I am struggling with it. I need to record a sound from a guitar sensor and play it back on external speakers. But the problem is that I don't know how to play it back through the Bela embedded speakers, which I will connect to my external speakers.

I understand that this is some basics but I struggle with all the documentation. If someone has the answer, I am very interested.

Thanks

Bela has no "embedded speakers" as such, however what Bela (as in: big Bela, not BelaMini) has are embedded speaker amplifiers. This means that you can connect a passive speaker to them and get some sound out of it without need for an external power amplifier. This yields 1.1W on 8ohm, so it's not a lot, but it's useful enough for some sounding objects. The speaker will not work if the board is powered uniquely from USB, because that would draw more power than allowed by the USB specs. See here how to power Bela from an external power source in order to enable the speaker amps.

Thank you for your quick answer, this helps me a lot. I also wanted to know what lines of code write to send sound through the amplifiers. Should I only use audioWrite and audioRead functions?

Thank you

audioWrite() will send to the headphone out and to the amplifiers at the same time.