Playing a specified .mp3 file on board

Hi all, I am building a project to read in a telephone number from a keypad and then play a .mp3 file corresponding to the number. So if you enter "867-5309", it would look for and play "8675309.mp3. I also need to play specified sound effects at various times.

Looking for a cheap sound board so found these on Amazon - they say YX5300, but it has a GD3300 chip (not sure if that matters).

I looked through the The MD_YX5300 Library, and can't see how you can tell it to play just a specific file.

I realize these boards are to make MP3 players, so is there another board I should be using? All advice is welcome.

Phil

The function is called exactly playSpecific()

https://majicdesigns.github.io/MD_YX5300/class_m_d___y_x5300.html#a5ec582d13ae704876e7f3269e4594d16

When I look at the raw commands that the board supports, it implies that the specified file is the index number, not a filename:

Also, see this mention by the author of the libraries:

The filename in the function you referenced is an unsigned integer, not a string, so again, looks like it passes the index number:
image

I really need to reference the file by filename, not by folder and index number. Can anyone recommend an inexpensive board that let's me do this.

Phil

Most of mp3 player modules referenced files by index, not by name. I think you can easily adopt your task for this behaviour, by storing the index/filename pairs in the table.

Appreciate the input - I agree that storing the numbers and index in a table would work. I did look at the Arduino Zero Audio library last night and it looks like it will do what I need - does anyone have any experience with the Arduino Zero and Audio? Seems like it could be a neat solution - while simple, it looks like it does what I need with the play() function.
image

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