public static IVRMenuNarrator CreateNarrator(NarratorType type)
 {
     switch (type)
     {
             case NarratorType.TextToSpeech:
             return new IVRMenuNarratorTextToSpeech();
             case  NarratorType.FilePlayback:
             return new IVRMenuNarratorFilePlayback();
         default:
             throw new Exception("The given Narrator type is not a supported narrator type.");
     }
 }
        public static IVRMenuNarrator CreateNarrator(NarratorType type)
        {
            switch (type)
            {
            case NarratorType.TextToSpeech:
                return(new IVRMenuNarratorTextToSpeech());

            case  NarratorType.FilePlayback:
                return(new IVRMenuNarratorFilePlayback());

            default:
                throw new Exception("The given Narrator type is not a supported narrator type.");
            }
        }