Inheritance: IRadegastPlugin
Example #1
0
        internal LinSynth(PluginControl pc, string[] beeps)
        {
            BeepNames = beeps;
            ToASCII   = new System.Text.ASCIIEncoding();

            OSDMap speech = pc.config["synthesizer"] as OSDMap;

            if (speech == null)
            {
                speech                   = new OSDMap();
                speech["server"]         = new OSDString("localhost:1314");
                speech["speed"]          = new OSDInteger(0);
                pc.config["synthesizer"] = speech;
                pc.SaveSpeechSettings();
            }

            string server = speech["server"].AsString() ?? "localhost:1314";

            string[] parts = server.Split(':');
            serverhost = parts[0];
            if (parts.Length > 1)
            {
                serverport = parts[1];
            }
            else
            {
                serverport = "1314";
            }
            rateBias = speech["speed"].AsInteger();

            // Build the festival command line args
            ActualArgs      = Regex.Replace(SynthArgs, @"%S", serverhost);
            ActualArgs      = Regex.Replace(ActualArgs, @"%P", serverport);
            voiceProperties = pc.config["properties"] as OSDMap;
        }
 public void SpeechStart(PluginControl pc, string[] beeps)
 {
     synth = new MacSynth(pc, beeps);
     if (OnRecognition != null)
     {
     }
 }
Example #3
0
        internal LinSynth( PluginControl pc, string[] beeps)
        {
            BeepNames = beeps;
            ToASCII = new System.Text.ASCIIEncoding();
			
			OSDMap speech = pc.config["synthesizer"] as OSDMap;
            if (speech == null)
            {
                speech = new OSDMap();
                speech["server"] = new OSDString("localhost:1314");
                speech["speed"] = new OSDInteger(0);
                pc.config["synthesizer"] = speech;
                pc.SaveSpeechSettings();
            }

			string server = speech["server"].AsString();
            if (server==null)
                server = "localhost:1314";
			string[] parts = server.Split(':');
			serverhost = parts[0];
			if (parts.Length>1)
				serverport = parts[1];
			else
				serverport = "1314";
            rateBias = speech["speed"].AsInteger();
 
            // Build the festival command line args
            ActualArgs = Regex.Replace( SynthArgs, @"%S", serverhost );
			ActualArgs = Regex.Replace( ActualArgs, @"%P", serverport );
            voiceProperties = pc.config["properties"] as OSDMap;

        }
Example #4
0
 internal WinSynth(PluginControl pc, string[] beeps)
 {
     BeepNames       = beeps;
     voiceProperties = pc.config["properties"] as OSDMap;
 }
Example #5
0
 internal WinSynth( PluginControl pc, string[] beeps)
 {
     BeepNames = beeps;
     voiceProperties = pc.config["properties"] as OSDMap;
 }
 internal AreaControl(PluginControl pc)
 {
     control = pc;
 }
Example #7
0
 public void SpeechStart( PluginControl pc, string[] beeps)
 {
     synth = new LinSynth( pc, beeps);
 }
Example #8
0
 public void SpeechStart(PluginControl pc, string[] beeps)
 {
     synth = new WinSynth(pc, beeps);
     synth.SpeechStart();
 }
Example #9
0
 internal AreaControl(PluginControl pc)
 {
     control = pc;
 }