OnTriggerEnter does not work for me

Hello Geekers. i am having a big problem since fews days ago. i want to be able to let my A_I character walk through a trigger then make a sound or play music when he reached. i add a cube then late add a collider to the cube and make it as trigger but whenever the A_I character move through nothing happened . Please i need help this is my code C#

using System.Collections;
using System.Collections.Generic;

using UnityEngine;

public class Talk2 : MonoBehaviour {

public AudioSource aud;
public AudioClip myClip;

void Start()
{
aud = aud.GetComponent();
aud.PlayOneShot(myClip);
}
}

Adding a trigger collider only sets the GameObject up to work with a function. You’ll need to add Unity’s OnTriggerEnter() function to your cube and extend the functionality.

public AudioSource aud;
void OnTriggerEnter(Collider other) {
        // Play sound when collided with
        aud.Play(); // Plays a sound
    }

Whatever you want to have happen when something collides with your cube should be added here.

Also, if you ONLY want the sound to play when the AI collides, you’ll want to check beforehand that the tag matches w/ the AI.

Thanks for the feed back but your code play the music automatically before the enemy enter to the triggers. can just explain in details? appreciated