コード例 #1
0
        public Personality(AerTalk voiceSynth, AerDB data)
        {
            _Data     = data;
            _Talk     = voiceSynth;
            _ReqQuery = Settings.Load("RequireAerQuery", "1").Equals("1");
            _Talk.SayInitializing();
            _EventRegistry     = new Dictionary <string, AerInputHandler>();
            _Keyboard          = new AerKeyboard();
            _GalnetRSS         = new AerRSS("http://www.elitedangerous.com/en/news/galnet/rss");
            _JokeRSS           = new AerRSS("http://www.jokes2go.com/jspq.xml");
            _Wikipedia         = new AerWiki();
            _StopListeningTime = 30; //30 seconds

            _RegisterDefaultHandlers();
        }
コード例 #2
0
ファイル: AerHandler.cs プロジェクト: jmontineri/AerSpeech
        public AerHandler(AerTalk voiceSynth, string pathToJsonFiles = @"json\")
        {
            string systemsJson     = pathToJsonFiles + @"systems.json";
            string commoditiesJson = pathToJsonFiles + @"commodities.json";
            string stationsJson    = pathToJsonFiles + @"stations.json";

            _Squelched = false;
            _Talk      = voiceSynth;
            _Talk.SayInitializing();
            _GalnetEntry   = 0;
            _JokeEntry     = 0;
            _Keyboard      = new AerKeyboard();
            _GalnetRSS     = new AerRSS("http://www.elitedangerous.com/en/news/galnet/rss");
            _JokeRSS       = new AerRSS("http://www.jokes2go.com/jspq.xml");
            _Wikipedia     = new AerWiki();
            _Eddb          = new AerDB(systemsJson, stationsJson, commoditiesJson);
            _EventRegistry = new Dictionary <string, AerInputHandler>();

            RegisterDefaultHandlers();
        }
コード例 #3
0
ファイル: Personality.cs プロジェクト: 4-Dtech/AerSpeech
        public Personality(AerTalk voiceSynth, AerDB data)
        {

            _Data = data;
            _Talk = voiceSynth;
            _ReqQuery = Settings.Load("RequireAerQuery", "1").Equals("1");
            _Talk.SayInitializing();
            _EventRegistry = new Dictionary<string, AerInputHandler>();
            _Keyboard = new AerKeyboard();
            _GalnetRSS = new AerRSS("http://www.elitedangerous.com/en/news/galnet/rss");
            _JokeRSS = new AerRSS("http://www.jokes2go.com/jspq.xml");
            _Wikipedia = new AerWiki();
            _StopListeningTime = 30; //30 seconds

            _RegisterDefaultHandlers();
        }