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.");
     }
 }
예제 #2
0
        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.");
            }
        }