New to Audio - Use one AudioSource per character?

Is using a single AudioSource and switching the clip that needs to be played with code generally the best way to play sound effects?

That sounds like it would make sense, but I’m not sure how to switch the clip in code… only play it?

easy you need to learn to code it that way,
yes you can have only one audio source per game-object.

to change audio source you simply need to reassign it.

AudioClip soundA;
AudioClip soundB;

void Update() {
if( Input.GetKey(kecode.D) {
  audio.clip = soundA;
 audio.Play();

}
if( Input.GetKey(kecode.A) {
  audio.clip = soundB;
 audio.Play();

}

}

hope it helps