I need to play very small mp3 files on Nano33BLE without an SD card

I am in need to use a setup, like this below, to play three small, one and two word mp3 files without using an SD card and module. This one doesn't work on the Nano33BLE structure. Can anyone suggest another option or to convert this to work on the Nano33BLE?

Playing an MP3 With Arduino Without Any SD card or module :[(https://www.instructables.com/Talking-Arduino-Playing-a-MP3-With-Arduino-Without/)]

I get the following error :

playback:2:10: fatal error: avr/io.h: No such file or directory
#include <avr/io.h>
compilation terminated.
exit status 1
avr/io.h: No such file or directory

I don't know where that avr/io.h file has come from.

This sketch has been used by many.

Thanks in advance. The rest of the sketch I tested with frequencies and the board locks up with anything over 30000mzh as you found. Its a pity it is a good board, I wonder if the BLESense does the same?

Thanks to Cattledog for below:

PCM.h is written for the avr architecture of the ATmega processor chips like the AT328. avr/io.h is only used on that architecture and is NOT used with the nrf58240 mbed Nano 33 BLE.

Is it possible to use the following, has anyone used MbedOS with their Nano33BLE? I have created the .h sound files I need, just not sure about the code in Arduino.

Using Flash to play Audio Clips | Mbed

flash_audio_player_8bitPWM - Plays audio samples from an array stored in flash… | Mbed

I'm not sure what to look for in a sound player for the Nano33BLE, the following are some I found, if anyone could give me some guidance it would be appreciated.

GitHub - isaacrobinson2000/SoundPlayer: An Arduino library which can play 8-bit sounds via the Arduino Uno digital ports using interrupts.

GitHub - muayyad-alsadi/avr_sound: Sound compression with bare AVR/Arduino GitHub - muayyad-alsadi/avr_sound: Sound compression with bare AVR/Arduino

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.