コード例 #1
0
        public void CanGetInstalledVoices()
        {
            var bigSynth = new CradiatorSpeechSynthesizer(new SpeechSynthesizer())
            {
                Rate = -2
            };

            Assert.That(bigSynth.GetInstalledVoices().Count(), Is.GreaterThanOrEqualTo(1));
            Assert.That(bigSynth.GetInstalledVoices().Where(v => v.Name.StartsWith("Microsoft")).Count(), Is.GreaterThanOrEqualTo(1));
        }