public void TestSpeech() { SystemSpeechSynthesizer speech = new SystemSpeechSynthesizer(); var ai = speech.Synthesize("Hello, i am working"); //File.WriteAllBytes(@"d:\temp\test.wav", ai.AudioData); }
public void BasicTest() { var config = Options.Create <PolycomAudioTransmitterConfiguration>(new PolycomAudioTransmitterConfiguration() { BindingIp = "10.1.10.54" }); ISynthesizeSpeech synthesizeSpeech = new SystemSpeechSynthesizer(); IAudioTransmitter audioTransmitter = new PolycomAudioTransmitter(config); AlertingService aservice = new AlertingService(synthesizeSpeech, audioTransmitter); aservice.Speak(3, "Whatcha lookin at"); }