You can use an app like
$1 which will scan the barcode on any grocery item and read the name of the product, uses a large database of product codes and descriptions so you don't need to pre-program them.
Although the quickest solution is probably a spice rack that keeps each container in place so you can remember where they are, and then a braille or other tactile label to confirm it's the right one.