Scan barcodes, play audio files according to codes

Hello. I’m newbie.
i want to build app will be able to scan barcodes.
and play the audio file according to the barcode code set with the audio file.

What have you tried so far? Show your relevant blocks etc.

Hi, welcome to the community.

First of all, Make the codes yourself. Than when scanned, if barcode = x than play x’ else if barcode = y than play y.

Thank you
I got it
Screenshot 2022-07-28 112958

but if i have barcode more than 1000 barcode.
How can it do ?

In that case, you use a database and store all the codes number and audio to a list on it. Than get the list, if barcode is in list than play using the index of code from the code list.