1.
try
{
Type type = Type.GetTypeFromProgID("SAPI.SpVoice"); //动态调用COM
if (type != null)
{
dynamic spVoice = Activator.CreateInstance(type);
spVoice.Speak("This is a dog!");
}
}
catch (RuntimeBinderException ex)
{
throw ex;
}