I KNOW that this is possible

playing mp3’s. i know, it sounds impossible with an audio output with 1 frequency at a time, but if we compress it enough, and play the different frequencies as fast as possible, I’m sure that it’s possible.(and also, it would be made for sound effects for micro:bit V1 or very short voice clips)

1 Like

The hardware is certainly capable of, but MakeCode does not expose any APIs for quickly playing many samples in a buffer. You definitely could not do this manually JavaScript.

2 Likes

we’ll definitely never add support for mp3s as they use a proprietary codec

that being said, it is certainly possible for the hardware to play music or some sort of recording (see the microphone blocks for the v2 which do exactly that). however, doing this on the micro:bit v1 is almost certainly impossible with makecode. the v1 has very limited flash space for storing programs; we already run into issues fitting normal sized programs onto a board. fitting a program and an audio file into that space would be very difficult.

2 Likes

I thought the codec patent expired a year or two ago. Plus I know they have libraries for decoding in Arduino and CircuitPython.


It’s definitely possible to do that in those two languages, maybe MicroPython as well. But definitely, Arduino, because it is in C++.

I thought the codec patent expired a year or two ago.

It’s complicated…

1 Like