Example #1
0
        static void Main(string[] args)
        {
            TestService testService = new TestService();
            testService.ServiceEventFired += s =>
            {
                Console.WriteLine("SERVICE: {0}", s);
            };

            RecognitionCore core = new RecognitionCore("E:\\Nox\\plugins");
            core.LoadCommandSet(new TestServiceCommandSet());
            core.AddService<ISpeechSynthesizer>(new NoxSpeechSynthesizer());
            core.AddService<TestService>(testService);

            core.Start();

            Console.WriteLine("Press Enter to Exit");
            Console.ReadLine();
            core.Stop();
        }