Find an AudioClip by its variable name and play it

I have declared a bunch of AudioClips in my C# script:

public AudioClip bang;
public AudioClip pow;
public AudioClip whiz;
public AudioClip meow;
public AudioClip heartbeat;
public AudioClip knock;
public AudioClip clang;

I’ve got the AudioClip names being passed to this script as strings and I want to load the correct AudioClip and play it based on the incoming string.

Let’s say I have:

string myString = "meow";

How can I find the corresponding AudioClip? I’ve been using this code, which doesn’t produce any errors, but the AudioClip does not play:

AudioClip myClip = new AudioClip();
myClip = (AudioClip)Resources.Load(myString, typeof(AudioClip));
AudioSource.clip = myClip;
AudioSource.Play ();

EDIT: I understand why the above code doesn’t work - the audio files are not in the project’s Resources folder. I’m trying to find the AudioClip based on its variable name, not its filename and location within the project folder.

I’ve also tried finding it this way:

AudioClip myClip = (AudioClip)GameObject.Find ("meow");

But this throws an error because it tried to convert GameObject type to AudioClip type.

Does anyone know how to do this? Thanks!

Another perfect situation to use a dictionary, Take a look at this answer here just use one like this Find out if a list contains two objects with the same value - Unity Answers
If you want to do it right,

If you want to do it quick, just make an Array instead.

public AudioClip[] audioClips;

public void PlayThisClip(string incomeingClip){
    foreach(AudioClip clip in audioClips){
      audio.PlayOneShot(clip.name);
    }
}

WUCC

Sorry not to bring zombie post alive - but your solutions helped me get mine
So I’ll post in the hope it helps others. (you don’t need doozy UI - to follow along)

//linked to the audio mixer and used as a sound manager
// see the excellent DoozyUI examples for sound and creating a sound manager
//Audio Mixer Music Controller - How to create a simple UI in Unity - 17 - DoozyUI Video Tutorial - YouTube @15:40

    public AudioSource GAME_SFX_Player;
    public AudioClip UIMenuFX;


//later
  public void PlayAudioClip(string clipToPlay)
    {
        //will play all clips
        //foreach (AudioClip clip in FX_Pickups)
        //{
        //    if (clip.name == clipToPlay)
        //    UI_SFX_Player.PlayOneShot(clip);
        //}

        UIMenuFX = (AudioClip)Resources.Load(clipToPlay, typeof(AudioClip));
        GAME_SFX_Player.clip = UIMenuFX;
        GAME_SFX_Player.Play();
    }