示例#1
0
 public void SpeechStart(PluginControl pc, string[] beeps)
 {
     synth = new MacSynth(pc, beeps);
     if (OnRecognition != null)
     {
     }
 }
示例#2
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;
        }
示例#3
0
 public void SpeechStart(PluginControl pc, string[] beeps)
 {
     synth = new LinSynth(pc, beeps);
 }
示例#4
0
 internal MacSynth(PluginControl pc, string[] beeps)
 {
     BeepNames       = beeps;
     voiceProperties = pc.config["properties"] as OSDMap;
 }
示例#5
0
 internal AreaControl(PluginControl pc)
 {
     control = pc;
 }