play sound by file name

is it possible to play(or get the reference of) a sound by it’s path/fileName?
i have an array of strings and i want to play a sound based on an index of the array